mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
egl: drop unused _EGLDriver from QueryDmaBuf{Formats,Modifiers}EXT()
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6241>
This commit is contained in:
parent
a71dcd2dc2
commit
1bbb0c7689
3 changed files with 11 additions and 14 deletions
|
|
@ -2741,8 +2741,8 @@ dri2_check_dma_buf_format(const _EGLImageAttribs *attrs)
|
|||
}
|
||||
|
||||
static EGLBoolean
|
||||
dri2_query_dma_buf_formats(const _EGLDriver *drv, _EGLDisplay *disp,
|
||||
EGLint max, EGLint *formats, EGLint *count)
|
||||
dri2_query_dma_buf_formats(_EGLDisplay *disp, EGLint max,
|
||||
EGLint *formats, EGLint *count)
|
||||
{
|
||||
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
|
||||
if (max < 0 || (max > 0 && formats == NULL))
|
||||
|
|
@ -2772,7 +2772,7 @@ dri2_query_dma_buf_formats(const _EGLDriver *drv, _EGLDisplay *disp,
|
|||
}
|
||||
|
||||
static EGLBoolean
|
||||
dri2_query_dma_buf_modifiers(const _EGLDriver *drv, _EGLDisplay *disp, EGLint format,
|
||||
dri2_query_dma_buf_modifiers(_EGLDisplay *disp, EGLint format,
|
||||
EGLint max, EGLuint64KHR *modifiers,
|
||||
EGLBoolean *external_only, EGLint *count)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2571,8 +2571,7 @@ eglQueryDmaBufFormatsEXT(EGLDisplay dpy, EGLint max_formats,
|
|||
|
||||
_EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv);
|
||||
|
||||
ret = drv->QueryDmaBufFormatsEXT(drv, disp, max_formats, formats,
|
||||
num_formats);
|
||||
ret = drv->QueryDmaBufFormatsEXT(disp, max_formats, formats, num_formats);
|
||||
|
||||
RETURN_EGL_EVAL(disp, ret);
|
||||
}
|
||||
|
|
@ -2590,9 +2589,8 @@ eglQueryDmaBufModifiersEXT(EGLDisplay dpy, EGLint format, EGLint max_modifiers,
|
|||
|
||||
_EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv);
|
||||
|
||||
ret = drv->QueryDmaBufModifiersEXT(drv, disp, format, max_modifiers,
|
||||
modifiers, external_only,
|
||||
num_modifiers);
|
||||
ret = drv->QueryDmaBufModifiersEXT(disp, format, max_modifiers, modifiers,
|
||||
external_only, num_modifiers);
|
||||
|
||||
RETURN_EGL_EVAL(disp, ret);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -182,14 +182,13 @@ struct _egl_driver
|
|||
struct mesa_glinterop_export_in *in,
|
||||
struct mesa_glinterop_export_out *out);
|
||||
|
||||
EGLBoolean (*QueryDmaBufFormatsEXT)(const _EGLDriver *drv, _EGLDisplay *disp,
|
||||
EGLBoolean (*QueryDmaBufFormatsEXT)(_EGLDisplay *disp,
|
||||
EGLint max_formats, EGLint *formats,
|
||||
EGLint *num_formats);
|
||||
EGLBoolean (*QueryDmaBufModifiersEXT) (const _EGLDriver *drv, _EGLDisplay *disp,
|
||||
EGLint format, EGLint max_modifiers,
|
||||
EGLuint64KHR *modifiers,
|
||||
EGLBoolean *external_only,
|
||||
EGLint *num_modifiers);
|
||||
EGLBoolean (*QueryDmaBufModifiersEXT)(_EGLDisplay *disp, EGLint format,
|
||||
EGLint max_modifiers, EGLuint64KHR *modifiers,
|
||||
EGLBoolean *external_only,
|
||||
EGLint *num_modifiers);
|
||||
|
||||
void (*SetBlobCacheFuncsANDROID) (const _EGLDriver *drv, _EGLDisplay *disp,
|
||||
EGLSetBlobFuncANDROID set,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue