summaryrefslogtreecommitdiffstats
path: root/src/intel/blorp
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-02-10 10:52:51 -0800
committerJason Ekstrand <[email protected]>2018-12-12 08:32:32 -0600
commit5749c0ebc43674aab1632bfd590238b13182fcdb (patch)
tree7b47d8875495dae335289b1d2f09184700210d8b /src/intel/blorp
parente4fdc650f1c5ada29037daa954b2fd3b031cb328 (diff)
intel/blorp: Assert that we don't re-layout a compressed surface
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/blorp')
-rw-r--r--src/intel/blorp/blorp_blit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
index ae3e3c50930..a5da7d015e2 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 &&