nouveau: Add framebuffer modifier support

Graphics / Mesa 3D Graphics Library / Mesa - Thierry Reding [nvidia.com] - 9 March 2018 10:48 EST

This adds support for framebuffer modifiers to Nouveau. This will be used by the Tegra driver to share metadata about the format of buffers (such as the tiling mode or compression).

Changes in v2:- remove unused parameters to nouveau_buffer_create()- move format modifier query code to nvc0 backend- restrict format modifiers to 2D textures- implement ->query_dmabuf_modifiers()

Changes in v4:- add UAPI include path on meson builds

Changes in v5:- remove unnecessary includes

2052dbdae3 nouveau: Add framebuffer modifier support
src/gallium/drivers/nouveau/Android.mk | 3 +
src/gallium/drivers/nouveau/Makefile.am | 1 +
src/gallium/drivers/nouveau/meson.build | 4 +-
src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c | 81 +++++++++++++++++++++++-
src/gallium/drivers/nouveau/nvc0/nvc0_resource.c | 59 ++++++++++++++++-
src/gallium/drivers/nouveau/nvc0/nvc0_resource.h | 3 +-
6 files changed, 146 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share