From: Jordan Justen Date: Fri, 8 Jan 2016 00:25:35 +0000 (-0800) Subject: anv/gen8: Setup state to enable barrier() function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36a2304686bde4824543dcc1a2ea72f96dcc741d;p=mesa.git anv/gen8: Setup state to enable barrier() function Signed-off-by: Jordan Justen --- 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),