nir: remove uses_fddx_fddy

Unused and the code didn't even do what the comment said.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31014>
This commit is contained in:
Georg Lehmann 2024-09-04 13:10:38 +02:00 committed by Marge Bot
parent cba575f4df
commit bf0d1a42b4
3 changed files with 0 additions and 13 deletions

View file

@ -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++) {

View file

@ -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);

View file

@ -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;