From 21b012d3b022c1c55358226f7bcc52fe50078123 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 11 May 2012 23:22:21 +0200 Subject: r300g/swtcl: malloc vertex and index buffers (don't use radeon DRM to get them) Vertex and index buffers are never used by hardware, only by Draw. SWTCL chipsets usually have very little memory, so this might help with stability and reliability. --- src/gallium/drivers/r300/r300_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/r300/r300_state.c') diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index 5b02cfd90cd..758fb40fea4 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -1848,8 +1848,8 @@ static void r300_set_constant_buffer(struct pipe_context *pipe, else { struct r300_resource *rbuf = r300_resource(cb->buffer); - if (rbuf && rbuf->constant_buffer) - mapped = (uint32_t*)rbuf->constant_buffer; + if (rbuf && rbuf->malloced_buffer) + mapped = (uint32_t*)rbuf->malloced_buffer; else return; } -- cgit v1.2.3