diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index abd3b454a12..a5776cb7844 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -769,8 +769,6 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader, case nir_intrinsic_ddy: case nir_intrinsic_ddy_fine: case nir_intrinsic_ddy_coarse: - shader->info.uses_fddx_fddy = true; - if (shader->info.stage == MESA_SHADER_FRAGMENT) shader->info.fs.needs_quad_helper_invocations = true; break; @@ -916,9 +914,6 @@ gather_alu_info(nir_alu_instr *instr, nir_shader *shader) shader->info.fs.needs_quad_helper_invocations = true; } - if (instr->op == nir_op_fddx || instr->op == nir_op_fddy) - shader->info.uses_fddx_fddy = true; - const nir_op_info *info = &nir_op_infos[instr->op]; for (unsigned i = 0; i < info->num_inputs; i++) { diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 22149ecc401..45f9347823f 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -2558,7 +2558,6 @@ print_shader_info(const struct shader_info *info, FILE *fp) print_nz_bool(fp, "uses_texture_gather", info->uses_texture_gather); print_nz_bool(fp, "uses_resource_info_query", info->uses_resource_info_query); - print_nz_bool(fp, "uses_fddx_fddy", info->uses_fddx_fddy); print_nz_bool(fp, "divergence_analysis_run", info->divergence_analysis_run); print_nz_x8(fp, "bit_sizes_float", info->bit_sizes_float); diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index 8de52485cf6..2289bb23654 100644 --- a/src/compiler/shader_info.h +++ b/src/compiler/shader_info.h @@ -183,13 +183,6 @@ typedef struct shader_info { /* Whether texture size, levels, or samples is queried. */ bool uses_resource_info_query:1; - /** - * True if this shader uses the fddx/fddy opcodes. - * - * Note that this does not include the "fine" and "coarse" variants. - */ - bool uses_fddx_fddy:1; - /** Has divergence analysis ever been run? */ bool divergence_analysis_run:1;