From 9e8a6f801d360f85cc7bb53b85f15129b07b26da Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Wed, 19 May 2010 18:46:45 +0200 Subject: r600g: various fixes - enabled flushing a buffer more than once - enabled the blitter for r600_clear - added some more colors to r600_is_format_supported (copied from r600_conv_pipe_format) - r600_set_framebuffer_state now sets rctx->fb_state - more states are saved before a blit (had to add some accounting for the viewport and the vertex elements state) - fixed a few errors with reference counting --- src/gallium/drivers/r600/r600_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/r600/r600_buffer.c') diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c index fd94c605bb1..272f4dd6730 100644 --- a/src/gallium/drivers/r600/r600_buffer.c +++ b/src/gallium/drivers/r600/r600_buffer.c @@ -73,8 +73,8 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen, if (rbuffer == NULL) return NULL; - pipe_reference_init(&rbuffer->b.b.reference, 1); rbuffer->b.b = *templ; + pipe_reference_init(&rbuffer->b.b.reference, 1); rbuffer->b.b.screen = screen; rbuffer->b.vtbl = &r600_buffer_vtbl; -- cgit v1.2.3