summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_state.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2012-05-11 23:22:21 +0200
committerMarek Olšák <maraeo@gmail.com>2012-05-12 00:50:53 +0200
commit21b012d3b022c1c55358226f7bcc52fe50078123 (patch)
tree4e2b683fb9881391bc9b75c8a644e9d5ec3ad47a /src/gallium/drivers/r300/r300_state.c
parent8a963d122d4b67209214b0483084ba950814f42b (diff)
downloadexternal_mesa3d-21b012d3b022c1c55358226f7bcc52fe50078123.zip
external_mesa3d-21b012d3b022c1c55358226f7bcc52fe50078123.tar.gz
external_mesa3d-21b012d3b022c1c55358226f7bcc52fe50078123.tar.bz2
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.c4
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 5b02cfd..758fb40 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;
}