Mesa (master): anv: Disable fast clears when running with INTEL_DEBUG=nofc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Oct 9 21:06:08 UTC 2019


Module: Mesa
Branch: master
Commit: 44978baece71a5d663803953f00be85b7183d9b0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=44978baece71a5d663803953f00be85b7183d9b0

Author: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Date:   Mon Oct  7 17:05:23 2019 -0700

anv: Disable fast clears when running with INTEL_DEBUG=nofc

Reviewed-by: Rafael Antognolli <rafael.antognolli at intel.com>

---

 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));
 




More information about the mesa-commit mailing list