diff options
author | Daniel Stone <daniels@collabora.com> | 2024-06-05 18:56:54 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-07-18 14:16:51 +0000 |
commit | 361f3622587e5bc452a62dbd671969b713273b79 (patch) | |
tree | 08515ef47b1921c1c3ab0d9a43e8926fa0f5f4e5 /src/gbm | |
parent | 4072809149a9a624d1d2cbff377a5c88b985abac (diff) |
dri: Unify createImage and createImageWithModifiers
There's no real reason for the two to exist separately. Nuke the old
createImage in favour of just having createImageWithModifiers.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30245>
Diffstat (limited to 'src/gbm')
-rw-r--r-- | src/gbm/backends/dri/gbm_dri.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index 6ed8ca6c319..2570aeab8a1 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/gbm_dri.c @@ -972,11 +972,6 @@ gbm_dri_bo_create(struct gbm_device *gbm, /* Gallium drivers requires shared in order to get the handle/stride */ dri_use |= __DRI_IMAGE_USE_SHARE; - if (modifiers && !dri->image->createImageWithModifiers) { - errno = ENOSYS; - goto failed; - } - /* If the driver supports fixed-rate compression, filter the acceptable * modifiers by the compression rate. */ if (modifiers && dri->image->queryCompressionModifiers) { @@ -1154,14 +1149,8 @@ gbm_dri_surface_create(struct gbm_device *gbm, uint32_t format, uint32_t flags, const uint64_t *modifiers, const unsigned count) { - struct gbm_dri_device *dri = gbm_dri_device(gbm); struct gbm_dri_surface *surf; - if (modifiers && !dri->image->createImageWithModifiers) { - errno = ENOSYS; - return NULL; - } - if (count) assert(modifiers); |