egl: drop unused _EGLDriver from MesaGLInteropEGL{QueryDeviceInfo,ExportObject}()
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:

committed by
Marge Bot

parent
5eb5847d48
commit
37be01bff7
@@ -2764,8 +2764,7 @@ eglGetProcAddress(const char *procname)
|
||||
|
||||
static int
|
||||
_eglLockDisplayInterop(EGLDisplay dpy, EGLContext context,
|
||||
_EGLDisplay **disp, const _EGLDriver **drv,
|
||||
_EGLContext **ctx)
|
||||
_EGLDisplay **disp, _EGLContext **ctx)
|
||||
{
|
||||
|
||||
*disp = _eglLockDisplay(dpy);
|
||||
@@ -2775,8 +2774,6 @@ _eglLockDisplayInterop(EGLDisplay dpy, EGLContext context,
|
||||
return MESA_GLINTEROP_INVALID_DISPLAY;
|
||||
}
|
||||
|
||||
*drv = (*disp)->Driver;
|
||||
|
||||
*ctx = _eglLookupContext(context, *disp);
|
||||
if (!*ctx ||
|
||||
((*ctx)->ClientAPI != EGL_OPENGL_API &&
|
||||
@@ -2793,11 +2790,10 @@ MesaGLInteropEGLQueryDeviceInfo(EGLDisplay dpy, EGLContext context,
|
||||
struct mesa_glinterop_device_info *out)
|
||||
{
|
||||
_EGLDisplay *disp;
|
||||
const _EGLDriver *drv;
|
||||
_EGLContext *ctx;
|
||||
int ret;
|
||||
|
||||
ret = _eglLockDisplayInterop(dpy, context, &disp, &drv, &ctx);
|
||||
ret = _eglLockDisplayInterop(dpy, context, &disp, &ctx);
|
||||
if (ret != MESA_GLINTEROP_SUCCESS)
|
||||
return ret;
|
||||
|
||||
@@ -2816,11 +2812,10 @@ MesaGLInteropEGLExportObject(EGLDisplay dpy, EGLContext context,
|
||||
struct mesa_glinterop_export_out *out)
|
||||
{
|
||||
_EGLDisplay *disp;
|
||||
const _EGLDriver *drv;
|
||||
_EGLContext *ctx;
|
||||
int ret;
|
||||
|
||||
ret = _eglLockDisplayInterop(dpy, context, &disp, &drv, &ctx);
|
||||
ret = _eglLockDisplayInterop(dpy, context, &disp, &ctx);
|
||||
if (ret != MESA_GLINTEROP_SUCCESS)
|
||||
return ret;
|
||||
|
||||
|
Reference in New Issue
Block a user