Commit 6f09bf40 authored by Roland Scheidegger's avatar Roland Scheidegger

r300g: compile fixes

parent 76711ff4
......@@ -42,11 +42,6 @@
static struct pipe_resource *
r300_resource_create(struct pipe_screen *screen,
const struct pipe_resource *template)
......@@ -54,7 +49,7 @@ r300_resource_create(struct pipe_screen *screen,
if (template->target == PIPE_BUFFER)
return r300_buffer_create(screen, template);
else
return r300_resource_create(screen, template);
return r300_texture_create(screen, template);
}
......
......@@ -323,7 +323,7 @@ struct pipe_resource *r300_buffer_create(struct pipe_screen *screen,
pipe_reference_init(&rbuf->b.b.reference, 1);
rbuf->b.b.screen = screen;
if (bind & R300_BIND_OQBO)
if (rbuf->b.b.bind & R300_BIND_OQBO)
alignment = 4096;
rbuf->buf = r300_winsys_buffer_create(r300screen,
......
......@@ -1368,7 +1368,7 @@ static void r300_set_constant_buffer(struct pipe_context *pipe,
} else if (r300->draw) {
draw_set_mapped_constant_buffer(r300->draw, PIPE_SHADER_VERTEX,
0, r300->shader_constants[PIPE_SHADER_VERTEX].constants,
buf->size);
buf->width0);
}
} else if (shader == PIPE_SHADER_FRAGMENT) {
r300->dirty_state |= R300_NEW_FRAGMENT_SHADER_CONSTANTS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment