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:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user