uint64_t modifier = DRM_FORMAT_MOD_INVALID;
bool ok;
- /* Callers of this may specify a modifier, or a dri usage, but not both. The
- * newer modifier interface deprecates the older usage flags.
- */
- assert(!(use && count));
-
if (use & __DRI_IMAGE_USE_CURSOR) {
if (width != 64 || height != 64)
return NULL;
modifiers, count, loaderPrivate);
}
+static __DRIimage *
+brw_create_image_with_modifiers2(__DRIscreen *dri_screen,
+ int width, int height, int format,
+ const uint64_t *modifiers,
+ const unsigned count, unsigned int use,
+ void *loaderPrivate)
+{
+ return brw_create_image_common(dri_screen, width, height, format, use,
+ modifiers, count, loaderPrivate);
+}
+
static GLboolean
brw_query_image(__DRIimage *image, int attrib, int *value)
{
}
static const __DRIimageExtension brwImageExtension = {
- .base = { __DRI_IMAGE, 16 },
+ .base = { __DRI_IMAGE, 19 },
.createImageFromName = brw_create_image_from_name,
.createImageFromRenderbuffer = brw_create_image_from_renderbuffer,
.queryDmaBufFormats = brw_query_dma_buf_formats,
.queryDmaBufModifiers = brw_query_dma_buf_modifiers,
.queryDmaBufFormatModifierAttribs = brw_query_format_modifier_attribs,
+ .createImageWithModifiers2 = brw_create_image_with_modifiers2,
};
static int