mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:
parent
72ffcd1965
commit
dc29e9dbb3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue