[Mesa-dev] [PATCH 2/3] svga: check for sample_count > 0 in svga_is_format_supported()

Brian Paul brianp at vmware.com
Wed Aug 2 17:07:35 UTC 2017


See previous commit for more info.  If sample_count=1, we want to
return failure here since we don't support 1x MSAA.
---
 src/gallium/drivers/svga/svga_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index 9849fe3..4bb1ffb 100644
--- a/src/gallium/drivers/svga/svga_screen.c
+++ b/src/gallium/drivers/svga/svga_screen.c
@@ -732,7 +732,7 @@ svga_is_format_supported( struct pipe_screen *screen,
 
    assert(bindings);
 
-   if (sample_count > 1) {
+   if (sample_count > 0) {
       /* In ms_samples, if bit N is set it means that we support
        * multisample with N+1 samples per pixel.
        */
-- 
1.9.1



More information about the mesa-dev mailing list