From: Marek Olšák Date: Sun, 6 Sep 2020 06:36:34 +0000 (-0400) Subject: radeonsi: remove unused si_shader_info::uses_(vertexid|basevertex) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5d5a93b87ab12b3c8e625f2586d8d398715d725;p=mesa.git radeonsi: remove unused si_shader_info::uses_(vertexid|basevertex) Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h index bf4d9ca6274..59c1d76ddd1 100644 --- a/src/gallium/drivers/radeonsi/si_shader.h +++ b/src/gallium/drivers/radeonsi/si_shader.h @@ -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; diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 8341181dec0..8873aa29a5e 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -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;