radeonsi: remove unused si_shader_info::uses_(vertexid|basevertex)
authorMarek Olšák <marek.olsak@amd.com>
Sun, 6 Sep 2020 06:36:34 +0000 (02:36 -0400)
committerVivek Pandya <vivekvpandya@gmail.com>
Mon, 7 Sep 2020 15:55:17 +0000 (21:25 +0530)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6624>

src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_shader_nir.c

index bf4d9ca6274e2fd3bc333e76ea86b01e04b2852e..59c1d76ddd18061a19e59d9e40e4e114ba02873f 100644 (file)
@@ -358,9 +358,6 @@ struct si_shader_info {
    bool uses_persp_opcode_interp_sample;
    bool uses_linear_opcode_interp_sample;
    bool uses_instanceid;
-   bool uses_vertexid;
-   bool uses_vertexid_nobase;
-   bool uses_basevertex;
    bool uses_drawid;
    bool uses_primid;
    bool uses_frontface;
index 8341181dec0372baa8acb37354aac388a16107e8..8873aa29a5ec5006003ac7a302ce395274e42100 100644 (file)
@@ -303,15 +303,6 @@ static void scan_instruction(const struct nir_shader *nir, struct si_shader_info
          }
          break;
       }
-      case nir_intrinsic_load_vertex_id:
-         info->uses_vertexid = 1;
-         break;
-      case nir_intrinsic_load_vertex_id_zero_base:
-         info->uses_vertexid_nobase = 1;
-         break;
-      case nir_intrinsic_load_base_vertex:
-         info->uses_basevertex = 1;
-         break;
       case nir_intrinsic_load_draw_id:
          info->uses_drawid = 1;
          break;