mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
zink: delete dead code
update_gfx_program_optimal() is the real version of this Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20585>
This commit is contained in:
parent
bc801c0808
commit
b295accf07
1 changed files with 0 additions and 25 deletions
|
|
@ -371,31 +371,6 @@ update_gfx_shader_modules(struct zink_context *ctx,
|
|||
}
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static void
|
||||
update_gfx_shader_modules_optimal(struct zink_context *ctx,
|
||||
struct zink_screen *screen,
|
||||
struct zink_gfx_program *prog, uint32_t mask,
|
||||
struct zink_gfx_pipeline_state *state)
|
||||
{
|
||||
assert(prog->modules[MESA_SHADER_VERTEX]);
|
||||
for (unsigned i = 0; i < MESA_SHADER_COMPUTE; i++) {
|
||||
if (!(mask & BITFIELD_BIT(i)))
|
||||
continue;
|
||||
|
||||
assert(prog->shaders[i]);
|
||||
|
||||
struct zink_shader_module *zm = get_shader_module_for_stage_optimal(ctx, screen, prog->shaders[i], prog, i, state);
|
||||
if (!zm)
|
||||
zm = create_shader_module_for_stage_optimal(ctx, screen, prog->shaders[i], prog, i, state);
|
||||
if (prog->modules[i] == zm->shader)
|
||||
continue;
|
||||
state->modules_changed = true;
|
||||
prog->modules[i] = zm->shader;
|
||||
}
|
||||
|
||||
prog->last_variant_hash = state->shader_keys_optimal.key.val;
|
||||
}
|
||||
|
||||
static void
|
||||
generate_gfx_program_modules(struct zink_context *ctx, struct zink_screen *screen, struct zink_gfx_program *prog, struct zink_gfx_pipeline_state *state)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue