iris: Enable always flush cache with DEBUG_STALL option
authorSagar Ghuge <sagar.ghuge@intel.com>
Fri, 8 Sep 2023 06:42:31 +0000 (23:42 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 8 Sep 2023 20:57:20 +0000 (20:57 +0000)
With DEBUG_STALL option, enable always cache flush option for debugging
purpose that aligns with anv.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25108>

src/gallium/drivers/iris/iris_screen.c

index db88da2..2ae543c 100644 (file)
@@ -863,7 +863,7 @@ iris_screen_create(int fd, const struct pipe_screen_config *config)
       driQueryOptionb(config->options, "dual_color_blend_by_location");
    screen->driconf.disable_throttling =
       driQueryOptionb(config->options, "disable_throttling");
-   screen->driconf.always_flush_cache =
+   screen->driconf.always_flush_cache = INTEL_DEBUG(DEBUG_STALL) ||
       driQueryOptionb(config->options, "always_flush_cache");
    screen->driconf.sync_compile =
       driQueryOptionb(config->options, "sync_compile");