Module: Mesa
Branch: main
Commit: 750744143021f3925a6e35b0a1502ef4821c8b6b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=750744143021f3925a6e35b0a1502ef4821c8b6b

Author: Lionel Landwerlin <[email protected]>
Date:   Wed Jun 14 15:34:12 2023 +0300

isl: assert on gfx8 condition that should not be met

Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Nanley Chery <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14039>

---

 src/intel/isl/isl_gfx8.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/intel/isl/isl_gfx8.c b/src/intel/isl/isl_gfx8.c
index 2139e2a6e95..e91d30c339f 100644
--- a/src/intel/isl/isl_gfx8.c
+++ b/src/intel/isl/isl_gfx8.c
@@ -66,8 +66,9 @@ isl_gfx8_choose_msaa_layout(const struct isl_device *dev,
       return false;
 
    /* More obvious restrictions */
-   if (isl_surf_usage_is_display(info->usage))
-      return false;
+   assert(!isl_surf_usage_is_display(info->usage));
+   assert(tiling != ISL_TILING_LINEAR);
+
    if (!isl_format_supports_multisampling(dev->info, info->format))
       return false;
 

Reply via email to