nv50/ir: Remove unused translation methods
authorPierre Moreau <pierre.morrow@free.fr>
Sat, 6 May 2017 21:47:22 +0000 (23:47 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 7 May 2017 14:26:36 +0000 (10:26 -0400)
This code was merged commented out, and has stayed that way ever since.

Signed-off-by: Pierre Moreau <pierre.morrow@free.fr>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir.h

index a4b46eb13f15ce97fb7f92318fe698e50bc0994d..f811781756e8520ad396f4e2cebcfddd00ba626a 100644 (file)
@@ -1233,17 +1233,11 @@ nv50_ir_generate_code(struct nv50_ir_prog_info *info)
    prog->optLevel = info->optLevel;
 
    switch (info->bin.sourceRep) {
-#if 0
-   case PIPE_IR_LLVM:
-   case PIPE_IR_GLSL:
-      return -1;
-   case PIPE_IR_SM4:
-      ret = prog->makeFromSM4(info) ? 0 : -2;
+   case NV50_PROGRAM_IR_TGSI:
+      ret = prog->makeFromTGSI(info) ? 0 : -2;
       break;
-   case PIPE_IR_TGSI:
-#endif
    default:
-      ret = prog->makeFromTGSI(info) ? 0 : -2;
+      ret = -1;
       break;
    }
    if (ret < 0)
index de6c1105368783d7a6460ed01da5c99aff9c3101..5c09fed05c11f464f0abe04507bc8a01eed9d4e6 100644 (file)
@@ -1253,7 +1253,6 @@ public:
    inline void add(Value *rval, int& id) { allRValues.insert(rval, id); }
 
    bool makeFromTGSI(struct nv50_ir_prog_info *);
-   bool makeFromSM4(struct nv50_ir_prog_info *);
    bool convertToSSA();
    bool optimizeSSA(int level);
    bool optimizePostRA(int level);