[Mesa-dev] [PATCH] panfrost: Fix bug/cruft calling tgsi_to_nir

Alyssa Rosenzweig alyssa at rosenzweig.io
Wed Mar 6 02:45:08 UTC 2019


Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
---
 src/gallium/drivers/panfrost/pan_assemble.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_assemble.c b/src/gallium/drivers/panfrost/pan_assemble.c
index f3b339d8184..7e2f24edd71 100644
--- a/src/gallium/drivers/panfrost/pan_assemble.c
+++ b/src/gallium/drivers/panfrost/pan_assemble.c
@@ -32,8 +32,6 @@
 #include "midgard/midgard_compile.h"
 #include "util/u_dynarray.h"
 
-#include "tgsi/tgsi_dump.h"
-
 void
 panfrost_shader_compile(struct panfrost_context *ctx, struct mali_shader_meta *meta, const char *src, int type, struct panfrost_shader_state *state)
 {
@@ -47,8 +45,7 @@ panfrost_shader_compile(struct panfrost_context *ctx, struct mali_shader_meta *m
                 s = nir_shader_clone(NULL, cso->ir.nir);
         } else {
                 assert (cso->type == PIPE_SHADER_IR_TGSI);
-                //tgsi_dump(cso->tokens, 0);
-                s = tgsi_to_nir(cso->tokens, &ctx->base.screen);
+                s = tgsi_to_nir(cso->tokens, ctx->base.screen);
         }
 
         s->info.stage = type == JOB_TYPE_VERTEX ? MESA_SHADER_VERTEX : MESA_SHADER_FRAGMENT;
-- 
2.20.1



More information about the mesa-dev mailing list