panfrost/midgard: Assert on unknown texture source
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 11 Jun 2019 16:55:18 +0000 (09:55 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 12 Jun 2019 21:32:07 +0000 (14:32 -0700)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/midgard/midgard_compile.c

index 4bddea40fdb1328b2deaf9e45a3b22b556f38efe..6761b27681433226fe65430a695b1c0d2246c3ee 100644 (file)
@@ -1394,11 +1394,8 @@ emit_tex(compiler_context *ctx, nir_tex_instr *instr)
                         break;
                };
 
-                default: {
-                        DBG("Unknown source type\n");
-                        //assert(0);
-                        break;
-                }
+                default:
+                        unreachable("Unknown texture source type\n");
                 }
         }