summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen7_cmd_buffer.c
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2016-01-07 17:10:02 -0800
committerJordan Justen <[email protected]>2016-01-07 17:11:46 -0800
commitd24e88b98e05800a56aff35dc54b61a800d1c71b (patch)
treea526dc5c58eafa1d56f21dbc44505bdc603ffcec /src/vulkan/gen7_cmd_buffer.c
parent36a2304686bde4824543dcc1a2ea72f96dcc741d (diff)
anv/gen7: Setup state to enable barrier() function
Signed-off-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/vulkan/gen7_cmd_buffer.c')
-rw-r--r--src/vulkan/gen7_cmd_buffer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vulkan/gen7_cmd_buffer.c b/src/vulkan/gen7_cmd_buffer.c
index fa9cb8fa914..85eec0b055e 100644
--- a/src/vulkan/gen7_cmd_buffer.c
+++ b/src/vulkan/gen7_cmd_buffer.c
@@ -269,13 +269,17 @@ flush_compute_descriptor_set(struct anv_cmd_buffer *cmd_buffer)
if (result != VK_SUCCESS)
return result;
+ const struct brw_cs_prog_data *cs_prog_data = &pipeline->cs_prog_data;
+
struct anv_state state =
anv_state_pool_emit(&device->dynamic_state_pool,
GEN7_INTERFACE_DESCRIPTOR_DATA, 64,
.KernelStartPointer = pipeline->cs_simd,
.BindingTablePointer = surfaces.offset,
.SamplerStatePointer = samplers.offset,
- .NumberofThreadsinGPGPUThreadGroup = 0);
+ .BarrierEnable = cs_prog_data->uses_barrier,
+ .NumberofThreadsinGPGPUThreadGroup =
+ pipeline->cs_thread_width_max);
const uint32_t size = GEN7_INTERFACE_DESCRIPTOR_DATA_length * sizeof(uint32_t);
anv_batch_emit(&cmd_buffer->batch, GEN7_MEDIA_INTERFACE_DESCRIPTOR_LOAD,