diff options
author | Alok Hota <[email protected]> | 2019-02-11 12:59:05 -0600 |
---|---|---|
committer | Alok Hota <[email protected]> | 2019-02-13 15:08:14 -0600 |
commit | 736241892fd80efb700f38321b917166750a63da (patch) | |
tree | 92c36e998a343ff0d49b1c0c6fb6ffe492ded7ad /src | |
parent | e8566d709854594f0649f7f115422e2806e548c9 (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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_screen.c | 3 |
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 e9603916458..50964f3b3ef 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -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_*"); } |