Mesa (master): panfrost/midgard: Assert on unknown texture source
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 12 21:33:43 UTC 2019
Module: Mesa
Branch: master
Commit: 5062b612be79fad82b4f1b4adf4c30824cb6cff8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5062b612be79fad82b4f1b4adf4c30824cb6cff8
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Tue Jun 11 09:55:18 2019 -0700
panfrost/midgard: Assert on unknown texture source
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 4bddea40fdb..6761b276814 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c
+++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
@@ -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");
}
}
More information about the mesa-commit
mailing list