mesa: remove last of _mesa_unreference_framebuffer() calls
This commit is contained in:
@@ -480,7 +480,7 @@ fbCreateBuffer( __DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
fbDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
fbDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -394,7 +394,7 @@ ffbCreateBuffer(__DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
ffbDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
ffbDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -96,7 +96,7 @@ gammaCreateBuffer( __DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
gammaDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
gammaDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@@ -341,7 +341,7 @@ i810CreateBuffer( __DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
i810DestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
i810DestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct __DriverAPIRec driDriverAPI = {
|
const struct __DriverAPIRec driDriverAPI = {
|
||||||
|
@@ -394,7 +394,7 @@ intelCreateBuffer(__DRIscreenPrivate * driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
intelDestroyBuffer(__DRIdrawablePrivate * driDrawPriv)
|
intelDestroyBuffer(__DRIdrawablePrivate * driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -374,7 +374,7 @@ mach64CreateBuffer( __DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
mach64DestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
mach64DestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -816,7 +816,7 @@ mgaCreateBuffer( __DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
mgaDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
mgaDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@@ -353,7 +353,7 @@ r128CreateBuffer( __DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
r128DestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
r128DestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1117,7 +1117,7 @@ radeonCreateBuffer( __DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
radeonDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
radeonDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if RADEON_COMMON && defined(RADEON_COMMON_FOR_R300)
|
#if RADEON_COMMON && defined(RADEON_COMMON_FOR_R300)
|
||||||
|
@@ -131,7 +131,7 @@ s3vCreateBuffer( __DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
s3vDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
s3vDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@@ -678,7 +678,7 @@ savageCreateBuffer( __DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
savageDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
savageDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
@@ -221,7 +221,7 @@ sisCreateBuffer( __DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
sisDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
sisDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sisCopyBuffer( __DRIdrawablePrivate *dPriv )
|
static void sisCopyBuffer( __DRIdrawablePrivate *dPriv )
|
||||||
|
@@ -476,7 +476,7 @@ driDestroyDrawable(__DRIdrawable *buf)
|
|||||||
_mesa_free(buf->row);
|
_mesa_free(buf->row);
|
||||||
|
|
||||||
fb->DeletePending = GL_TRUE;
|
fb->DeletePending = GL_TRUE;
|
||||||
_mesa_unreference_framebuffer(&fb);
|
_mesa_reference_framebuffer(&fb, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -232,7 +232,7 @@ tdfxCreateBuffer( __DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
tdfxDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
tdfxDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -281,7 +281,7 @@ tridentCreateBuffer( __DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
tridentDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
tridentDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@@ -316,7 +316,7 @@ viaCreateBuffer(__DRIscreenPrivate *driScrnPriv,
|
|||||||
static void
|
static void
|
||||||
viaDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
viaDestroyBuffer(__DRIdrawablePrivate *driDrawPriv)
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)));
|
_mesa_reference_framebuffer((GLframebuffer **)(&(driDrawPriv->driverPrivate)), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const __DRIconfig **
|
static const __DRIconfig **
|
||||||
|
@@ -940,7 +940,7 @@ EXPORTS
|
|||||||
_mesa_store_texsubimage3d
|
_mesa_store_texsubimage3d
|
||||||
_mesa_strcmp
|
_mesa_strcmp
|
||||||
_mesa_test_proxy_teximage
|
_mesa_test_proxy_teximage
|
||||||
_mesa_unreference_framebuffer
|
_mesa_reference_framebuffer
|
||||||
_mesa_update_framebuffer_visual
|
_mesa_update_framebuffer_visual
|
||||||
_mesa_use_program
|
_mesa_use_program
|
||||||
_mesa_Viewport
|
_mesa_Viewport
|
||||||
|
@@ -62,7 +62,7 @@ wmesa_free_framebuffer(HDC hdc)
|
|||||||
else
|
else
|
||||||
prev->next = pwfb->next;
|
prev->next = pwfb->next;
|
||||||
fb = &pwfb->Base;
|
fb = &pwfb->Base;
|
||||||
_mesa_unreference_framebuffer(&fb);
|
_mesa_reference_framebuffer(&fb, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -251,22 +251,6 @@ _mesa_reference_framebuffer(struct gl_framebuffer **ptr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* XXX this function is deprecated.
|
|
||||||
* Undo/remove a reference to a framebuffer object.
|
|
||||||
* Decrement the framebuffer object's reference count and delete it when
|
|
||||||
* the refcount hits zero.
|
|
||||||
* Note: we pass the address of a pointer and set it to NULL.
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
_mesa_unreference_framebuffer(struct gl_framebuffer **fb)
|
|
||||||
{
|
|
||||||
_mesa_reference_framebuffer(fb, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resize the given framebuffer's renderbuffers to the new width and height.
|
* Resize the given framebuffer's renderbuffers to the new width and height.
|
||||||
* This should only be used for window-system framebuffers, not
|
* This should only be used for window-system framebuffers, not
|
||||||
|
@@ -46,9 +46,6 @@ extern void
|
|||||||
_mesa_reference_framebuffer(struct gl_framebuffer **ptr,
|
_mesa_reference_framebuffer(struct gl_framebuffer **ptr,
|
||||||
struct gl_framebuffer *fb);
|
struct gl_framebuffer *fb);
|
||||||
|
|
||||||
extern void
|
|
||||||
_mesa_unreference_framebuffer(struct gl_framebuffer **fb);
|
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
_mesa_resize_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb,
|
_mesa_resize_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb,
|
||||||
GLuint width, GLuint height);
|
GLuint width, GLuint height);
|
||||||
|
@@ -154,7 +154,7 @@ void st_resize_framebuffer( struct st_framebuffer *stfb,
|
|||||||
|
|
||||||
void st_unreference_framebuffer( struct st_framebuffer *stfb )
|
void st_unreference_framebuffer( struct st_framebuffer *stfb )
|
||||||
{
|
{
|
||||||
_mesa_unreference_framebuffer((struct gl_framebuffer **) &stfb);
|
_mesa_reference_framebuffer((struct gl_framebuffer **) &stfb, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user