summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlok Hota <alok.hota@intel.com>2019-02-11 12:59:05 -0600
committerAlok Hota <alok.hota@intel.com>2019-06-04 13:42:22 -0500
commit24a5b56d698b622e44fcde3a1d28d46b6af1fd9e (patch)
treec5fb5fc31fe7a8e0197d432c71aa39098193d5f5
parentbf27318801cc26cf50380c656b7ba290bcab88b2 (diff)
gallium/aux: add PIPE_CAP_MAX_VARYINGS to u_screen
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>
-rw-r--r--src/gallium/auxiliary/util/u_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c
index 464d9dddc7f..66c17f17007 100644
--- a/src/gallium/auxiliary/util/u_screen.c
+++ b/src/gallium/auxiliary/util/u_screen.c
@@ -337,6 +337,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_*");
}