diff options
author | Karol Herbst <[email protected]> | 2019-03-27 00:59:03 +0100 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-04-14 22:25:56 +0200 |
commit | 14531d676b11999123c04fb7569ab80c9f150180 (patch) | |
tree | d0f40439b5b92fa362195868300098c063f71ea7 /src/amd | |
parent | 73d883037d170ab8dcade3e0cfcf9f33c8ed6557 (diff) |
nir: make nir_const_value scalar
v2: remove & operator in a couple of memsets
add some memsets
v3: fixup lima
Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]> (v2)
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 0009b27ef22..61b33c74e6c 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -1126,19 +1126,19 @@ static void visit_load_const(struct ac_nir_context *ctx, switch (instr->def.bit_size) { case 8: values[i] = LLVMConstInt(element_type, - instr->value.u8[i], false); + instr->value[i].u8, false); break; case 16: values[i] = LLVMConstInt(element_type, - instr->value.u16[i], false); + instr->value[i].u16, false); break; case 32: values[i] = LLVMConstInt(element_type, - instr->value.u32[i], false); + instr->value[i].u32, false); break; case 64: values[i] = LLVMConstInt(element_type, - instr->value.u64[i], false); + instr->value[i].u64, false); break; default: fprintf(stderr, |