anv/gen8: Setup state to enable barrier() function
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 8 Jan 2016 00:25:35 +0000 (16:25 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 8 Jan 2016 01:11:46 +0000 (17:11 -0800)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/vulkan/gen8_cmd_buffer.c

index 965a9c14317602be87b5ec297d0bbb2a45aed112..9b03b0a5c56ec88a2498022a012f8f3a6261ebe2 100644 (file)
@@ -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),