[Mesa-dev] [PATCH] radeonsi: add an AMD_TEX_ANISO environment variable
Marek Olšák
maraeo at gmail.com
Tue May 7 23:05:34 UTC 2019
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Mon, May 6, 2019 at 8:19 PM Timothy Arceri <tarceri at itsqueeze.com> wrote:
> This brings it inline with the recently added AMD_DEBUG.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109619
> ---
> src/gallium/drivers/radeonsi/si_pipe.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/gallium/drivers/radeonsi/si_pipe.c
> b/src/gallium/drivers/radeonsi/si_pipe.c
> index b0e0ca7af05..4d36fd46a9b 100644
> --- a/src/gallium/drivers/radeonsi/si_pipe.c
> +++ b/src/gallium/drivers/radeonsi/si_pipe.c
> @@ -950,6 +950,10 @@ struct pipe_screen *radeonsi_screen_create(struct
> radeon_winsys *ws,
> sizeof(struct si_transfer), 64);
>
> sscreen->force_aniso = MIN2(16,
> debug_get_num_option("R600_TEX_ANISO", -1));
> + if (sscreen->force_aniso == -1) {
> + sscreen->force_aniso = MIN2(16,
> debug_get_num_option("AMD_TEX_ANISO", -1));
> + }
> +
> if (sscreen->force_aniso >= 0) {
> printf("radeonsi: Forcing anisotropy filter to %ix\n",
> /* round down to a power of two */
> --
> 2.20.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190507/d38ce6a8/attachment.html>
More information about the mesa-dev
mailing list