summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2022-07-28 14:04:27 -0700
committerMarge Bot <emma+marge@anholt.net>2022-08-05 00:57:38 +0000
commit0c6d4cf9a2bb01e08869e6b503e31fe86b461c87 (patch)
treef37ccec98c90765b285da447ced9274c472ca5e5 /include
parent126e83d9704227520dd7de21111c7f2b30e71efe (diff)
gbm: Add USE_FRONT_RENDERING flag
Provide a use flag to let the driver know that the allocated buffer will be used for frontbuffer rendering. For example, bandwidth compressed formats should usually be avoided for frontbuffer rendering to avoid the visual corruption that results from this display racing with the GPU writing header data vs. pixel data. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17799>
Diffstat (limited to 'include')
-rw-r--r--include/GL/internal/dri_interface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 74c807c5faf..09ed565fd8b 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -1224,6 +1224,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_USE_FRONT_RENDERING 0x0080
#define __DRI_IMAGE_TRANSFER_READ 0x1