mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
ac/nir: for ubo load use correct num_components
I was hacking something stupid in doom, and hit an assert for the bitcast following this, it definitely looks like this should be the number of 32-bit components, not the instr level ones. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
fb87c40a58
commit
0084f4a422
1 changed files with 1 additions and 1 deletions
|
|
@ -2467,7 +2467,7 @@ static LLVMValueRef visit_load_ubo_buffer(struct ac_nir_context *ctx,
|
|||
}
|
||||
|
||||
|
||||
ret = ac_build_gather_values(&ctx->ac, results, instr->num_components);
|
||||
ret = ac_build_gather_values(&ctx->ac, results, num_components);
|
||||
return LLVMBuildBitCast(ctx->ac.builder, ret,
|
||||
get_def_type(ctx, &instr->dest.ssa), "");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue