From 51f843ad6034f84aafc3fe2a08f8a67112e1005a Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 20 Oct 2021 14:53:23 -0700 Subject: [PATCH] crocus: Set MOCS for most state base addresses on pre-Gen8 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 Part-of: --- src/gallium/drivers/crocus/crocus_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/crocus/crocus_state.c b/src/gallium/drivers/crocus/crocus_state.c index f575fdb8157..eabb39f91ea 100644 --- a/src/gallium/drivers/crocus/crocus_state.c +++ b/src/gallium/drivers/crocus/crocus_state.c @@ -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;