mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
ac: fix gs load inputs type
This fixes the scenario where the input is a struct. With this the Unreal engines Elemental demo now works on radeonsi. Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
0aba967328
commit
fa29a9625e
1 changed files with 3 additions and 2 deletions
|
|
@ -3191,16 +3191,17 @@ static LLVMValueRef visit_load_var(struct ac_nir_context *ctx,
|
|||
}
|
||||
|
||||
if (ctx->stage == MESA_SHADER_GEOMETRY) {
|
||||
LLVMTypeRef type = LLVMIntTypeInContext(ctx->ac.context, instr->dest.ssa.bit_size);
|
||||
LLVMValueRef indir_index;
|
||||
unsigned const_index, vertex_index;
|
||||
get_deref_offset(ctx, instr->variables[0],
|
||||
false, &vertex_index, NULL,
|
||||
&const_index, &indir_index);
|
||||
|
||||
return ctx->abi->load_inputs(ctx->abi, instr->variables[0]->var->data.location,
|
||||
instr->variables[0]->var->data.driver_location,
|
||||
instr->variables[0]->var->data.location_frac, ve,
|
||||
vertex_index, const_index,
|
||||
nir2llvmtype(ctx, instr->variables[0]->var->type));
|
||||
vertex_index, const_index, type);
|
||||
}
|
||||
|
||||
for (unsigned chan = comp; chan < ve + comp; chan++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue