diff options
author | Mathias Fröhlich <[email protected]> | 2018-09-06 16:13:42 +0200 |
---|---|---|
committer | Mathias Fröhlich <[email protected]> | 2018-09-10 07:59:31 +0200 |
commit | 4569bc6ad084eac392411117ad1fd3bd0706af75 (patch) | |
tree | 8aba38dee24807d2d2a00a44d4512103403130e1 /src/gallium/auxiliary | |
parent | 240af6149477beb06fdcfc4b0295921448c0fe47 (diff) |
gallium: New cap PIPE_CAP_MAX_VERTEX_ELEMENT_SRC_OFFSET.
Introduce a new capability for the maximum value of
pipe_vertex_element::src_offset. Initially just every driver
backend returns the value previously set from _mesa_init_constants.
So this shall end up in no functional change.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Signed-off-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-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 07c63aa3700..73dbbee94a9 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -323,6 +323,9 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, case PIPE_CAP_MAX_TEXTURE_UPLOAD_MEMORY_BUDGET: return 0; + case PIPE_CAP_MAX_VERTEX_ELEMENT_SRC_OFFSET: + return 2047; + default: unreachable("bad PIPE_CAP_*"); } |