ac/llvm: add disable_aniso_single_level abi

RADV use dri option to enabled this for some apps, but it's
done in nir lower currently. I'm afraid it still needs this
option to handle the non-uniform case as desc is loaded in
llvm.

radeonsi always enable this for bind-textures.

radeonsi will lower all bind-textures to bindless-textures,
and only bind-textures use desc index, so add this abi for
bindless desc index path.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18666>
This commit is contained in:
Qiang Yu
2022-09-16 19:41:02 +08:00
parent 194add2c23
commit adecf52a3b
2 changed files with 9 additions and 1 deletions

View File

@@ -135,6 +135,9 @@ struct ac_shader_abi {
* waterfall to avoid incorrect rendering. */
bool use_waterfall_for_divergent_tex_samplers;
/* Whether to disable anisotropic filtering. */
bool disable_aniso_single_level;
/* Number of all interpolated inputs */
unsigned num_interp;
};