crocus: 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 21:24:39 -07:00 committed by Marge Bot
parent 72ffcd1965
commit dc29e9dbb3
1 changed files with 1 additions and 1 deletions

View File

@ -6562,6 +6562,7 @@ crocus_upload_dirty_render_state(struct crocus_context *ice,
sob.SOBufferIndex = i;
sob.SurfaceBaseAddress = rw_bo(res->bo, start);
sob.MOCS = crocus_mocs(res->bo, &batch->screen->isl_dev);
#if GFX_VER < 8
sob.SurfacePitch = tgt->stride;
sob.SurfaceEndAddress = rw_bo(res->bo, end);
@ -6569,7 +6570,6 @@ crocus_upload_dirty_render_state(struct crocus_context *ice,
sob.SOBufferEnable = true;
sob.StreamOffsetWriteEnable = true;
sob.StreamOutputBufferOffsetAddressEnable = true;
sob.MOCS = crocus_mocs(res->bo, &batch->screen->isl_dev);
sob.SurfaceSize = MAX2(tgt->base.buffer_size / 4, 1) - 1;
sob.StreamOutputBufferOffsetAddress =