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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user