aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-07-12 10:51:14 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:07 -0800
commit44248d16d23dda4fe281209b1019dfa593e496bb (patch)
treec44a5e6ac7fc394e423cdc5229ef1febd0c29f97 /src/gallium/drivers/iris
parentbc1b4db3b318aaa83ab1faa21c186c88dbe46483 (diff)
iris: disable 6x MSAA support
Diffstat (limited to 'src/gallium/drivers/iris')
-rw-r--r--src/gallium/drivers/iris/iris_formats.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/iris/iris_formats.c b/src/gallium/drivers/iris/iris_formats.c
index 51134a5be64..d42befb4fe2 100644
--- a/src/gallium/drivers/iris/iris_formats.c
+++ b/src/gallium/drivers/iris/iris_formats.c
@@ -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)