summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_context.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-04-17 11:27:53 -0700
committerBrian Paul <[email protected]>2014-04-17 11:31:15 -0700
commitcb34575e19e10b94e90ffb730b962e6930b47a19 (patch)
tree56cc61c455a37d2d29da966324c798ccbc7d71a0 /src/gallium/drivers/svga/svga_context.h
parent851645a3e7f06348d60180ec122b9ad0dc3cf432 (diff)
svga: compute need_swvfetch in svga_create_vertex_elements_state()
This saves us doing it at state validation time. Reviewed-by: Matthew McClure <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r--src/gallium/drivers/svga/svga_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h
index 4ff0ed7e66f..a75f2a8b570 100644
--- a/src/gallium/drivers/svga/svga_context.h
+++ b/src/gallium/drivers/svga/svga_context.h
@@ -203,6 +203,7 @@ struct svga_velems_state {
SVGA3dDeclType decl_type[PIPE_MAX_ATTRIBS]; /**< vertex attrib formats */
unsigned adjust_attrib_range; /* bitmask of attrs needing range adjustment */
unsigned adjust_attrib_w_1; /* bitmask of attrs needing w = 1 */
+ boolean need_swvfetch;
};
/* Use to calculate differences between state emitted to hardware and