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:

committed by
Marge Bot

parent
148ea65ee1
commit
e6ebf5add7
@@ -217,6 +217,12 @@ genX(emit_state_base_address)(struct brw_context *brw)
|
|||||||
sba.IndirectObjectMOCS = mocs;
|
sba.IndirectObjectMOCS = mocs;
|
||||||
sba.InstructionMOCS = mocs;
|
sba.InstructionMOCS = mocs;
|
||||||
sba.SurfaceStateMOCS = mocs;
|
sba.SurfaceStateMOCS = mocs;
|
||||||
|
#endif
|
||||||
|
#if GFX_VER >= 9
|
||||||
|
sba.BindlessSurfaceStateMOCS = mocs;
|
||||||
|
#endif
|
||||||
|
#if GFX_VER >= 11
|
||||||
|
sba.BindlessSamplerStateMOCS = mocs;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user