summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2018-11-08 10:20:54 +1000
committerKenneth Graunke <[email protected]>2019-02-21 10:26:11 -0800
commit1bbf095473cbac919362686b21a5dfebb001e529 (patch)
treed40069ea4b2032300c86c419afd4c04bcc99b153 /src/gallium
parent823609b1a393ee0dce51191f4d3856bf33584e29 (diff)
iris: limit gen8 to 8 samples
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/iris/iris_formats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_formats.c b/src/gallium/drivers/iris/iris_formats.c
index 9bb8ec773de..969405154b3 100644
--- a/src/gallium/drivers/iris/iris_formats.c
+++ b/src/gallium/drivers/iris/iris_formats.c
@@ -400,9 +400,10 @@ iris_is_format_supported(struct pipe_screen *pscreen,
{
struct iris_screen *screen = (struct iris_screen *) pscreen;
const struct gen_device_info *devinfo = &screen->devinfo;
+ uint32_t max_samples = devinfo->gen == 8 ? 8 : 16;
// XXX: msaa max
- if (sample_count > 16 || !util_is_power_of_two_or_zero(sample_count))
+ if (sample_count > max_samples || !util_is_power_of_two_or_zero(sample_count))
return false;
if (pformat == PIPE_FORMAT_NONE)