From b3375800d741bfc51d62049294f297a03d7cec76 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 11 Apr 2017 13:54:44 +0200 Subject: [PATCH] virgl: add missing PIPE_CAP_DOUBLES Fixes the following Clang warning. virgl_screen.c:60:12: warning: enumeration value 'PIPE_CAP_DOUBLES' not handled in switch [-Wswitch] switch (param) { ^ 1 warning generated. Signed-off-by: Samuel Pitoiset Reviewed-by: Brian Paul --- src/gallium/drivers/virgl/virgl_screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c index 8e0117c9890..7cd61b37598 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -260,6 +260,7 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE: case PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE: case PIPE_CAP_TGSI_BALLOT: + case PIPE_CAP_DOUBLES: return 0; case PIPE_CAP_VENDOR_ID: return 0x1af4; -- 2.30.2