aboutsummaryrefslogtreecommitdiff
path: root/pixman/pixman/pixman-mips.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-10-17 08:04:15 +0200
committermarha <marha@users.sourceforge.net>2012-10-17 08:04:15 +0200
commitded57b5a4131a213d57f5a20d50b819b7a8924df (patch)
tree5be4cc93cf5d77df72f8ae6e34953e026bde071f /pixman/pixman/pixman-mips.c
parent54db46582aba2252d544fa3956522f9ef06b49cb (diff)
downloadvcxsrv-ded57b5a4131a213d57f5a20d50b819b7a8924df.tar.gz
vcxsrv-ded57b5a4131a213d57f5a20d50b819b7a8924df.tar.bz2
vcxsrv-ded57b5a4131a213d57f5a20d50b819b7a8924df.zip
pixman mesa git update 17 oct 2012
pixman: 6e56098c0338ce74228187e4c96fed1a66cb0956 mesa: 0199ff7fe323cf527ffacfdef3258ab85799dd13
Diffstat (limited to 'pixman/pixman/pixman-mips.c')
-rw-r--r--pixman/pixman/pixman-mips.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/pixman/pixman/pixman-mips.c b/pixman/pixman/pixman-mips.c
index 2b280c6f1..304881383 100644
--- a/pixman/pixman/pixman-mips.c
+++ b/pixman/pixman/pixman-mips.c
@@ -75,9 +75,19 @@ _pixman_mips_get_implementations (pixman_implementation_t *imp)
#endif
#ifdef USE_MIPS_DSPR2
- /* Only currently available MIPS core that supports DSPr2 is 74K. */
- if (!_pixman_disabled ("mips-dspr2") && have_feature ("MIPS 74K"))
- imp = _pixman_implementation_create_mips_dspr2 (imp);
+ if (!_pixman_disabled ("mips-dspr2"))
+ {
+ int already_compiling_everything_for_dspr2 = 0;
+#if defined(__mips_dsp) && (__mips_dsp_rev >= 2)
+ already_compiling_everything_for_dspr2 = 1;
+#endif
+ if (already_compiling_everything_for_dspr2 ||
+ /* Only currently available MIPS core that supports DSPr2 is 74K. */
+ have_feature ("MIPS 74K"))
+ {
+ imp = _pixman_implementation_create_mips_dspr2 (imp);
+ }
+ }
#endif
return imp;