From d28df86c879fec259d16a80797cb1334a2fc0eac Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Tue, 8 Dec 2015 16:06:43 -0800 Subject: [PATCH] anv/compute: Fix thread width max off by 1 See cooresponding code in: commit 8d87070af295140fb3558b6784dc6303fde11a67 Author: Jordan Justen Date: Thu Aug 28 14:47:19 2014 -0700 i965/cs: Implement brw_emit_gpgpu_walker Signed-off-by: Jordan Justen --- src/vulkan/gen7_cmd_buffer.c | 4 ++-- src/vulkan/gen8_cmd_buffer.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vulkan/gen7_cmd_buffer.c b/src/vulkan/gen7_cmd_buffer.c index 5efa7cce002..c31ea338e64 100644 --- a/src/vulkan/gen7_cmd_buffer.c +++ b/src/vulkan/gen7_cmd_buffer.c @@ -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); diff --git a/src/vulkan/gen8_cmd_buffer.c b/src/vulkan/gen8_cmd_buffer.c index df97d271138..2366f4c244c 100644 --- a/src/vulkan/gen8_cmd_buffer.c +++ b/src/vulkan/gen8_cmd_buffer.c @@ -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); -- 2.30.2