diff options
author | Rhys Perry <[email protected]> | 2018-12-06 14:41:11 +0000 |
---|---|---|
committer | Rhys Perry <[email protected]> | 2019-02-19 11:03:33 +0000 |
commit | c4ea20c0a070242d4798ce8ad0a7e8d6cc9bc134 (patch) | |
tree | 7037d2c7d9d9461b13dafd3f1a072a7748da681a /src/amd/common | |
parent | 0ca550e01ac55c67c2deef50f5cb750a0181352b (diff) |
ac/nir: implement 8-bit nir_load_const_instr
Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 946ea9a4a8a..9646a65df1e 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -1114,6 +1114,10 @@ static void visit_load_const(struct ac_nir_context *ctx, for (unsigned i = 0; i < instr->def.num_components; ++i) { switch (instr->def.bit_size) { + case 8: + values[i] = LLVMConstInt(element_type, + instr->value.u8[i], false); + break; case 16: values[i] = LLVMConstInt(element_type, instr->value.u16[i], false); |