radv: do not enable per-vertex VRS if the FS uses gl_FragCoord
It breaks postprocessing in some games like Ghostrunner, Deathloop, Street Fighter V. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15042>
This commit is contained in:
parent
3cc53c047a
commit
377884c9c8
|
@ -3677,6 +3677,12 @@ radv_consider_force_vrs(const struct radv_pipeline *pipeline, bool noop_fs, nir_
|
|||
if (noop_fs)
|
||||
return false;
|
||||
|
||||
/* Do not enable if the PS uses gl_FragCoord because it breaks postprocessing in some games. */
|
||||
if (nir[MESA_SHADER_FRAGMENT] &&
|
||||
BITSET_TEST(nir[MESA_SHADER_FRAGMENT]->info.system_values_read, SYSTEM_VALUE_FRAG_COORD)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue