mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
i965: Set MOCS for Bindless Surface/Sampler State base addresses
We don't use bindless surface or sampler states today, and are unlikely to ever implement that in i965, but we can set a MOCS value regardless to avoid asserts in upcoming patches that assert MOCS isn't zero. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13480>
This commit is contained in:
parent
148ea65ee1
commit
e6ebf5add7
1 changed files with 6 additions and 0 deletions
|
|
@ -217,6 +217,12 @@ genX(emit_state_base_address)(struct brw_context *brw)
|
|||
sba.IndirectObjectMOCS = mocs;
|
||||
sba.InstructionMOCS = mocs;
|
||||
sba.SurfaceStateMOCS = mocs;
|
||||
#endif
|
||||
#if GFX_VER >= 9
|
||||
sba.BindlessSurfaceStateMOCS = mocs;
|
||||
#endif
|
||||
#if GFX_VER >= 11
|
||||
sba.BindlessSamplerStateMOCS = mocs;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue