mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
treewide: Remove unused builders
-Wunused-variables kicks in now that it can see through the init. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23860>
This commit is contained in:
parent
173b9ee69a
commit
069cca9d66
8 changed files with 0 additions and 19 deletions
|
|
@ -34,8 +34,6 @@ radv_should_lower_poly_line_smooth(nir_shader *nir, const struct radv_pipeline_k
|
|||
if (!key->ps.line_smooth_enabled && !key->dynamic_line_rast_mode)
|
||||
return false;
|
||||
|
||||
nir_builder b = nir_builder_create(impl);
|
||||
|
||||
nir_foreach_block (block, impl) {
|
||||
nir_foreach_instr (instr, block) {
|
||||
if (instr->type != nir_instr_type_intrinsic)
|
||||
|
|
|
|||
|
|
@ -286,8 +286,6 @@ nir_force_mediump_io(nir_shader *nir, nir_variable_mode modes,
|
|||
nir_function_impl *impl = nir_shader_get_entrypoint(nir);
|
||||
assert(impl);
|
||||
|
||||
nir_builder b = nir_builder_create(impl);
|
||||
|
||||
nir_foreach_block_safe (block, impl) {
|
||||
nir_foreach_instr_safe (instr, block) {
|
||||
nir_variable_mode mode;
|
||||
|
|
|
|||
|
|
@ -1970,8 +1970,6 @@ nir_lower_shader_calls(nir_shader *shader,
|
|||
{
|
||||
nir_function_impl *impl = nir_shader_get_entrypoint(shader);
|
||||
|
||||
nir_builder b = nir_builder_create(impl);
|
||||
|
||||
int num_calls = 0;
|
||||
nir_foreach_block(block, impl) {
|
||||
nir_foreach_instr_safe(instr, block) {
|
||||
|
|
|
|||
|
|
@ -1067,8 +1067,6 @@ r600_nir_64_to_vec2(nir_shader *sh)
|
|||
nir_foreach_function(function, sh)
|
||||
{
|
||||
if (function->impl) {
|
||||
nir_builder b = nir_builder_create(function->impl);
|
||||
|
||||
nir_foreach_block(block, function->impl)
|
||||
{
|
||||
nir_foreach_instr_safe(instr, block)
|
||||
|
|
|
|||
|
|
@ -1539,8 +1539,6 @@ static bool si_nir_kill_outputs(nir_shader *nir, const union si_shader_key *key)
|
|||
|
||||
bool progress = false;
|
||||
|
||||
nir_builder b = nir_builder_create(impl);
|
||||
|
||||
nir_foreach_block(block, impl) {
|
||||
nir_foreach_instr_safe(instr, block) {
|
||||
if (instr->type != nir_instr_type_intrinsic)
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@ static bool
|
|||
lower_gl_point_gs(nir_shader *shader)
|
||||
{
|
||||
struct lower_gl_point_state state;
|
||||
nir_builder b;
|
||||
|
||||
shader->info.gs.output_primitive = MESA_PRIM_TRIANGLE_STRIP;
|
||||
shader->info.gs.vertices_out *= 4;
|
||||
|
|
@ -397,10 +396,6 @@ lower_gl_point_gs(nir_shader *shader)
|
|||
if (!state.gl_pos_out || !state.gl_point_size)
|
||||
return false;
|
||||
|
||||
nir_function_impl *entry = nir_shader_get_entrypoint(shader);
|
||||
b = nir_builder_create(entry);
|
||||
b.cursor = nir_before_cf_list(&entry->body);
|
||||
|
||||
return nir_shader_instructions_pass(shader, lower_gl_point_gs_instr,
|
||||
nir_metadata_dominance, &state);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -456,8 +456,6 @@ clc_lower_constant_to_ssbo(nir_shader *nir,
|
|||
|
||||
assert(func->impl);
|
||||
|
||||
nir_builder b = nir_builder_create(func->impl);
|
||||
|
||||
nir_foreach_block(block, func->impl) {
|
||||
nir_foreach_instr(instr, block) {
|
||||
if (instr->type != nir_instr_type_deref)
|
||||
|
|
|
|||
|
|
@ -53,8 +53,6 @@ nir_fuse_io_16(nir_shader *shader)
|
|||
if (!function->impl)
|
||||
continue;
|
||||
|
||||
nir_builder b = nir_builder_create(function->impl);
|
||||
|
||||
nir_foreach_block(block, function->impl) {
|
||||
nir_foreach_instr_safe(instr, block) {
|
||||
if (instr->type != nir_instr_type_intrinsic)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue