radv: include disable_aniso_single_level and adjust_frag_coord_z in key
Fixes potential pipeline caching bug. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15175>
This commit is contained in:
@@ -3007,6 +3007,9 @@ radv_generate_graphics_pipeline_key(const struct radv_pipeline *pipeline,
|
||||
key.invariant_geom = true;
|
||||
|
||||
key.use_ngg = pipeline->device->physical_device->use_ngg;
|
||||
key.adjust_frag_coord_z = pipeline->device->adjust_frag_coord_z;
|
||||
key.disable_aniso_single_level = pipeline->device->instance->disable_aniso_single_level &&
|
||||
pipeline->device->physical_device->rad_info.chip_class < GFX8;
|
||||
|
||||
return key;
|
||||
}
|
||||
@@ -6397,6 +6400,9 @@ radv_generate_compute_pipeline_key(struct radv_pipeline *pipeline,
|
||||
key.cs.require_full_subgroups = true;
|
||||
}
|
||||
|
||||
key.disable_aniso_single_level = pipeline->device->instance->disable_aniso_single_level &&
|
||||
pipeline->device->physical_device->rad_info.chip_class < GFX8;
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user