From 5ef9c110d5d368269328744c37e89cf3026fc7b2 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Tue, 18 Aug 2020 14:29:24 +0200 Subject: [PATCH] nv50/ir/nir: support load_work_dim Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau Part-of: --- src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 a6aad71774b..dde73c20165 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp @@ -1604,6 +1604,8 @@ Converter::convert(nir_intrinsic_op intr) return SV_VERTEX_ID; case nir_intrinsic_load_work_group_id: return SV_CTAID; + case nir_intrinsic_load_work_dim: + return SV_WORK_DIM; default: ERROR("unknown SVSemantic for nir_intrinsic_op %s\n", nir_intrinsic_infos[intr].name); @@ -1856,7 +1858,8 @@ Converter::visit(nir_intrinsic_instr *insn) case nir_intrinsic_load_tess_level_inner: case nir_intrinsic_load_tess_level_outer: case nir_intrinsic_load_vertex_id: - case nir_intrinsic_load_work_group_id: { + case nir_intrinsic_load_work_group_id: + case nir_intrinsic_load_work_dim: { const DataType dType = getDType(insn); SVSemantic sv = convert(op); LValues &newDefs = convert(&insn->dest); -- 2.30.2