aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_shader_semantics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/r300/r300_shader_semantics.h')
-rw-r--r--src/gallium/drivers/r300/r300_shader_semantics.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_shader_semantics.h b/src/gallium/drivers/r300/r300_shader_semantics.h
index 4be23e64ce7..b756048c6c7 100644
--- a/src/gallium/drivers/r300/r300_shader_semantics.h
+++ b/src/gallium/drivers/r300/r300_shader_semantics.h
@@ -42,6 +42,8 @@ struct r300_shader_semantics {
int generic[ATTR_GENERIC_COUNT];
int fog;
int wpos;
+
+ int num_generic;
};
static INLINE void r300_shader_semantics_reset(
@@ -63,6 +65,8 @@ static INLINE void r300_shader_semantics_reset(
for (i = 0; i < ATTR_GENERIC_COUNT; i++) {
info->generic[i] = ATTR_UNUSED;
}
+
+ info->num_generic = 0;
}
#endif