glx: delete more DRI_INTEROP checks

inner functions should return support correctly

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30450>
This commit is contained in:
Mike Blumenkrantz
2024-07-25 13:18:30 -04:00
committed by Marge Bot
parent 51a2755f4f
commit 634dea8f70
-15
View File
@@ -2415,11 +2415,6 @@ MesaGLInteropGLXQueryDeviceInfo(Display *dpy, GLXContext context,
return MESA_GLINTEROP_INVALID_CONTEXT;
}
if (!gc->vtable->interop_query_device_info) {
__glXUnlock();
return MESA_GLINTEROP_UNSUPPORTED;
}
ret = gc->vtable->interop_query_device_info(gc, out);
__glXUnlock();
return ret;
@@ -2440,11 +2435,6 @@ MesaGLInteropGLXExportObject(Display *dpy, GLXContext context,
return MESA_GLINTEROP_INVALID_CONTEXT;
}
if (!gc->vtable->interop_export_object) {
__glXUnlock();
return MESA_GLINTEROP_UNSUPPORTED;
}
ret = gc->vtable->interop_export_object(gc, in, out);
__glXUnlock();
return ret;
@@ -2466,11 +2456,6 @@ MesaGLInteropGLXFlushObjects(Display *dpy, GLXContext context,
return MESA_GLINTEROP_INVALID_CONTEXT;
}
if (!gc->vtable->interop_flush_objects) {
__glXUnlock();
return MESA_GLINTEROP_UNSUPPORTED;
}
ret = gc->vtable->interop_flush_objects(gc, count, resources, out);
__glXUnlock();
return ret;