summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-09-10 16:37:17 -0500
committerJason Ekstrand <[email protected]>2018-09-14 22:12:11 -0500
commit90b46f6c175dd0475a31cc5a5ad0508ee0697a5f (patch)
tree8580371c31d0e71cfd7ebe8c0cd80af284b25e42 /src/intel/vulkan
parente29f0ede757797bce38aa00bc706ae2224b66053 (diff)
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 <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/genX_gpu_memcpy.c2
1 files changed, 1 insertions, 1 deletions
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;