radeonsi: add an AMD_TEX_ANISO environment variable
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 7 May 2019 00:18:54 +0000 (10:18 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 7 May 2019 23:32:25 +0000 (09:32 +1000)
This brings it inline with the recently added AMD_DEBUG.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109619

src/gallium/drivers/radeonsi/si_pipe.c

index b0e0ca7af059fb10a0ff2717ba853dfe4acd6c17..4d36fd46a9bcdfcc156b9edadd313f07171a7528 100644 (file)
@@ -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 */