diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mesa/src/gallium/auxiliary/util/u_screen.c | 3 | ||||
-rw-r--r-- | lib/mesa/src/gallium/auxiliary/util/u_screen.h | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/util/u_screen.c b/lib/mesa/src/gallium/auxiliary/util/u_screen.c index 464d9dddc..66c17f170 100644 --- a/lib/mesa/src/gallium/auxiliary/util/u_screen.c +++ b/lib/mesa/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_*"); } diff --git a/lib/mesa/src/gallium/auxiliary/util/u_screen.h b/lib/mesa/src/gallium/auxiliary/util/u_screen.h index 65afb277e..3952a11f2 100644 --- a/lib/mesa/src/gallium/auxiliary/util/u_screen.h +++ b/lib/mesa/src/gallium/auxiliary/util/u_screen.h @@ -24,6 +24,14 @@ struct pipe_screen; enum pipe_cap; +#ifdef __cplusplus +extern "C" { +#endif + int u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, enum pipe_cap param); + +#ifdef __cplusplus +}; +#endif |