anv/compute: Fix thread width max off by 1
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 9 Dec 2015 00:06:43 +0000 (16:06 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 9 Dec 2015 02:09:31 +0000 (18:09 -0800)
See cooresponding code in:

commit 8d87070af295140fb3558b6784dc6303fde11a67
Author: Jordan Justen <jordan.l.justen@intel.com>
Date:   Thu Aug 28 14:47:19 2014 -0700

    i965/cs: Implement brw_emit_gpgpu_walker

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/vulkan/gen7_cmd_buffer.c
src/vulkan/gen8_cmd_buffer.c

index 5efa7cce00228c4043fa78f8cc019421de2a1593..c31ea338e64da702f97d19f5f29da33277028d14 100644 (file)
@@ -646,7 +646,7 @@ void genX(CmdDispatch)(
                   .SIMDSize = prog_data->simd_size / 16,
                   .ThreadDepthCounterMaximum = 0,
                   .ThreadHeightCounterMaximum = 0,
-                  .ThreadWidthCounterMaximum = pipeline->cs_thread_width_max,
+                  .ThreadWidthCounterMaximum = pipeline->cs_thread_width_max - 1,
                   .ThreadGroupIDXDimension = x,
                   .ThreadGroupIDYDimension = y,
                   .ThreadGroupIDZDimension = z,
@@ -683,7 +683,7 @@ void genX(CmdDispatchIndirect)(
                   .SIMDSize = prog_data->simd_size / 16,
                   .ThreadDepthCounterMaximum = 0,
                   .ThreadHeightCounterMaximum = 0,
-                  .ThreadWidthCounterMaximum = pipeline->cs_thread_width_max,
+                  .ThreadWidthCounterMaximum = pipeline->cs_thread_width_max - 1,
                   .RightExecutionMask = pipeline->cs_right_mask,
                   .BottomExecutionMask = 0xffffffff);
 
index df97d2711380caba5e99d929c11b8bf008512419..2366f4c244ccfb8adad597f83a0e2ac4d21f30fa 100644 (file)
@@ -601,7 +601,7 @@ void genX(CmdDispatch)(
                   .SIMDSize = prog_data->simd_size / 16,
                   .ThreadDepthCounterMaximum = 0,
                   .ThreadHeightCounterMaximum = 0,
-                  .ThreadWidthCounterMaximum = pipeline->cs_thread_width_max,
+                  .ThreadWidthCounterMaximum = pipeline->cs_thread_width_max - 1,
                   .ThreadGroupIDXDimension = x,
                   .ThreadGroupIDYDimension = y,
                   .ThreadGroupIDZDimension = z,
@@ -638,7 +638,7 @@ void genX(CmdDispatchIndirect)(
                   .SIMDSize = prog_data->simd_size / 16,
                   .ThreadDepthCounterMaximum = 0,
                   .ThreadHeightCounterMaximum = 0,
-                  .ThreadWidthCounterMaximum = pipeline->cs_thread_width_max,
+                  .ThreadWidthCounterMaximum = pipeline->cs_thread_width_max - 1,
                   .RightExecutionMask = pipeline->cs_right_mask,
                   .BottomExecutionMask = 0xffffffff);