[Mesa-dev] [PATCH 2/4] anv/so_memcpy: Use the correct SO_BUFFER size on gen8+
Jason Ekstrand
jason at jlekstrand.net
Wed Sep 12 05:06:49 UTC 2018
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.
---
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 57abd8cd5c1..cba820a1866 100644
--- a/src/intel/vulkan/genX_gpu_memcpy.c
+++ b/src/intel/vulkan/genX_gpu_memcpy.c
@@ -222,7 +222,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.17.1
More information about the mesa-dev
mailing list