anv: Only set 3DSTATE_PS::VectorMaskEnable on gen8+
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 13 Mar 2019 22:27:39 +0000 (17:27 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 14 Mar 2019 17:22:20 +0000 (12:22 -0500)
We don't set it on HSW and earlier in i965 and disabling it appears to
make derivatives somewhat more reliable.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/vulkan/genX_pipeline.c

index 975052deb799d9785db86b139b0cadbf102c56d0..3767e5033c575bc6118b6ed6833b47abbbc2718d 100644 (file)
@@ -1761,7 +1761,7 @@ emit_3dstate_ps(struct anv_pipeline *pipeline,
                                brw_wm_prog_data_prog_offset(wm_prog_data, ps, 2);
 
       ps.SingleProgramFlow          = false;
-      ps.VectorMaskEnable           = true;
+      ps.VectorMaskEnable           = GEN_GEN >= 8;
       /* WA_1606682166 */
       ps.SamplerCount               = GEN_GEN == 11 ? 0 : get_sampler_count(fs_bin);
       /* Gen 11 workarounds table #2056 WABTPPrefetchDisable */