radv: move radv_pipeline_key::mesh_fast_launch_2 to the per-device cache key
This is a global thing. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27007>
This commit is contained in:
committed by
Marge Bot
parent
d74150fc66
commit
cff2a3aafc
@@ -723,6 +723,7 @@ radv_device_init_cache_key(struct radv_device *device)
|
||||
key->image_2d_view_of_3d = device->image_2d_view_of_3d && device->physical_device->rad_info.gfx_level == GFX9;
|
||||
key->invariant_geom = !!(device->instance->debug_flags & RADV_DEBUG_INVARIANT_GEOM);
|
||||
key->lower_discard_to_demote = !!(device->instance->debug_flags & RADV_DEBUG_DISCARD_TO_DEMOTE);
|
||||
key->mesh_fast_launch_2 = device->mesh_fast_launch_2;
|
||||
key->mesh_shader_queries = device->mesh_shader_queries;
|
||||
key->no_fmask = !!(device->instance->debug_flags & RADV_DEBUG_NO_FMASK);
|
||||
key->no_rt = !!(device->instance->debug_flags & RADV_DEBUG_NO_RT);
|
||||
|
||||
@@ -207,11 +207,6 @@ radv_generate_pipeline_key(const struct radv_device *device, const VkPipelineSha
|
||||
key.vertex_robustness1 = 1u;
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < num_stages; i++) {
|
||||
if (stages[i].stage == VK_SHADER_STAGE_MESH_BIT_EXT && device->mesh_fast_launch_2)
|
||||
key.mesh_fast_launch_2 = 1u;
|
||||
}
|
||||
|
||||
key.keep_statistic_info = radv_pipeline_capture_shader_stats(device, flags);
|
||||
|
||||
return key;
|
||||
|
||||
@@ -890,6 +890,7 @@ struct radv_device_cache_key {
|
||||
uint32_t image_2d_view_of_3d : 1;
|
||||
uint32_t invariant_geom : 1;
|
||||
uint32_t lower_discard_to_demote : 1;
|
||||
uint32_t mesh_fast_launch_2 : 1;
|
||||
uint32_t mesh_shader_queries : 1;
|
||||
uint32_t no_fmask : 1;
|
||||
uint32_t no_rt : 1;
|
||||
|
||||
@@ -125,7 +125,6 @@ struct radv_pipeline_key {
|
||||
uint32_t unknown_rast_prim : 1;
|
||||
|
||||
uint32_t vertex_robustness1 : 1;
|
||||
uint32_t mesh_fast_launch_2 : 1;
|
||||
|
||||
uint32_t keep_statistic_info : 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user