Mesa (staging/19.0): gallium/aux: add PIPE_CAP_MAX_VARYINGS to u_screen
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 4 21:49:26 UTC 2019
Module: Mesa
Branch: staging/19.0
Commit: 24a5b56d698b622e44fcde3a1d28d46b6af1fd9e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=24a5b56d698b622e44fcde3a1d28d46b6af1fd9e
Author: Alok Hota <alok.hota at intel.com>
Date: Mon Feb 11 12:59:05 2019 -0600
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 at anholt.net>
---
src/gallium/auxiliary/util/u_screen.c | 3 +++
1 file changed, 3 insertions(+)
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_*");
}
More information about the mesa-commit
mailing list