pan/midgard: Remove texture_index
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 30 Aug 2019 18:01:57 +0000 (11:01 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 30 Aug 2019 22:50:26 +0000 (15:50 -0700)
This is deadcode.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/compiler.h
src/panfrost/midgard/midgard_compile.c

index b63a542e5adb83d5ba5066dc2b06b186844e58c1..00c6b52413aee7e244e0836e41fbdb6188603ae7 100644 (file)
@@ -268,9 +268,6 @@ typedef struct compiler_context {
          * Decrease when a tex op is removed. */
         int texture_op_count;
 
-        /* Mapping of texture register -> SSA index for unaliasing */
-        int texture_index[2];
-
         /* The number of uniforms allowable for the fast path */
         int uniform_cutoff;
 
index 8a0ac08803aaade23bfe48027986fe151e3f8ea6..158f89a23c35e9da2cb1b1706f0cb6c7a16fa592 100644 (file)
@@ -2294,9 +2294,6 @@ emit_block(compiler_context *ctx, nir_block *block)
         this_block->is_scheduled = false;
         ++ctx->block_count;
 
-        ctx->texture_index[0] = ~0;
-        ctx->texture_index[1] = ~0;
-
         /* Set up current block */
         list_inithead(&this_block->instructions);
         ctx->current_block = this_block;