summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/cso_cache/cso_cache.h
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2010-03-09 14:19:29 +0100
committerRoland Scheidegger <sroland@vmware.com>2010-03-09 14:19:29 +0100
commitfe9f8536f1b1e7a3a2ac10afd8078e8f4d327578 (patch)
tree41a84ba1db471ec26f2e4aa149059bc816ae6e6e /src/gallium/auxiliary/cso_cache/cso_cache.h
parent4240987cecdaaaeb2d6188f7c83ff4cb8e670c59 (diff)
auxiliary: fix vertex elements cso
potentially could have got a match even though the cso was different (in case of different count and first few elements the same).
Diffstat (limited to 'src/gallium/auxiliary/cso_cache/cso_cache.h')
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_cache.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_cache.h b/src/gallium/auxiliary/cso_cache/cso_cache.h
index d884d5410f..fb09b83c62 100644
--- a/src/gallium/auxiliary/cso_cache/cso_cache.h
+++ b/src/gallium/auxiliary/cso_cache/cso_cache.h
@@ -146,8 +146,13 @@ struct cso_sampler {
struct pipe_context *context;
};
+struct cso_velems_state {
+ unsigned count;
+ struct pipe_vertex_element velems[PIPE_MAX_ATTRIBS];
+};
+
struct cso_velements {
- struct pipe_vertex_element state[PIPE_MAX_ATTRIBS];
+ struct cso_velems_state state;
void *data;
cso_state_callback delete_state;
struct pipe_context *context;