[Mesa-dev] [PATCH 01/15] virgl: add missing PIPE_CAP_DOUBLES

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Apr 11 17:58:32 UTC 2017


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 <samuel.pitoiset at gmail.com>
---
 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 8e0117c989..7cd61b3759 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.12.2



More information about the mesa-dev mailing list