gallium: add missing PIPE_CAP_SURFACE_SAMPLE_COUNT default value
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 7 Dec 2018 09:08:38 +0000 (10:08 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 7 Dec 2018 14:06:29 +0000 (15:06 +0100)
Fixes: 2710c40e3c8 ("gallium: Add new PIPE_CAP_SURFACE_SAMPLE_COUNT")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/auxiliary/util/u_screen.c

index 73dbbee94a90054840eacc20ba9b775900955e35..aef21bc46ae0d3878d6493455c15a88ceb0985da 100644 (file)
@@ -326,6 +326,9 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
    case PIPE_CAP_MAX_VERTEX_ELEMENT_SRC_OFFSET:
       return 2047;
 
+   case PIPE_CAP_SURFACE_SAMPLE_COUNT:
+      return 0;
+
    default:
       unreachable("bad PIPE_CAP_*");
    }