diff options
author | Marek Olšák <[email protected]> | 2012-05-11 23:22:21 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-05-12 00:50:53 +0200 |
commit | 21b012d3b022c1c55358226f7bcc52fe50078123 (patch) | |
tree | 4e2b683fb9881391bc9b75c8a644e9d5ec3ad47a /src/gallium/drivers/r300/r300_state.c | |
parent | 8a963d122d4b67209214b0483084ba950814f42b (diff) |
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.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |