mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
ac/llvm: handle opaque pointers in visit_store_output
Outputs are always f32 or f16. Reviewed-by: Mihai Preda <mhpreda@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17361>
This commit is contained in:
parent
196c4ebe1a
commit
dc8d82516b
1 changed files with 1 additions and 1 deletions
|
|
@ -2402,7 +2402,7 @@ static void visit_store_output(struct ac_nir_context *ctx, nir_intrinsic_instr *
|
|||
LLVMValueRef value = ac_llvm_extract_elem(&ctx->ac, src, chan - component);
|
||||
LLVMValueRef output_addr = ctx->abi->outputs[base * 4 + chan];
|
||||
|
||||
if (LLVMGetElementType(LLVMTypeOf(output_addr)) == ctx->ac.f32 &&
|
||||
if (!ctx->abi->is_16bit[base * 4 + chan] &&
|
||||
LLVMTypeOf(value) == ctx->ac.f16) {
|
||||
LLVMValueRef output, index;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue