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 <nanley.g.chery@intel.com>
This commit is contained in:
Jason Ekstrand
2018-09-10 16:37:17 -05:00
parent e29f0ede75
commit 90b46f6c17

View File

@@ -224,7 +224,7 @@ genX(cmd_buffer_so_memcpy)(struct anv_cmd_buffer *cmd_buffer,
#if GEN_GEN >= 8 #if GEN_GEN >= 8
sob.SOBufferEnable = true; sob.SOBufferEnable = true;
sob.SurfaceSize = size - 1; sob.SurfaceSize = size / 4 - 1;
#else #else
sob.SurfacePitch = bs; sob.SurfacePitch = bs;
sob.SurfaceEndAddress = sob.SurfaceBaseAddress; sob.SurfaceEndAddress = sob.SurfaceBaseAddress;