isl: Fix width check in isl_gen7_choose_msaa_layout.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 24 Sep 2017 21:50:17 +0000 (14:50 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Oct 2017 17:21:45 +0000 (10:21 -0700)
The restriction is supposed to apply if the width *field* is >= 8192,
meaning the actual width *value* is >= 8193.

The code also incorrectly used == for some reason.

Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/isl/isl_gen7.c

index 24d411f51e948277e10085b2f8b9dbacc5760a0a..c42428cba7a06e4cc4425621b4da3c9880fdb025 100644 (file)
@@ -132,7 +132,7 @@ isl_gen7_choose_msaa_layout(const struct isl_device *dev,
     *    is >= 8192 (meaning the actual surface width is >= 8193 pixels), this
     *    field must be set to MSFMT_MSS.
     */
-   if (info->samples == 8 && info->width == 8192)
+   if (info->samples == 8 && info->width > 8192)
       require_array = true;
 
    /* From the Ivybridge PRM, Volume 4 Part 1 p72, SURFACE_STATE, Multisampled