From 370240615421055be24c2c30e345d0454043d5e1 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 7 Jul 2021 10:52:09 -0500 Subject: [PATCH] intel/isl: Explicitly set offset_B = 0 in get_uncomp_surf for arrays The only user of this case is iris which initializes offset_B to 0 so there's no real bug here. However, it is unexpected from an API PoV. Fixes: 9946120d2b4e "intel/isl: Add more cases to isl_surf_get_uncompressed_surf" Acked-by: Ivan Briano Reviewed-by: Kenneth Graunke Part-of: --- src/intel/isl/isl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index 2e2e79c5659..53adb4dbbde 100644 --- a/src/intel/isl/isl.c +++ b/src/intel/isl/isl.c @@ -2892,6 +2892,9 @@ isl_surf_get_uncompressed_surf(const struct isl_device *dev, *ucompr_surf = *surf; ucompr_surf->levels = 1; + /* The surface mostly stays as-is; there is no offset */ + *offset_B = 0; + /* The view remains the same */ *ucompr_view = *view; } else {