Mesa (master): nvc0: disable MS Images for sample_count == 1 on Maxwell

Karol Herbst karolherbst at kemper.freedesktop.org
Thu Feb 15 10:24:05 UTC 2018


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

Author: Karol Herbst <kherbst at redhat.com>
Date:   Mon Feb  5 15:41:50 2018 +0100

nvc0: disable MS Images for sample_count == 1 on Maxwell

fixes KHR-GL45.multi_bind.dispatch_bind_textures on Maxwell

Suggested-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Karol Herbst <kherbst at redhat.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index 322382adce..225772cece 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -88,7 +88,7 @@ nvc0_screen_is_format_supported(struct pipe_screen *pscreen,
                  PIPE_BIND_SHARED);
 
    if (bindings & PIPE_BIND_SHADER_IMAGE) {
-      if (sample_count > 1 &&
+      if (sample_count > 0 &&
           nouveau_screen(pscreen)->class_3d >= GM107_3D_CLASS) {
          /* MS images are currently unsupported on Maxwell because they have to
           * be handled explicitly. */




More information about the mesa-commit mailing list