nvfx: say no to stream output caps
authorLucas Stach <dev@lynxeye.de>
Tue, 10 Jan 2012 11:41:01 +0000 (12:41 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sun, 15 Jan 2012 06:37:03 +0000 (07:37 +0100)
nvfx doesn't support any kind of stream out, so silence the
unused cap warnings.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
src/gallium/drivers/nvfx/nvfx_screen.c

index b4a1b3ac0d9d894dfa0b07d4a738c9fb49a210ff..938d67bb331e6ba2ae43e5b3a033ac9fd971cf11 100644 (file)
@@ -88,8 +88,12 @@ nvfx_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
        case PIPE_CAP_MAX_TEXEL_OFFSET:
        case PIPE_CAP_CONDITIONAL_RENDER:
        case PIPE_CAP_TEXTURE_BARRIER:
-                return 0;
        case PIPE_CAP_MIXED_COLORBUFFER_FORMATS:
+       case PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS:
+       case PIPE_CAP_MAX_STREAM_OUTPUT_SEPARATE_COMPONENTS:
+       case PIPE_CAP_MAX_STREAM_OUTPUT_INTERLEAVED_COMPONENTS:
+       case PIPE_CAP_TGSI_CAN_COMPACT_VARYINGS:
+       case PIPE_CAP_TGSI_CAN_COMPACT_CONSTANTS:
                 return 0;
        default:
                NOUVEAU_ERR("Warning: unknown PIPE_CAP %d\n", param);