From: Rhys Perry Date: Thu, 6 Dec 2018 14:41:11 +0000 (+0000) Subject: ac/nir: implement 8-bit nir_load_const_instr X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4ea20c0a070242d4798ce8ad0a7e8d6cc9bc134;p=mesa.git ac/nir: implement 8-bit nir_load_const_instr Signed-off-by: Rhys Perry Reviewed-by: Samuel Pitoiset --- 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);