mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-13 20:24:23 +08:00
radv: include 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>
(cherry picked from commit feb7e30e2d
)
[Eric: the disable_aniso_single_level part of the original commit was
dropped in the backport as it didn't apply]
This commit is contained in:
parent
1fe2b1c76b
commit
418c6ba164
@ -2731,7 +2731,7 @@
|
||||
"description": "radv: include disable_aniso_single_level and adjust_frag_coord_z in key",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
@ -2711,6 +2711,7 @@ 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;
|
||||
|
||||
return key;
|
||||
}
|
||||
|
@ -1762,7 +1762,7 @@ shader_variant_compile(struct radv_device *device, struct vk_shader_module *modu
|
||||
options->has_ls_vgpr_init_bug = device->physical_device->rad_info.has_ls_vgpr_init_bug;
|
||||
options->enable_mrt_output_nan_fixup =
|
||||
module && !module->nir && options->key.ps.enable_mrt_output_nan_fixup;
|
||||
options->adjust_frag_coord_z = device->adjust_frag_coord_z;
|
||||
options->adjust_frag_coord_z = options->key.adjust_frag_coord_z;
|
||||
options->has_image_load_dcc_bug = device->physical_device->rad_info.has_image_load_dcc_bug;
|
||||
options->debug.func = radv_compiler_debug;
|
||||
options->debug.private_data = &debug_data;
|
||||
|
@ -60,6 +60,7 @@ struct radv_pipeline_key {
|
||||
uint32_t optimisations_disabled : 1;
|
||||
uint32_t invariant_geom : 1;
|
||||
uint32_t use_ngg : 1;
|
||||
uint32_t adjust_frag_coord_z : 1;
|
||||
|
||||
struct {
|
||||
uint32_t instance_rate_inputs;
|
||||
|
Loading…
Reference in New Issue
Block a user