mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
radv: fix selecting the hash when RADV_FORCE_VRS is enabled
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13098>
This commit is contained in:
parent
0c88c5cdc4
commit
27bb80f688
1 changed files with 3 additions and 3 deletions
|
|
@ -237,11 +237,11 @@ radv_get_hash_flags(const struct radv_device *device, bool stats)
|
|||
hash_flags |= RADV_HASH_SHADER_INVARIANT_GEOM;
|
||||
if (stats)
|
||||
hash_flags |= RADV_HASH_SHADER_KEEP_STATISTICS;
|
||||
if (device->force_vrs != RADV_FORCE_VRS_2x2)
|
||||
if (device->force_vrs == RADV_FORCE_VRS_2x2)
|
||||
hash_flags |= RADV_HASH_SHADER_FORCE_VRS_2x2;
|
||||
if (device->force_vrs != RADV_FORCE_VRS_2x1)
|
||||
if (device->force_vrs == RADV_FORCE_VRS_2x1)
|
||||
hash_flags |= RADV_HASH_SHADER_FORCE_VRS_2x1;
|
||||
if (device->force_vrs != RADV_FORCE_VRS_1x2)
|
||||
if (device->force_vrs == RADV_FORCE_VRS_1x2)
|
||||
hash_flags |= RADV_HASH_SHADER_FORCE_VRS_1x2;
|
||||
if (device->robust_buffer_access) /* forces per-attribute vertex descriptors */
|
||||
hash_flags |= RADV_HASH_SHADER_ROBUST_BUFFER_ACCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue