loader/dri: hook up createImageWithModifiers2
Call into the new modifiers with usage createImage variant when available to provide the DRI implementation with more context about the allocation. 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>
This commit is contained in:
@@ -57,6 +57,12 @@ __DRIimage *loader_dri_create_image(__DRIscreen *screen,
|
||||
if (!has_valid_modifier)
|
||||
return NULL;
|
||||
|
||||
if (image->base.version >= 19 && image->createImageWithModifiers2)
|
||||
return image->createImageWithModifiers2(screen, width, height,
|
||||
dri_format, modifiers,
|
||||
modifiers_count, dri_usage,
|
||||
loaderPrivate);
|
||||
else
|
||||
return image->createImageWithModifiers(screen, width, height,
|
||||
dri_format, modifiers,
|
||||
modifiers_count, loaderPrivate);
|
||||
|
Reference in New Issue
Block a user