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_context.h | |
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_context.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index b58f514c358..6a064420603 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -389,8 +389,9 @@ struct r300_resource struct radeon_winsys_cs_handle *cs_buf; enum radeon_bo_domain domain; - /* Constant buffers are in user memory. */ - uint8_t *constant_buffer; + /* Constant buffers and SWTCL vertex and index buffers are in user + * memory. */ + uint8_t *malloced_buffer; /* Texture description (addressing, layout, special features). */ struct r300_texture_desc tex; |