radv: remove useless check about gl_Position as PS inputs for NGGC

gl_Position isn't part of the PS inputs read mask.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31830>
This commit is contained in:
Samuel Pitoiset 2024-10-28 09:55:26 +01:00 committed by Marge Bot
parent 8e4d1965bd
commit dc5efa892f

View file

@ -670,7 +670,7 @@ radv_consider_culling(const struct radv_physical_device *pdev, struct nir_shader
max_ps_params = 12; /* GFX10.3 and newer discrete GPUs. */
/* TODO: consider other heuristics here, such as PS execution time */
if (util_bitcount64(ps_inputs_read & ~VARYING_BIT_POS) > max_ps_params)
if (util_bitcount64(ps_inputs_read) > max_ps_params)
return false;
/* Only triangle culling is supported. */