summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2013-02-10 00:15:09 -0500
committerTom Stellard <[email protected]>2013-02-21 22:07:27 -0500
commit5355fc1e8743dd776b86a15a16a1bc597da7d0f1 (patch)
treefa37965357b73b25665fd9bc497d3490a542d6aa /src/gallium/drivers/r300
parentc3df498ff907243578439a242478a94e8218fba0 (diff)
r300g/complier: Make r300_vertprog_swizzle_caps visible in other files
This will be used by the test suite in later commits. NOTE: This is a candidate for the stable branches. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/compiler/r3xx_vertprog.c2
-rw-r--r--src/gallium/drivers/r300/compiler/radeon_swizzle.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/compiler/r3xx_vertprog.c b/src/gallium/drivers/r300/compiler/r3xx_vertprog.c
index 9c481f0d0c5..524c4fdb657 100644
--- a/src/gallium/drivers/r300/compiler/r3xx_vertprog.c
+++ b/src/gallium/drivers/r300/compiler/r3xx_vertprog.c
@@ -861,7 +861,7 @@ static void rc_emulate_negative_addressing(struct radeon_compiler *compiler, voi
transform_negative_addressing(c, lastARL, inst, min_offset);
}
-static struct rc_swizzle_caps r300_vertprog_swizzle_caps = {
+struct rc_swizzle_caps r300_vertprog_swizzle_caps = {
.IsNative = &swizzle_is_native,
.Split = 0 /* should never be called */
};
diff --git a/src/gallium/drivers/r300/compiler/radeon_swizzle.h b/src/gallium/drivers/r300/compiler/radeon_swizzle.h
index c81d5f7a5e9..9a048e4eacd 100644
--- a/src/gallium/drivers/r300/compiler/radeon_swizzle.h
+++ b/src/gallium/drivers/r300/compiler/radeon_swizzle.h
@@ -54,4 +54,6 @@ struct rc_swizzle_caps {
void (*Split)(struct rc_src_register reg, unsigned int mask, struct rc_swizzle_split * split);
};
+extern struct rc_swizzle_caps r300_vertprog_swizzle_caps;
+
#endif /* RADEON_SWIZZLE_H */