Skip to content
Snippets Groups Projects
Commit c27fcb1d authored by Kenneth Graunke's avatar Kenneth Graunke Committed by Marge Bot
Browse files

isl: Fill in MOCS for NULL depth, stencil, and HiZ buffers.


We'd like to add safeguards against accidental use of MOCS 0 (uncached),
which can have large performance implications.  One case where we use
MOCS of 0 is SURFTYPE_NULL depth, stencil, and HiZ buffers, where MOCS
really shouldn't matter, as there's no actual surface to be cached.

That said, it should be harmless to set MOCS for these null surfaces.
We now set the one provided in info->mocs regardless of whether any
buffers actually exist or not.

Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
Part-of: <mesa/mesa!13480>
parent 801ecb6f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment