crocus: Set MOCS for most state base addresses on pre-Gen8
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 20 Oct 2021 21:53:23 +0000 (14:53 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 28 Oct 2021 19:45:55 +0000 (19:45 +0000)
We were only setting MOCS for dynamic state, surface state, instruction,
and indirect base addresses on Gen8+.  We should set them on Gen6+.

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

src/gallium/drivers/crocus/crocus_state.c

index f575fdb..eabb39f 100644 (file)
@@ -5540,11 +5540,11 @@ crocus_update_surface_base_address(struct crocus_batch *batch)
        */
       sba.GeneralStateMOCS            = mocs;
       sba.StatelessDataPortAccessMOCS = mocs;
-#if GFX_VER == 8
       sba.DynamicStateMOCS            = mocs;
       sba.IndirectObjectMOCS          = mocs;
       sba.InstructionMOCS             = mocs;
       sba.SurfaceStateMOCS            = mocs;
+#if GFX_VER == 8
       sba.GeneralStateBufferSize   = 0xfffff;
       sba.IndirectObjectBufferSize = 0xfffff;
       sba.InstructionBufferSize    = 0xfffff;