panfrost: Fix bug/cruft calling tgsi_to_nir

Submitted by Alyssa Rosenzweig on March 6, 2019, 2:45 a.m.

Details

Message ID 20190306024508.14248-1-alyssa@rosenzweig.io
State New
Headers show
Series "panfrost: Fix bug/cruft calling tgsi_to_nir" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Alyssa Rosenzweig March 6, 2019, 2:45 a.m.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
---
 src/gallium/drivers/panfrost/pan_assemble.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Patch hide | download patch | download mbox

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;