projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
823609b
)
iris: limit gen8 to 8 samples
author
Dave Airlie
<airlied@redhat.com>
Thu, 8 Nov 2018 00:20:54 +0000
(10:20 +1000)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:11 +0000
(10:26 -0800)
src/gallium/drivers/iris/iris_formats.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/iris/iris_formats.c
b/src/gallium/drivers/iris/iris_formats.c
index 9bb8ec773deb37b1f315fef683d8a1099bbd5269..969405154b3b99ae1d3363ccc52d158d3b88013d 100644
(file)
--- 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)