aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_gm107.h
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2014-05-09 15:56:05 +1000
committerBen Skeggs <[email protected]>2014-05-15 09:54:49 +1000
commitd548d47edf9f05e6dbf9656abc2f8e78d02cb2f6 (patch)
tree9427f4339be135386d41b160c1e1e38b7e80eb56 /src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_gm107.h
parent7b9475fa652b9df6d599edbea8fa5049fdd995e1 (diff)
nvc0: add maxwell (sm50) compiler backend
The big missing part here is proper sched data calculations, but hopefully the chosen placeholder will be sufficient for now. Passes piglit as well as GK107 does. Signed-off-by: Ben Skeggs <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_gm107.h')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_gm107.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_gm107.h b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_gm107.h
new file mode 100644
index 00000000000..036abf055ed
--- /dev/null
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_gm107.h
@@ -0,0 +1,18 @@
+#include "codegen/nv50_ir_lowering_nvc0.h"
+
+namespace nv50_ir {
+
+class GM107LoweringPass : public NVC0LoweringPass
+{
+public:
+ GM107LoweringPass(Program *p) : NVC0LoweringPass(p) {}
+private:
+ virtual bool visit(Instruction *);
+
+ virtual bool handleManualTXD(TexInstruction *);
+ bool handleDFDX(Instruction *);
+ bool handlePFETCH(Instruction *);
+ bool handlePOPCNT(Instruction *);
+};
+
+} // namespace nv50_ir