diff options
author | Corbin Simpson <[email protected]> | 2010-05-25 22:33:21 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2010-06-16 10:54:08 -0700 |
commit | a91fea65dc574cc0ba2ccec936d60366b034489a (patch) | |
tree | 52edaeae14b990f328a4a2d287029c3cb35680cc /src/gallium/drivers/r300/r300_screen.c | |
parent | 3784b0fa69491aa14bdf6f7a61c4d5de2589d234 (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.c | 13 |
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 f0c562b76b3..c599f76e564 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) && |