anv/cnl: Don't write to Cache Mode Register 1 on gen10+
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 14 Jun 2017 00:01:16 +0000 (17:01 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 23 Jun 2017 18:16:00 +0000 (11:16 -0700)
For PartialResolveDisableInVC field recommendation is to
always set this to 0 and that's the default value of the bit.
So, we have nothing left to write to CACHE_MODE_1.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/vulkan/genX_state.c

index 7a16ec06f711a10c1e39d40aa5bcb7ec35006749..3e6583289b67c6a339e94a3df42ce377017ebb35 100644 (file)
@@ -52,13 +52,11 @@ genX(init_device_state)(struct anv_device *device)
       ps.PipelineSelection = _3D;
    }
 
-#if GEN_GEN >= 9
+#if GEN_GEN == 9
    uint32_t cache_mode_1;
    anv_pack_struct(&cache_mode_1, GENX(CACHE_MODE_1),
-#if GEN_GEN == 9
                    .FloatBlendOptimizationEnable = true,
                    .FloatBlendOptimizationEnableMask = true,
-#endif
                    .PartialResolveDisableInVC = true,
                    .PartialResolveDisableInVCMask = true);