iris: disable 6x MSAA support
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Jul 2018 17:51:14 +0000 (10:51 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_formats.c

index 51134a5be64c59cf4eb73caca0ffc0b829605203..d42befb4fe2b92c51e885a24020b3b280570340c 100644 (file)
@@ -21,8 +21,9 @@
  * IN THE SOFTWARE.
  */
 
-#include "util/u_format.h"
+#include "util/bitscan.h"
 #include "util/macros.h"
+#include "util/u_format.h"
 
 #include "iris_resource.h"
 #include "iris_screen.h"
@@ -402,7 +403,7 @@ iris_is_format_supported(struct pipe_screen *pscreen,
    const struct gen_device_info *devinfo = &screen->devinfo;
 
    // XXX: msaa max
-   if (sample_count > 16)
+   if (sample_count > 16 || !util_is_power_of_two_or_zero(sample_count))
       return false;
 
    if (pformat == PIPE_FORMAT_NONE)