blorp: Fill in MOCS even for SURFTYPE_NULL surfaces.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Oct 2021 23:34:42 +0000 (16:34 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 28 Oct 2021 19:45:55 +0000 (19:45 +0000)
commitedce4649b87638cd5bbfb3553bb4744139439a4c
tree03b007abfe7c2bbee8ea2759737c53875f6b13d1
parentc27fcb1d3bac4282978529d947f3a143ae4a311f
blorp: Fill in MOCS even for SURFTYPE_NULL surfaces.

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 surfaces, 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 can just assume a generic MOCS for internal buffers.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13480>
src/intel/blorp/blorp_genX_exec.h