diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-10-07 17:05:23 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-10-09 13:29:26 -0700 |
commit | 44978baece71a5d663803953f00be85b7183d9b0 (patch) | |
tree | 00673c28ac77f7c41237fc0089eaf3ab88260d39 | |
parent | d438261e0516771740b2e79eaa2f44a49053cc98 (diff) |
anv: Disable fast clears when running with INTEL_DEBUG=nofc
Reviewed-by: Rafael Antognolli <[email protected]>
-rw-r--r-- | src/intel/vulkan/anv_image.c | 3 |
1 files changed, 3 insertions, 0 deletions
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)); |