Mesa (master): r300g: Don't multisample non-32-bpp render targets.

Corbin Simpson csimpson at kemper.freedesktop.org
Wed Jun 16 11:02:13 PDT 2010


Module: Mesa
Branch: master
Commit: 8ecca392da70eb0137117e73448fe610a5638ae7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ecca392da70eb0137117e73448fe610a5638ae7

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Wed Jun 16 10:51:04 2010 -0700

r300g: Don't multisample non-32-bpp render targets.

---

 src/gallium/drivers/r300/r300_screen.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index c599f76..8f7c96b 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -278,10 +278,16 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
     switch (sample_count) {
         case 0:
         case 1:
+            break;
         case 2:
         case 3:
         case 4:
         case 6:
+            if (usage != PIPE_BIND_RENDER_TARGET ||
+                !util_format_is_rgba8_variant(
+                    util_format_description(format))) {
+                return FALSE;
+            }
             break;
         default:
             return FALSE;



More information about the mesa-commit mailing list