From 04b5b8b9ec2d9a580e1db32c90aa9f7921bc1643 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Mon, 8 Aug 2022 14:05:10 -0700 Subject: [PATCH] anv/gfx11+: Request PS payload fields for ALU-based interpolation via 3DSTATE_PS_EXTRA. Plumb the prog_data bits recently introduced for ALU-based interpolation down to 3DSTATE_PS_EXTRA emission in the Vulkan driver. Even though this is only going to be used on Xe2+ for now there seems to be no reason not to plumb the bits on all platforms back to gfx11, since the 3DSTATE_PS_EXTRA enables already existed on ICL. Reviewed-by: Caio Oliveira Part-of: --- src/intel/vulkan/genX_pipeline.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index f2b166505f9..829068b9002 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1664,6 +1664,12 @@ emit_3dstate_ps_extra(struct anv_graphics_pipeline *pipeline, ps.InputCoverageMaskState = ICMS_NORMAL; #if GFX_VER >= 11 + ps.PixelShaderRequiresSubpixelSampleOffsets = + wm_prog_data->uses_sample_offsets; + ps.PixelShaderRequiresNonPerspectiveBaryPlaneCoefficients = + wm_prog_data->uses_npc_bary_coefficients; + ps.PixelShaderRequiresPerspectiveBaryPlaneCoefficients = + wm_prog_data->uses_pc_bary_coefficients; ps.PixelShaderRequiresSourceDepthandorWPlaneCoefficients = wm_prog_data->uses_depth_w_coefficients; #endif