From: Jason Ekstrand Date: Mon, 10 Sep 2018 21:37:17 +0000 (-0500) Subject: anv/so_memcpy: Use the correct SO_BUFFER size on gen8+ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90b46f6c175dd0475a31cc5a5ad0508ee0697a5f;p=mesa.git anv/so_memcpy: Use the correct SO_BUFFER size on gen8+ This shouldn't matter as we'll never write OOB anyway but we may as well get it right. It's supposed to be in dwords - 1. Reviewed-by: Nanley Chery --- diff --git a/src/intel/vulkan/genX_gpu_memcpy.c b/src/intel/vulkan/genX_gpu_memcpy.c index eaafcfa3b22..a8e99d1a695 100644 --- a/src/intel/vulkan/genX_gpu_memcpy.c +++ b/src/intel/vulkan/genX_gpu_memcpy.c @@ -224,7 +224,7 @@ genX(cmd_buffer_so_memcpy)(struct anv_cmd_buffer *cmd_buffer, #if GEN_GEN >= 8 sob.SOBufferEnable = true; - sob.SurfaceSize = size - 1; + sob.SurfaceSize = size / 4 - 1; #else sob.SurfacePitch = bs; sob.SurfaceEndAddress = sob.SurfaceBaseAddress;