mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
glx: inline DRI_TEX_BUFFER
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30400>
This commit is contained in:
parent
9fdfebce06
commit
321d576f0c
3 changed files with 12 additions and 15 deletions
|
|
@ -813,15 +813,12 @@ dri2_bind_tex_image(__GLXDRIdrawable *base,
|
|||
{
|
||||
struct glx_context *gc = __glXGetCurrentContext();
|
||||
struct dri2_drawable *pdraw = (struct dri2_drawable *) base;
|
||||
struct dri2_screen *psc;
|
||||
|
||||
if (pdraw != NULL) {
|
||||
psc = (struct dri2_screen *) base->psc;
|
||||
|
||||
psc->texBuffer->setTexBuffer2(gc->driContext,
|
||||
pdraw->base.textureTarget,
|
||||
pdraw->base.textureFormat,
|
||||
pdraw->driDrawable);
|
||||
dri_set_tex_buffer2(gc->driContext,
|
||||
pdraw->base.textureTarget,
|
||||
pdraw->base.textureFormat,
|
||||
pdraw->driDrawable);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -646,10 +646,10 @@ dri3_bind_tex_image(__GLXDRIdrawable *base,
|
|||
|
||||
XSync(gc->currentDpy, false);
|
||||
|
||||
psc->texBuffer->setTexBuffer2(gc->driContext,
|
||||
pdraw->base.textureTarget,
|
||||
pdraw->base.textureFormat,
|
||||
pdraw->loader_drawable.dri_drawable);
|
||||
dri_set_tex_buffer2(gc->driContext,
|
||||
pdraw->base.textureTarget,
|
||||
pdraw->base.textureFormat,
|
||||
pdraw->loader_drawable.dri_drawable);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -488,10 +488,10 @@ drisw_bind_tex_image(__GLXDRIdrawable *base,
|
|||
if (!psc->texBuffer)
|
||||
return;
|
||||
|
||||
psc->texBuffer->setTexBuffer2(gc->driContext,
|
||||
pdraw->base.textureTarget,
|
||||
pdraw->base.textureFormat,
|
||||
pdraw->driDrawable);
|
||||
dri_set_tex_buffer2(gc->driContext,
|
||||
pdraw->base.textureTarget,
|
||||
pdraw->base.textureFormat,
|
||||
pdraw->driDrawable);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue