mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 14:10:09 +01:00
st/xorg: Rename dri2 functions
This commit is contained in:
parent
26f9eeddf4
commit
6713a83bb8
1 changed files with 17 additions and 17 deletions
|
|
@ -55,7 +55,7 @@ typedef struct {
|
|||
} *BufferPrivatePtr;
|
||||
|
||||
static Bool
|
||||
driDoCreateBuffer(DrawablePtr pDraw, DRI2BufferPtr buffer, unsigned int format)
|
||||
dri2_do_create_buffer(DrawablePtr pDraw, DRI2BufferPtr buffer, unsigned int format)
|
||||
{
|
||||
struct pipe_texture *tex = NULL;
|
||||
ScreenPtr pScreen = pDraw->pScreen;
|
||||
|
|
@ -157,7 +157,7 @@ driDoCreateBuffer(DrawablePtr pDraw, DRI2BufferPtr buffer, unsigned int format)
|
|||
}
|
||||
|
||||
static void
|
||||
driDoDestroyBuffer(DrawablePtr pDraw, DRI2BufferPtr buffer)
|
||||
dri2_do_destroy_buffer(DrawablePtr pDraw, DRI2BufferPtr buffer)
|
||||
{
|
||||
ScreenPtr pScreen = pDraw->pScreen;
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
|
|
@ -174,7 +174,7 @@ driDoDestroyBuffer(DrawablePtr pDraw, DRI2BufferPtr buffer)
|
|||
#if DRI2INFOREC_VERSION >= 2
|
||||
|
||||
static DRI2Buffer2Ptr
|
||||
driCreateBuffer(DrawablePtr pDraw, unsigned int attachment, unsigned int format)
|
||||
dri2_create_buffer(DrawablePtr pDraw, unsigned int attachment, unsigned int format)
|
||||
{
|
||||
DRI2Buffer2Ptr buffer;
|
||||
BufferPrivatePtr private;
|
||||
|
|
@ -192,7 +192,7 @@ driCreateBuffer(DrawablePtr pDraw, unsigned int attachment, unsigned int format)
|
|||
buffer->driverPrivate = private;
|
||||
|
||||
/* So far it is safe to downcast a DRI2Buffer2Ptr to DRI2BufferPtr */
|
||||
if (driDoCreateBuffer(pDraw, (DRI2BufferPtr)buffer, format))
|
||||
if (dri2_do_create_buffer(pDraw, (DRI2BufferPtr)buffer, format))
|
||||
return buffer;
|
||||
|
||||
xfree(private);
|
||||
|
|
@ -202,10 +202,10 @@ fail:
|
|||
}
|
||||
|
||||
static void
|
||||
driDestroyBuffer(DrawablePtr pDraw, DRI2Buffer2Ptr buffer)
|
||||
dri2_destroy_buffer(DrawablePtr pDraw, DRI2Buffer2Ptr buffer)
|
||||
{
|
||||
/* So far it is safe to downcast a DRI2Buffer2Ptr to DRI2BufferPtr */
|
||||
driDoDestroyBuffer(pDraw, (DRI2BufferPtr)buffer);
|
||||
dri2_do_destroy_buffer(pDraw, (DRI2BufferPtr)buffer);
|
||||
|
||||
xfree(buffer->driverPrivate);
|
||||
xfree(buffer);
|
||||
|
|
@ -214,7 +214,7 @@ driDestroyBuffer(DrawablePtr pDraw, DRI2Buffer2Ptr buffer)
|
|||
#else /* DRI2INFOREC_VERSION < 2 */
|
||||
|
||||
static DRI2BufferPtr
|
||||
driCreateBuffers(DrawablePtr pDraw, unsigned int *attachments, int count)
|
||||
dri2_create_buffers(DrawablePtr pDraw, unsigned int *attachments, int count)
|
||||
{
|
||||
BufferPrivatePtr privates;
|
||||
DRI2BufferPtr buffers;
|
||||
|
|
@ -232,7 +232,7 @@ driCreateBuffers(DrawablePtr pDraw, unsigned int *attachments, int count)
|
|||
buffers[i].attachment = attachments[i];
|
||||
buffers[i].driverPrivate = &privates[i];
|
||||
|
||||
if (!driDoCreateBuffer(pDraw, &buffers[i], 0))
|
||||
if (!dri2_do_create_buffer(pDraw, &buffers[i], 0))
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
@ -247,12 +247,12 @@ fail_buffers:
|
|||
}
|
||||
|
||||
static void
|
||||
driDestroyBuffers(DrawablePtr pDraw, DRI2BufferPtr buffers, int count)
|
||||
dri2_destroy_buffers(DrawablePtr pDraw, DRI2BufferPtr buffers, int count)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
driDoDestroyBuffer(pDraw, &buffers[i]);
|
||||
dri2_do_destroy_buffer(pDraw, &buffers[i]);
|
||||
}
|
||||
|
||||
if (buffers) {
|
||||
|
|
@ -264,8 +264,8 @@ driDestroyBuffers(DrawablePtr pDraw, DRI2BufferPtr buffers, int count)
|
|||
#endif /* DRI2INFOREC_VERSION >= 2 */
|
||||
|
||||
static void
|
||||
driCopyRegion(DrawablePtr pDraw, RegionPtr pRegion,
|
||||
DRI2BufferPtr pDestBuffer, DRI2BufferPtr pSrcBuffer)
|
||||
dri2_copy_region(DrawablePtr pDraw, RegionPtr pRegion,
|
||||
DRI2BufferPtr pDestBuffer, DRI2BufferPtr pSrcBuffer)
|
||||
{
|
||||
ScreenPtr pScreen = pDraw->pScreen;
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
|
|
@ -373,13 +373,13 @@ xorg_dri2_init(ScreenPtr pScreen)
|
|||
dri2info.deviceName = "/dev/dri/card0"; /* FIXME */
|
||||
|
||||
#if DRI2INFOREC_VERSION >= 2
|
||||
dri2info.CreateBuffer = driCreateBuffer;
|
||||
dri2info.DestroyBuffer = driDestroyBuffer;
|
||||
dri2info.CreateBuffer = dri2_create_buffer;
|
||||
dri2info.DestroyBuffer = dri2_destroy_buffer;
|
||||
#else
|
||||
dri2info.CreateBuffers = driCreateBuffers;
|
||||
dri2info.DestroyBuffers = driDestroyBuffers;
|
||||
dri2info.CreateBuffers = dri2_create_buffers;
|
||||
dri2info.DestroyBuffers = dri2_destroy_buffers;
|
||||
#endif
|
||||
dri2info.CopyRegion = driCopyRegion;
|
||||
dri2info.CopyRegion = dri2_copy_region;
|
||||
dri2info.Wait = NULL;
|
||||
|
||||
ms->d_depth_bits_last =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue