From eb7ef433bbbeabda963e74adf0ef61c47883f292 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 22 Jun 2010 06:41:15 +0200 Subject: r300g: optimize the immediate mode emission path a bit --- src/gallium/drivers/r300/r300_context.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/r300/r300_context.h') diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index fdbdb4b192..8d0b4bb3d3 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -363,6 +363,9 @@ struct r300_vertex_element_state { enum pipe_format hw_format[PIPE_MAX_ATTRIBS]; unsigned hw_format_size[PIPE_MAX_ATTRIBS]; + /* The size of the vertex, in dwords. */ + unsigned vertex_size_dwords; + /* This might mean two things: * - src_format != hw_format, as discussed above. * - src_offset % 4 != 0. */ -- cgit v1.2.3