radv: move forcing invariant geometry to the graphics pipeline key
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/13099>
This commit is contained in:

committed by
Marge Bot

parent
421b5379df
commit
fb453d80a4
@@ -231,8 +231,6 @@ radv_get_hash_flags(const struct radv_device *device, bool stats)
|
||||
hash_flags |= RADV_HASH_SHADER_LLVM;
|
||||
if (device->instance->enable_mrt_output_nan_fixup)
|
||||
hash_flags |= RADV_HASH_SHADER_MRT_NAN_FIXUP;
|
||||
if (device->instance->debug_flags & RADV_DEBUG_INVARIANT_GEOM)
|
||||
hash_flags |= RADV_HASH_SHADER_INVARIANT_GEOM;
|
||||
if (stats)
|
||||
hash_flags |= RADV_HASH_SHADER_KEEP_STATISTICS;
|
||||
if (device->force_vrs == RADV_FORCE_VRS_2x2)
|
||||
@@ -2729,6 +2727,9 @@ radv_generate_graphics_pipeline_key(const struct radv_pipeline *pipeline,
|
||||
if (pipeline->device->instance->debug_flags & RADV_DEBUG_DISCARD_TO_DEMOTE)
|
||||
key.ps.lower_discard_to_demote = true;
|
||||
|
||||
if (pipeline->device->instance->debug_flags & RADV_DEBUG_INVARIANT_GEOM)
|
||||
key.invariant_geom = true;
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user