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:
Rhys Perry
2022-02-25 14:54:22 +00:00
committed by Marge Bot
parent 2de15273d5
commit feb7e30e2d
3 changed files with 10 additions and 2 deletions

View File

@@ -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;
}