gallium/tgsi: remove is_msaa_sampler array from tgsi_shader_info
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 23 Feb 2018 02:46:27 +0000 (13:46 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 26 Feb 2018 00:43:47 +0000 (11:43 +1100)
Seems to have not been used since 16be87c90429

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/auxiliary/tgsi/tgsi_scan.c
src/gallium/auxiliary/tgsi/tgsi_scan.h

index 989c57ebeed51d9b1fa7cb0525096b3412dbb0d8..c35eff25ba8d80a1d6ef878d59abe7cc2463785c 100644 (file)
@@ -267,7 +267,6 @@ scan_src_operand(struct tgsi_shader_info *info,
       const unsigned index = src->Register.Index;
 
       assert(fullinst->Instruction.Texture);
-      assert(index < ARRAY_SIZE(info->is_msaa_sampler));
       assert(index < PIPE_MAX_SAMPLERS);
 
       if (is_texture_inst(fullinst->Instruction.Opcode)) {
@@ -286,11 +285,6 @@ scan_src_operand(struct tgsi_shader_info *info,
              */
             assert(info->sampler_targets[index] == target);
          }
-         /* MSAA samplers */
-         if (target == TGSI_TEXTURE_2D_MSAA ||
-             target == TGSI_TEXTURE_2D_ARRAY_MSAA) {
-            info->is_msaa_sampler[src->Register.Index] = TRUE;
-         }
       }
    }
 
index 0f872b00220d19a92969d278cc259a01620a8069..1887ff342de7f8002912ab63c05524a0f6b43f30 100644 (file)
@@ -132,7 +132,6 @@ struct tgsi_shader_info
    boolean writes_viewport_index;
    boolean writes_layer;
    boolean writes_memory; /**< contains stores or atomics to buffers or images */
-   boolean is_msaa_sampler[PIPE_MAX_SAMPLERS];
    boolean uses_doubles; /**< uses any of the double instructions */
    boolean uses_derivatives;
    boolean uses_bindless_samplers;