gallium: add PIPE_CAP_RESOURCE_FROM_USER_MEMORY_COMPUTE_ONLY
authorKarol Herbst <kherbst@redhat.com>
Tue, 5 May 2020 13:09:50 +0000 (15:09 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 14:04:59 +0000 (14:04 +0000)
commitdd2cc5bc44434cf21c0dfdf828d8ff1cc24cf0ff
treea7d5604dd88c1cc8ab7412d92345991654ec14fc
parentf67cd0bbd978a093c6802bef33099c5b83e496df
gallium: add PIPE_CAP_RESOURCE_FROM_USER_MEMORY_COMPUTE_ONLY

With the current UAPI we only support user pointers from the compute
engines, so we need a way to express that in gallium.

v2: fix typos
v3: add allows_user_pointers helper

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Pierre Moreau <dev@pmoreau.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4580>
docs/gallium/screen.rst
src/gallium/auxiliary/util/u_screen.c
src/gallium/frontends/clover/core/device.cpp
src/gallium/frontends/clover/core/device.hpp
src/gallium/frontends/clover/core/resource.cpp
src/gallium/include/pipe/p_defines.h