diff options
author | Dave Airlie <[email protected]> | 2010-12-03 20:53:39 +1000 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-12-05 05:47:03 +0100 |
commit | c1365606c5b89872af4a0931e20f5cb78875eea6 (patch) | |
tree | 8eeb9533852e4739f77cad2fce9dcda760d8db0e /src/gallium/drivers/r300/r300_context.h | |
parent | 1774273bde184acb95ce0ba0bfd8a0d86d04ea8f (diff) |
r300g: try and use all of vertex constant space
Finished up by Marek Olšák.
We can set the constant space to use a different area per-call to the shader,
we can avoid flushing the PVS as often as we do by spreading out the constants
across the whole constant space.
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index b543ad667ed..bb5906aeb93 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -258,6 +258,8 @@ struct r300_constant_buffer { uint32_t *ptr; /* Remapping table. */ unsigned *remap_table; + /* const buffer base */ + uint32_t buffer_base; }; /* Query object. @@ -606,6 +608,9 @@ struct r300_context { /* Stat counter. */ uint64_t flush_counter; + + /* const tracking for VS */ + int vs_const_base; }; /* Convenience cast wrappers. */ |