dri: add createImageWithModifiers2 interface
authorSimon Ser <contact@emersion.fr>
Mon, 14 Dec 2020 17:32:47 +0000 (18:32 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 19 May 2021 16:54:19 +0000 (16:54 +0000)
commitafd8b2f498a417de6ecdbd13045d97c9ecf4391b
treedd650fdca9e3f5e79a624dc5d224524c50e1601d
parent8fd5b16efc60ad666b05ec745109d0a482b6157b
dri: add createImageWithModifiers2 interface

With the addition of createImageWithModifiers usage flags were
dropped, as it was believed at the time that modifers will be a
full replacement for the usage flags. This has turned out to be
untrue, as modifiers are not able to describe buffer placement.

Add a new version of the interface, that allows to specifiy
use flags in addition to the modifier.

Signed-off-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106>
include/GL/internal/dri_interface.h