turnip: remove shared_consts from tu_compiled_shaders

It is set but unused.  We also don't serialize/deserialize shared_consts
to/from the pipeline cache.

Fixes: e1f2cabc5e ("turnip: Change to use shared consts for PushConstants")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17777>
This commit is contained in:
Chia-I Wu 2022-07-27 17:37:17 -07:00 committed by Marge Bot
parent ae2947fbc5
commit 562e5ba286
2 changed files with 0 additions and 3 deletions

View File

@ -2992,7 +2992,6 @@ tu_pipeline_builder_compile_shaders(struct tu_pipeline_builder *builder,
stage_feedbacks[stage].duration += os_time_get_nano() - stage_start;
}
compiled_shaders->shared_consts = pipeline->shared_consts;
uint32_t safe_constlens = ir3_trim_constlen(compiled_shaders->variants, compiler);
@ -4163,7 +4162,6 @@ tu_compute_pipeline_create(VkDevice device,
compiled->active_desc_sets = shader->active_desc_sets;
compiled->push_consts[MESA_SHADER_COMPUTE] = shader->push_consts;
compiled->shared_consts = pipeline->shared_consts;
struct ir3_shader_variant *v =
ir3_shader_create_variant(shader->ir3_shader, &ir3_key, executable_info);

View File

@ -1740,7 +1740,6 @@ struct tu_compiled_shaders
{
struct vk_pipeline_cache_object base;
struct tu_push_constant_range shared_consts;
struct tu_push_constant_range push_consts[MESA_SHADER_STAGES];
uint8_t active_desc_sets;
bool multi_pos_output;