gbm: Add USE_FRONT_RENDERING flag
authorRob Clark <robdclark@chromium.org>
Thu, 28 Jul 2022 21:04:27 +0000 (14:04 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 5 Aug 2022 00:57:38 +0000 (00:57 +0000)
commit0c6d4cf9a2bb01e08869e6b503e31fe86b461c87
treef37ccec98c90765b285da447ced9274c472ca5e5
parent126e83d9704227520dd7de21111c7f2b30e71efe
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>
include/GL/internal/dri_interface.h
src/gallium/frontends/dri/dri2.c
src/gallium/include/pipe/p_defines.h
src/gbm/backends/dri/gbm_dri.c
src/gbm/main/gbm.h