glx: delete checks for interop support

the inner functions now 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:16:41 -04:00
committed by Marge Bot
parent b421abafbb
commit 51a2755f4f
-30
View File
@@ -37,11 +37,6 @@ _X_HIDDEN int
dri2_interop_query_device_info(struct glx_context *ctx,
struct mesa_glinterop_device_info *out)
{
struct dri2_screen *psc = (struct dri2_screen*)ctx->psc;
if (!psc->interop)
return MESA_GLINTEROP_UNSUPPORTED;
return dri_interop_query_device_info(ctx->driContext, out);
}
@@ -50,11 +45,6 @@ dri2_interop_export_object(struct glx_context *ctx,
struct mesa_glinterop_export_in *in,
struct mesa_glinterop_export_out *out)
{
struct dri2_screen *psc = (struct dri2_screen*)ctx->psc;
if (!psc->interop)
return MESA_GLINTEROP_UNSUPPORTED;
return dri_interop_export_object(ctx->driContext, in, out);
}
@@ -63,11 +53,6 @@ dri2_interop_flush_objects(struct glx_context *ctx,
unsigned count, struct mesa_glinterop_export_in *objects,
struct mesa_glinterop_flush_out *out)
{
struct dri2_screen *psc = (struct dri2_screen*)ctx->psc;
if (!psc->interop || psc->interop->base.version < 2)
return MESA_GLINTEROP_UNSUPPORTED;
return dri_interop_flush_objects(ctx->driContext, count, objects, out);
}
@@ -77,11 +62,6 @@ _X_HIDDEN int
dri3_interop_query_device_info(struct glx_context *ctx,
struct mesa_glinterop_device_info *out)
{
struct dri3_screen *psc = (struct dri3_screen*)ctx->psc;
if (!psc->interop)
return MESA_GLINTEROP_UNSUPPORTED;
return dri_interop_query_device_info(ctx->driContext, out);
}
@@ -90,11 +70,6 @@ dri3_interop_export_object(struct glx_context *ctx,
struct mesa_glinterop_export_in *in,
struct mesa_glinterop_export_out *out)
{
struct dri3_screen *psc = (struct dri3_screen*)ctx->psc;
if (!psc->interop)
return MESA_GLINTEROP_UNSUPPORTED;
return dri_interop_export_object(ctx->driContext, in, out);
}
@@ -103,11 +78,6 @@ dri3_interop_flush_objects(struct glx_context *ctx,
unsigned count, struct mesa_glinterop_export_in *objects,
struct mesa_glinterop_flush_out *out)
{
struct dri3_screen *psc = (struct dri3_screen*)ctx->psc;
if (!psc->interop || psc->interop->base.version < 2)
return MESA_GLINTEROP_UNSUPPORTED;
return dri_interop_flush_objects(ctx->driContext, count, objects, out);
}