diff --git a/src/glx/dri_common_interop.c b/src/glx/dri_common_interop.c index 685fded038f..68803577828 100644 --- a/src/glx/dri_common_interop.c +++ b/src/glx/dri_common_interop.c @@ -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); }