From 44978baece71a5d663803953f00be85b7183d9b0 Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Mon, 7 Oct 2019 17:05:23 -0700 Subject: [PATCH] anv: Disable fast clears when running with INTEL_DEBUG=nofc Reviewed-by: Rafael Antognolli --- src/intel/vulkan/anv_image.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 66116a8a67d..bd00bc83e13 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -1181,6 +1181,9 @@ anv_layout_to_fast_clear_type(const struct gen_device_info * const devinfo, const VkImageAspectFlagBits aspect, const VkImageLayout layout) { + if (INTEL_DEBUG & DEBUG_NO_FAST_CLEAR) + return ANV_FAST_CLEAR_NONE; + /* The aspect must be exactly one of the image aspects. */ assert(util_bitcount(aspect) == 1 && (aspect & image->aspects)); -- 2.30.2