mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
radeonsi: set si_shader_context::input_decls for ranged decls correctly
This has no effect because no code uses those members with ranged decls. Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com> Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
6f356d15be
commit
5b85a6b3f7
1 changed files with 4 additions and 1 deletions
|
|
@ -877,9 +877,12 @@ static void emit_declaration(struct lp_build_tgsi_context *bld_base,
|
|||
if (ctx->load_input &&
|
||||
ctx->input_decls[idx].Declaration.File != TGSI_FILE_INPUT) {
|
||||
ctx->input_decls[idx] = *decl;
|
||||
ctx->input_decls[idx].Range.First = idx;
|
||||
ctx->input_decls[idx].Range.Last = idx;
|
||||
ctx->input_decls[idx].Semantic.Index += idx - decl->Range.First;
|
||||
|
||||
if (bld_base->info->processor != PIPE_SHADER_FRAGMENT)
|
||||
ctx->load_input(ctx, idx, decl,
|
||||
ctx->load_input(ctx, idx, &ctx->input_decls[idx],
|
||||
&ctx->inputs[idx * 4]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue