gallium/dri: add missing PIPE_BIND_DRI_PRIME handling
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 19 Jan 2022 10:32:22 +0000 (11:32 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 8 Feb 2022 00:13:07 +0000 (00:13 +0000)
commit42c149e36b3e7f365f2aba45dd8320df550b4e5d
tree1e8aa07a10fd3a8ce21c016fe82c7381cf311f51
parent3926be368e837348c01d58979b878759a65e7ff2
gallium/dri: add missing PIPE_BIND_DRI_PRIME handling

e9c3dbd0461 added PIPE_BIND_DRI_PRIME but it was only set when
importing a prime buffer.

This commit adds handling of this flag in the other codepath = the
one where the prime buffer is allocated by the render GPU.

With this change PIPE_BIND_DRI_PRIME is still only set for the
render GPU - the display GPU will never see this flag; a future
commit will rename it.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14615>
include/GL/internal/dri_interface.h
src/gallium/frontends/dri/dri2.c
src/loader/loader_dri3_helper.c