diff options
author | Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> | 2022-01-19 11:32:22 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-02-08 00:13:07 +0000 |
commit | 42c149e36b3e7f365f2aba45dd8320df550b4e5d (patch) | |
tree | 1e8aa07a10fd3a8ce21c016fe82c7381cf311f51 /include | |
parent | 3926be368e837348c01d58979b878759a65e7ff2 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/GL/internal/dri_interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 443f6496b0f..42da745d669 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -1222,6 +1222,7 @@ struct __DRIdri2ExtensionRec { */ #define __DRI_IMAGE_USE_BACKBUFFER 0x0010 #define __DRI_IMAGE_USE_PROTECTED 0x0020 +#define __DRI_IMAGE_USE_PRIME_BUFFER 0x0040 #define __DRI_IMAGE_TRANSFER_READ 0x1 |