Module: Mesa Branch: master Commit: bce36d155659f250dd2c38cd72b231bdbe280408 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bce36d155659f250dd2c38cd72b231bdbe280408
Author: Marek Olšák <[email protected]> Date: Wed Jan 2 20:28:10 2013 +0100 r300g: don't check for vertex and index buffer bind flags --- src/gallium/drivers/r300/r300_context.c | 3 +-- src/gallium/drivers/r300/r300_screen_buffer.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c index b725668..8178c39 100644 --- a/src/gallium/drivers/r300/r300_context.c +++ b/src/gallium/drivers/r300/r300_context.c @@ -447,8 +447,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen, memset(&vb, 0, sizeof(vb)); vb.target = PIPE_BUFFER; vb.format = PIPE_FORMAT_R8_UNORM; - vb.bind = PIPE_BIND_VERTEX_BUFFER; - vb.usage = PIPE_USAGE_IMMUTABLE; + vb.usage = PIPE_USAGE_STATIC; vb.width0 = sizeof(float) * 16; vb.height0 = 1; vb.depth0 = 1; diff --git a/src/gallium/drivers/r300/r300_screen_buffer.c b/src/gallium/drivers/r300/r300_screen_buffer.c index 0c1e69b..e2312d0 100644 --- a/src/gallium/drivers/r300/r300_screen_buffer.c +++ b/src/gallium/drivers/r300/r300_screen_buffer.c @@ -174,8 +174,7 @@ struct pipe_resource *r300_buffer_create(struct pipe_screen *screen, /* Alloc constant buffers and SWTCL buffers in RAM. */ if (templ->bind & PIPE_BIND_CONSTANT_BUFFER || - (!r300screen->caps.has_tcl && - (templ->bind & (PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER)))) { + !r300screen->caps.has_tcl) { rbuf->malloced_buffer = align_malloc(templ->width0, 64); return &rbuf->b.b; } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
