i965: Set MOCS for 3DSTATE_SO_BUFFERS on Gfx7.x too

For some reason we were only setting this on Gfx8+.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13480>
This commit is contained in:
Kenneth Graunke
2021-10-20 00:13:29 -07:00
committed by Marge Bot
parent eaaa3c7e04
commit ab44a54646
@@ -3703,6 +3703,7 @@ genX(upload_3dstate_so_buffers)(struct brw_context *brw)
sob.SOBufferIndex = i;
sob.SurfaceBaseAddress = rw_bo(bo, start);
sob.MOCS = brw_mocs(&brw->isl_dev, bo);
#if GFX_VER < 8
sob.SurfacePitch = linked_xfb_info->Buffers[i].Stride * 4;
sob.SurfaceEndAddress = rw_bo(bo, end);
@@ -3710,7 +3711,6 @@ genX(upload_3dstate_so_buffers)(struct brw_context *brw)
sob.SOBufferEnable = true;
sob.StreamOffsetWriteEnable = true;
sob.StreamOutputBufferOffsetAddressEnable = true;
sob.MOCS = brw_mocs(&brw->isl_dev, bo);
sob.SurfaceSize = MAX2(xfb_obj->Size[i] / 4, 1) - 1;
sob.StreamOutputBufferOffsetAddress =