From 90b46f6c175dd0475a31cc5a5ad0508ee0697a5f Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 10 Sep 2018 16:37:17 -0500 Subject: [PATCH] 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 --- src/intel/vulkan/genX_gpu_memcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2