aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_tgsi_to_rc.h
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2010-02-01 12:47:03 -0800
committerCorbin Simpson <[email protected]>2010-02-01 12:48:33 -0800
commit9a1bf52c184b6c0393543fe4bb03c790630b9e21 (patch)
tree4df4f30a1c47491f13f219ff3bc31ec0e3acbf42 /src/gallium/drivers/r300/r300_tgsi_to_rc.h
parente1906ae98ef4d8f153553056552c06ac4292d1f5 (diff)
r300g: Inline immediates where possible.
Oh look, more gears. Seems to work just fine though.
Diffstat (limited to 'src/gallium/drivers/r300/r300_tgsi_to_rc.h')
-rw-r--r--src/gallium/drivers/r300/r300_tgsi_to_rc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_tgsi_to_rc.h b/src/gallium/drivers/r300/r300_tgsi_to_rc.h
index 93e90ec6d2c..f1e66f46bbc 100644
--- a/src/gallium/drivers/r300/r300_tgsi_to_rc.h
+++ b/src/gallium/drivers/r300/r300_tgsi_to_rc.h
@@ -29,11 +29,18 @@ struct tgsi_full_declaration;
struct tgsi_shader_info;
struct tgsi_token;
+struct swizzled_imms {
+ unsigned index;
+ unsigned swizzle;
+};
+
struct tgsi_to_rc {
struct radeon_compiler * compiler;
const struct tgsi_shader_info * info;
int immediate_offset;
+ struct swizzled_imms imms_to_swizzle[10];
+ unsigned imms_to_swizzle_count;
};
void r300_tgsi_to_rc(struct tgsi_to_rc * ttr, const struct tgsi_token * tokens);