gallium/aux: add PIPE_CAP_MAX_VARYINGS to u_screen
authorAlok Hota <alok.hota@intel.com>
Mon, 11 Feb 2019 18:59:05 +0000 (12:59 -0600)
committerAlok Hota <alok.hota@intel.com>
Wed, 13 Feb 2019 21:08:14 +0000 (15:08 -0600)
Allows drivers using `u_pipe_screen_get_param_defaults` to use a
fallback value for the new pipe cap. Default value of 8 based on GL 2.1
MAX_VARYING_FLOATS

Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/util/u_screen.c

index e9603916458dee6a14c310c16d7bc509f7467d08..50964f3b3ef8486e2878edd49a60133949a068dc 100644 (file)
@@ -338,6 +338,9 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
    case PIPE_CAP_DEST_SURFACE_SRGB_CONTROL:
       return 1;
 
+   case PIPE_CAP_MAX_VARYINGS:
+      return 8;
+
    default:
       unreachable("bad PIPE_CAP_*");
    }