diff options
author | Ian Romanick <[email protected]> | 2019-11-14 14:12:30 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-23 00:18:57 +0000 |
commit | 9db20748fd1af930920424a95321ee11b6eae16e (patch) | |
tree | b21b430d499bc24624f3cd5fb4f7ea4331f946ec /src/gallium/auxiliary/util/u_screen.c | |
parent | 4e9079d0c71e42e152a00678bbe2665882849a43 (diff) |
gallium: Add a cap bit for OpenCL-style extended integer functions
Iris will eventually enable this. Looking at the header files, it looks
like Midgard could also enable it. Basically, any GPU that fully
supports OpenCL can.
v2: Add default value to u_screen.c. Suggested by Caio.
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/767>
Diffstat (limited to 'src/gallium/auxiliary/util/u_screen.c')
-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 70eb4a27d74..5a7790b75de 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -404,6 +404,9 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, case PIPE_CAP_MAX_VERTEX_BUFFERS: return 16; + case PIPE_CAP_OPENCL_INTEGER_FUNCTIONS: + return 0; + default: unreachable("bad PIPE_CAP_*"); } |