[Mesa-dev] [PATCH v2 10/31] nvir/nir: use lowering helper

Karol Herbst kherbst at redhat.com
Thu Jan 4 15:01:56 UTC 2018


this helps with a bunch of piglit tests testing 64 bit types

Signed-off-by: Karol Herbst <kherbst at redhat.com>
---
 src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 5 +++++
 1 file changed, 5 insertions(+)

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 b0de3b7d64..b8f956d2f1 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
@@ -26,6 +26,7 @@
 
 #include "codegen/nv50_ir.h"
 #include "codegen/nv50_ir_from_common.h"
+#include "codegen/nv50_ir_lowering_helper.h"
 #include "codegen/nv50_ir_util.h"
 
 #include <unordered_map>
@@ -343,6 +344,10 @@ Program::makeFromNIR(struct nv50_ir_prog_info *info)
    nir_shader *nir = (nir_shader*)info->bin.source;
    Converter converter(this, nir, info);
    bool result = converter.run();
+   if (!result)
+      return result;
+   LoweringHelper lowering;
+   lowering.run(this);
    tlsSize = info->bin.tlsSpace;
    return result;
 }
-- 
2.14.3



More information about the mesa-dev mailing list