r600g: fixup assertion
authorMarek Olšák <maraeo@gmail.com>
Tue, 8 Feb 2011 17:18:13 +0000 (18:18 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 8 Feb 2011 17:18:13 +0000 (18:18 +0100)
src/gallium/drivers/r600/r600_buffer.c

index 183e34720a9a62ea20380ba40ade1d66dd2bfdb7..0c5d7133c7ac4677a5ece370c3dad60ac7c318a8 100644 (file)
@@ -144,7 +144,7 @@ static void r600_buffer_transfer_inline_write(struct pipe_context *pipe,
        struct r600_resource_buffer *rbuffer = r600_buffer(resource);
        uint8_t *map = NULL;
 
-       assert(rbuffer->b.user_ptr == NULL);
+       assert(rbuffer->r.b.user_ptr == NULL);
 
        map = r600_bo_map(ws, rbuffer->r.bo,
                          PIPE_TRANSFER_WRITE | PIPE_TRANSFER_DISCARD | usage,