anv/cnl: Don't set FloatBlendOptimizationEnable{Mask}
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 13 Jun 2017 18:08:48 +0000 (11:08 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Thu, 22 Jun 2017 21:17:45 +0000 (14:17 -0700)
This field is remove from CACHE_MODE_1 register in gen10.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/genX_state.c

index 00c4105..7a16ec0 100644 (file)
@@ -55,10 +55,13 @@ genX(init_device_state)(struct anv_device *device)
 #if GEN_GEN >= 9
    uint32_t cache_mode_1;
    anv_pack_struct(&cache_mode_1, GENX(CACHE_MODE_1),
-                   .PartialResolveDisableInVC = true,
-                   .PartialResolveDisableInVCMask = true,
+#if GEN_GEN == 9
                    .FloatBlendOptimizationEnable = true,
-                   .FloatBlendOptimizationEnableMask = true);
+                   .FloatBlendOptimizationEnableMask = true,
+#endif
+                   .PartialResolveDisableInVC = true,
+                   .PartialResolveDisableInVCMask = true);
+
    anv_batch_emit(&batch, GENX(MI_LOAD_REGISTER_IMM), lri) {
       lri.RegisterOffset = GENX(CACHE_MODE_1_num);
       lri.DataDWord      = cache_mode_1;