summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_screen.c
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2010-05-25 22:33:21 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2010-06-16 10:54:08 -0700
commita91fea65dc574cc0ba2ccec936d60366b034489a (patch)
tree52edaeae14b990f328a4a2d287029c3cb35680cc /src/gallium/drivers/r300/r300_screen.c
parent3784b0fa69491aa14bdf6f7a61c4d5de2589d234 (diff)
r300g: Moar MSAA setup.
Need to just add the resolve, then go switch to new DRM and test.
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.c')
-rw-r--r--src/gallium/drivers/r300/r300_screen.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index f0c562b76b..c599f76e56 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -275,8 +275,17 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
return FALSE;
}
- if (sample_count > 1)
- return FALSE;
+ switch (sample_count) {
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 6:
+ break;
+ default:
+ return FALSE;
+ }
/* Check sampler format support. */
if ((usage & PIPE_BIND_SAMPLER_VIEW) &&