diff options
author | Christoph Bumiller <[email protected]> | 2012-04-14 06:08:08 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-04-14 06:14:21 +0200 |
commit | ce713cd520792707e9097ef9e843ef7ab57b0eab (patch) | |
tree | 1d2422b070bb5bfc2858616ca991825a02dd83bb /src/gallium/drivers/nvc0/nvc0_stateobj.h | |
parent | edbfeed56f1ebd8517840ef48f8c87e24bb98157 (diff) |
nvc0: replace VERTEX_DATA push mode with translate to buffer
While pushing vertices through the FIFO is relatively fast on nv50,
it's horribly slow on nvc0.
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_stateobj.h')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_stateobj.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_stateobj.h b/src/gallium/drivers/nvc0/nvc0_stateobj.h index bd543029705..fd932be1682 100644 --- a/src/gallium/drivers/nvc0/nvc0_stateobj.h +++ b/src/gallium/drivers/nvc0/nvc0_stateobj.h @@ -35,6 +35,7 @@ struct nvc0_zsa_stateobj { struct nvc0_vertex_element { struct pipe_vertex_element pipe; uint32_t state; + uint32_t state_alt; /* buffer 0 and with source offset (for translate) */ }; struct nvc0_vertex_stateobj { @@ -43,8 +44,7 @@ struct nvc0_vertex_stateobj { uint32_t instance_elts; uint32_t instance_bufs; boolean need_conversion; /* e.g. VFETCH cannot convert f64 to f32 */ - unsigned vtx_size; - unsigned vtx_per_packet_max; + unsigned size; /* size of vertex in bytes (when packed) */ struct nvc0_vertex_element element[0]; }; |