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 <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29847>
This commit is contained in:
committed by
Marge Bot
parent
76f095c354
commit
04b5b8b9ec
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user