mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
DRI: Add TexOffset driver hooks.
To be used by AIGLX for GLX_EXT_texture_from_pixmap without several data copies. The texOffsetStart hook must make sure that the given pixmap is accessible by the GPU for texturing and return an 'offset' that can be used by the 3D driver for that purpose. The texOffsetFinish hook is called when the pixmap is no longer being used for texturing.
This commit is contained in:
parent
ff2eae86b6
commit
5006d08d7f
2 changed files with 24 additions and 2 deletions
|
|
@ -2210,6 +2210,19 @@ DRIGetContext(ScreenPtr pScreen)
|
|||
return pDRIPriv->myContext;
|
||||
}
|
||||
|
||||
void
|
||||
DRIGetTexOffsetFuncs(ScreenPtr pScreen,
|
||||
DRITexOffsetStartProcPtr *texOffsetStartFunc,
|
||||
DRITexOffsetFinishProcPtr *texOffsetFinishFunc)
|
||||
{
|
||||
DRIScreenPrivPtr pDRIPriv = DRI_SCREEN_PRIV(pScreen);
|
||||
|
||||
if (!pDRIPriv) return;
|
||||
|
||||
*texOffsetStartFunc = pDRIPriv->pDriverInfo->texOffsetStart;
|
||||
*texOffsetFinishFunc = pDRIPriv->pDriverInfo->texOffsetFinish;
|
||||
}
|
||||
|
||||
/* This lets get at the unwrapped functions so that they can correctly
|
||||
* call the lowerlevel functions, and choose whether they will be
|
||||
* called at every level of recursion (eg in validatetree).
|
||||
|
|
|
|||
Loading…
Reference in a new issue