nvc0: disable MS Images for sample_count == 1 on Maxwell
authorKarol Herbst <kherbst@redhat.com>
Mon, 5 Feb 2018 14:41:50 +0000 (15:41 +0100)
committerKarol Herbst <kherbst@redhat.com>
Thu, 15 Feb 2018 10:14:46 +0000 (11:14 +0100)
fixes KHR-GL45.multi_bind.dispatch_bind_textures on Maxwell

Suggested-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c

index 322382adceb24f253f648daa4eea6c4306d2613b..225772cecefa0bc852893ea47d7d7a82dbe99670 100644 (file)
@@ -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. */