summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_texture.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.c')
-rw-r--r--src/gallium/drivers/r300/r300_texture.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index f9ad14f12be..7f57656a78e 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -121,7 +121,6 @@ static struct pipe_surface* r300_get_tex_surface(struct pipe_screen* screen,
if (surface) {
surface->refcount = 1;
pipe_texture_reference(&surface->texture, texture);
- pipe_buffer_reference(screen, &surface->buffer, tex->buffer);
surface->format = texture->format;
surface->width = texture->width[level];
surface->height = texture->height[level];
@@ -148,7 +147,6 @@ static void r300_tex_surface_release(struct pipe_screen* screen,
if (s->refcount <= 0) {
pipe_texture_reference(&s->texture, NULL);
- pipe_buffer_reference(screen, &s->buffer, NULL);
FREE(s);
}
@@ -180,8 +178,6 @@ static struct pipe_texture*
/* XXX tex->stride = *stride; */
- pipe_buffer_reference(screen, &tex->buffer, buffer);
-
return (struct pipe_texture*)tex;
}