r300g/complier: Make r300_vertprog_swizzle_caps visible in other files
authorTom Stellard <thomas.stellard@amd.com>
Sun, 10 Feb 2013 05:15:09 +0000 (00:15 -0500)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 22 Feb 2013 03:07:27 +0000 (22:07 -0500)
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 <maraeo@gmail.com>
src/gallium/drivers/r300/compiler/r3xx_vertprog.c
src/gallium/drivers/r300/compiler/radeon_swizzle.h

index 9c481f0d0c5eed62c697e0171f3073a119ebc1f0..524c4fdb657a63724372d3e122814eaea7d539c8 100644 (file)
@@ -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 */
 };
index c81d5f7a5e9428d3b75af6482ac24759e5f017f2..9a048e4eacd529060b20ea0e6f673fea6708a1bf 100644 (file)
@@ -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 */