From 36a2304686bde4824543dcc1a2ea72f96dcc741d Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Thu, 7 Jan 2016 16:25:35 -0800 Subject: [PATCH] anv/gen8: Setup state to enable barrier() function Signed-off-by: Jordan Justen --- src/vulkan/gen8_cmd_buffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vulkan/gen8_cmd_buffer.c b/src/vulkan/gen8_cmd_buffer.c index 965a9c14317..9b03b0a5c56 100644 --- a/src/vulkan/gen8_cmd_buffer.c +++ b/src/vulkan/gen8_cmd_buffer.c @@ -544,7 +544,9 @@ flush_compute_descriptor_set(struct anv_cmd_buffer *cmd_buffer) .SamplerCount = 0, .ConstantIndirectURBEntryReadLength = push_constant_regs, .ConstantURBEntryReadOffset = 0, - .NumberofThreadsinGPGPUThreadGroup = 0); + .BarrierEnable = cs_prog_data->uses_barrier, + .NumberofThreadsinGPGPUThreadGroup = + pipeline->cs_thread_width_max); uint32_t size = GENX(INTERFACE_DESCRIPTOR_DATA_length) * sizeof(uint32_t); anv_batch_emit(&cmd_buffer->batch, GENX(MEDIA_INTERFACE_DESCRIPTOR_LOAD), -- 2.30.2