From: Jason Ekstrand Date: Sat, 29 Aug 2020 06:01:48 +0000 (-0500) Subject: nouveau/nir: Implement load_global_constant X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4087b5343d8d85f46ead6656f58c94cec0289cb0;p=mesa.git nouveau/nir: Implement load_global_constant Reviewed-by: Karol Herbst Part-of: --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp index 08bbaaed5df..b9a82a037e8 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp @@ -355,6 +355,7 @@ Converter::getFile(nir_intrinsic_op op) switch (op) { case nir_intrinsic_load_global: case nir_intrinsic_store_global: + case nir_intrinsic_load_global_constant: return FILE_MEMORY_GLOBAL; case nir_intrinsic_load_scratch: case nir_intrinsic_store_scratch: @@ -2328,7 +2329,8 @@ Converter::visit(nir_intrinsic_instr *insn) mkOp1(OP_RDSV, dType, newDefs[1], mkSysVal(SV_CLOCK, 0))->fixed = 1; break; } - case nir_intrinsic_load_global: { + case nir_intrinsic_load_global: + case nir_intrinsic_load_global_constant: { const DataType dType = getDType(insn); LValues &newDefs = convert(&insn->dest); Value *indirectOffset;