[Mesa-dev] [PATCH 5/6] panfrost/midgard: Assert on unknown texture source

Alyssa Rosenzweig alyssa.rosenzweig at collabora.com
Tue Jun 11 17:53:27 UTC 2019


Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
 src/gallium/drivers/panfrost/midgard/midgard_compile.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
index 5d21ae2f844..39b8fb9760f 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c
+++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
@@ -1385,11 +1385,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");
                 }
         }
 
-- 
2.20.1



More information about the mesa-dev mailing list