mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
glx: unify dri unbind context
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30619>
This commit is contained in:
parent
b62601a716
commit
346fae55e7
5 changed files with 11 additions and 21 deletions
|
|
@ -99,12 +99,6 @@ dri2_destroy_context(struct glx_context *context)
|
|||
free(context);
|
||||
}
|
||||
|
||||
static void
|
||||
dri2_unbind_context(struct glx_context *context)
|
||||
{
|
||||
driUnbindContext(context->driContext);
|
||||
}
|
||||
|
||||
static struct glx_context *
|
||||
dri2_create_context_attribs(struct glx_screen *base,
|
||||
struct glx_config *config_base,
|
||||
|
|
@ -785,7 +779,7 @@ dri2_bind_tex_image(__GLXDRIdrawable *base,
|
|||
static const struct glx_context_vtable dri2_context_vtable = {
|
||||
.destroy = dri2_destroy_context,
|
||||
.bind = dri_bind_context,
|
||||
.unbind = dri2_unbind_context,
|
||||
.unbind = dri_unbind_context,
|
||||
.wait_gl = dri2_wait_gl,
|
||||
.wait_x = dri2_wait_x,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -157,12 +157,6 @@ dri3_destroy_context(struct glx_context *context)
|
|||
free(context);
|
||||
}
|
||||
|
||||
static void
|
||||
dri3_unbind_context(struct glx_context *context)
|
||||
{
|
||||
driUnbindContext(context->driContext);
|
||||
}
|
||||
|
||||
static struct glx_context *
|
||||
dri3_create_context_attribs(struct glx_screen *base,
|
||||
struct glx_config *config_base,
|
||||
|
|
@ -622,7 +616,7 @@ dri3_bind_tex_image(__GLXDRIdrawable *base,
|
|||
static const struct glx_context_vtable dri3_context_vtable = {
|
||||
.destroy = dri3_destroy_context,
|
||||
.bind = dri_bind_context,
|
||||
.unbind = dri3_unbind_context,
|
||||
.unbind = dri_unbind_context,
|
||||
.wait_gl = dri3_wait_gl,
|
||||
.wait_x = dri3_wait_x,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -801,4 +801,10 @@ dri_bind_context(struct glx_context *context, GLXDrawable draw, GLXDrawable read
|
|||
return Success;
|
||||
}
|
||||
|
||||
void
|
||||
dri_unbind_context(struct glx_context *context)
|
||||
{
|
||||
driUnbindContext(context->driContext);
|
||||
}
|
||||
|
||||
#endif /* GLX_DIRECT_RENDERING */
|
||||
|
|
|
|||
|
|
@ -91,6 +91,8 @@ extern const __DRIuseInvalidateExtension dri2UseInvalidate;
|
|||
|
||||
Bool
|
||||
dri_bind_context(struct glx_context *context, GLXDrawable draw, GLXDrawable read);
|
||||
void
|
||||
dri_unbind_context(struct glx_context *context);
|
||||
#endif /* GLX_DIRECT_RENDERING */
|
||||
|
||||
#endif /* _DRI_COMMON_H */
|
||||
|
|
|
|||
|
|
@ -431,12 +431,6 @@ drisw_destroy_context(struct glx_context *context)
|
|||
free(context);
|
||||
}
|
||||
|
||||
static void
|
||||
drisw_unbind_context(struct glx_context *context)
|
||||
{
|
||||
driUnbindContext(context->driContext);
|
||||
}
|
||||
|
||||
static void
|
||||
drisw_wait_gl(struct glx_context *context)
|
||||
{
|
||||
|
|
@ -474,7 +468,7 @@ kopper_get_buffer_age(__GLXDRIdrawable *pdraw)
|
|||
static const struct glx_context_vtable drisw_context_vtable = {
|
||||
.destroy = drisw_destroy_context,
|
||||
.bind = dri_bind_context,
|
||||
.unbind = drisw_unbind_context,
|
||||
.unbind = dri_unbind_context,
|
||||
.wait_gl = drisw_wait_gl,
|
||||
.wait_x = drisw_wait_x,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue