diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-02-14 06:45:55 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-02-14 07:45:14 +0100 |
commit | 5a6ba08c21f24b14458a2084a170ddfbe8f5d793 (patch) | |
tree | fc13659a370e3e5298dcaa6daa97de3571548437 /src/gallium/drivers/r300/r300_context.h | |
parent | 004dd015839dfb77b9d66fb2df6514feefb87d9e (diff) | |
download | external_mesa3d-5a6ba08c21f24b14458a2084a170ddfbe8f5d793.zip external_mesa3d-5a6ba08c21f24b14458a2084a170ddfbe8f5d793.tar.gz external_mesa3d-5a6ba08c21f24b14458a2084a170ddfbe8f5d793.tar.bz2 |
r300g: emit 3D_LOAD_VBPNTR only when necessary
I thought I couldn't skip emitting this packet in some cases.
Well it looks like I can.
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 9335c68..6e940b4 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -589,9 +589,10 @@ struct r300_context { /* const tracking for VS */ int vs_const_base; - /* AOS (PACKET3_3D_LOAD_VBPNTR) command buffer for the case offset=0. */ - uint32_t vertex_arrays_cb[(16 * 3 + 1) / 2]; + /* Vertex array state info */ boolean vertex_arrays_dirty; + boolean vertex_arrays_indexed; + int vertex_arrays_offset; /* Whether any buffer (FB, textures, VBOs) has been set, but buffers * haven't been validated yet. */ |