Mesa (master): intel/blorp: Assert that we don't re-layout a compressed surface

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 12 15:31:25 UTC 2018


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

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Sat Feb 10 10:52:51 2018 -0800

intel/blorp: Assert that we don't re-layout a compressed surface

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

---

 src/intel/blorp/blorp_blit.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
index ae3e3c5093..a5da7d015e 100644
--- a/src/intel/blorp/blorp_blit.c
+++ b/src/intel/blorp/blorp_blit.c
@@ -1518,6 +1518,9 @@ blorp_surf_convert_to_single_slice(const struct isl_device *isl_dev,
 {
    bool ok UNUSED;
 
+   /* It would be insane to try and do this on a compressed surface */
+   assert(info->aux_usage == ISL_AUX_USAGE_NONE);
+
    /* Just bail if we have nothing to do. */
    if (info->surf.dim == ISL_SURF_DIM_2D &&
        info->view.base_level == 0 && info->view.base_array_layer == 0 &&




More information about the mesa-commit mailing list