From 41d127b9e8079a2e255ced9de6207fa647df64a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 11 Dec 2025 16:39:40 -0500 Subject: [PATCH] nir/lower_io: remove unused option nir_lower_io_lower_64bit_float_to_32 Reviewed-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Alyssa Rosenzweig Part-of: --- src/compiler/nir/nir.h | 6 ------ src/compiler/nir/nir_lower_io.c | 10 ++++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index b4514330adf..6a25fd54f2c 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -5279,12 +5279,6 @@ typedef enum { */ nir_lower_io_lower_64bit_to_32 = (1 << 0), - /* If set, this causes the subset of 64-bit IO operations involving floats to be lowered on-the-fly - * to 32-bit operations. This is only valid for nir_var_shader_in/out - * modes. - */ - nir_lower_io_lower_64bit_float_to_32 = (1 << 1), - /* This causes all 64-bit IO operations to be lowered to 32-bit operations. * This is only valid for nir_var_shader_in/out modes. * diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index bbebc51e633..54f199c3a3b 100644 --- a/src/compiler/nir/nir_lower_io.c +++ b/src/compiler/nir/nir_lower_io.c @@ -475,10 +475,9 @@ lower_load(nir_intrinsic_instr *intrin, struct lower_io_state *state, nir_def *array_index, nir_variable *var, nir_def *offset, unsigned component, const struct glsl_type *type) { - const bool lower_double = !glsl_type_is_integer(type) && state->options & nir_lower_io_lower_64bit_float_to_32; if (intrin->def.bit_size == 64 && - (lower_double || (state->options & (nir_lower_io_lower_64bit_to_32_new | - nir_lower_io_lower_64bit_to_32)))) { + state->options & (nir_lower_io_lower_64bit_to_32_new | + nir_lower_io_lower_64bit_to_32)) { nir_builder *b = &state->builder; bool use_high_dvec2_semantic = uses_high_dvec2_semantic(state, var); @@ -638,10 +637,9 @@ lower_store(nir_intrinsic_instr *intrin, struct lower_io_state *state, nir_def *array_index, nir_variable *var, nir_def *offset, unsigned component, const struct glsl_type *type) { - const bool lower_double = !glsl_type_is_integer(type) && state->options & nir_lower_io_lower_64bit_float_to_32; if (intrin->src[1].ssa->bit_size == 64 && - (lower_double || (state->options & (nir_lower_io_lower_64bit_to_32 | - nir_lower_io_lower_64bit_to_32_new)))) { + state->options & (nir_lower_io_lower_64bit_to_32 | + nir_lower_io_lower_64bit_to_32_new)) { nir_builder *b = &state->builder; const unsigned slot_size = state->type_size(glsl_dvec_type(2), false);