radv: optimize sample mask comparisons

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32327>
This commit is contained in:
Georg Lehmann
2024-11-25 14:21:47 +01:00
committed by Marge Bot
parent 3f26e9ca19
commit 239c0124df
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -95,6 +95,7 @@ void ac_set_nir_options(struct radeon_info *info, bool use_llvm,
options->support_16bit_alu = info->gfx_level >= GFX8;
options->vectorize_vec2_16bit = info->has_packed_math_16bit;
options->discard_is_demote = true;
options->optimize_sample_mask_in = true;
options->io_options = nir_io_has_flexible_input_interpolation_except_flat |
(info->gfx_level >= GFX8 ? nir_io_16bit_input_output_support : 0) |
nir_io_prefer_scalar_fs_inputs |
-1
View File
@@ -1561,7 +1561,6 @@ void si_init_screen_get_functions(struct si_screen *sscreen)
options->fuse_ffma64 = true;
options->lower_uniforms_to_ubo = true;
options->lower_layer_fs_input_to_sysval = true;
options->optimize_sample_mask_in = true;
options->lower_to_scalar = true;
options->lower_to_scalar_filter =
sscreen->info.has_packed_math_16bit ? si_alu_to_scalar_packed_math_filter : NULL;