summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_scan.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-05-12 09:41:41 -0600
committerBrian Paul <[email protected]>2010-05-12 10:37:59 -0600
commit6080e567f0ca1fdcce21e76271d4239c33a50db3 (patch)
tree426a71c2430189961a591b16c28341ae62551caa /src/gallium/auxiliary/tgsi/tgsi_scan.h
parentcf9baf68cbf4e235035f918b8de1cd46f7ce9849 (diff)
tgsi: also count instructions in tgsi_scan_shader()
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_scan.h')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h
index 741aa7d5c42..27de33f7990 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h
@@ -54,6 +54,7 @@ struct tgsi_shader_info
int file_max[TGSI_FILE_COUNT]; /**< highest index of declared registers */
uint immediate_count; /**< number of immediates declared */
+ uint num_instructions;
uint opcode_count[TGSI_OPCODE_LAST]; /**< opcode histogram */