summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFan Jinke <fanjinke@hygon.cn>2019-04-20 22:36:35 +0800
committerMatt Turner <mattst88@gmail.com>2019-05-02 16:07:19 -0700
commit85bfa8b4f966edbe56340b526a4cacac20988d21 (patch)
treeb1fdb7a56cf43e06fbbf26fcaed95ee05ed07f78
parent8256c235d9b3854d039242356905eca854a890ba (diff)
downloadpixman-85bfa8b4f966edbe56340b526a4cacac20988d21.tar.gz
add Hygon Dhyana support to enable X86_MMX_EXTENSIONS feature
Signed-off-by: Fan Jinke <fanjinke@hygon.cn> Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--pixman/pixman-x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pixman/pixman-x86.c b/pixman/pixman-x86.c
index 05297c4..0130b7b 100644
--- a/pixman/pixman-x86.c
+++ b/pixman/pixman-x86.c
@@ -187,6 +187,7 @@ detect_cpu_features (void)
memcpy (vendor + 8, &c, 4);
if (strcmp (vendor, "AuthenticAMD") == 0 ||
+ strcmp (vendor, "HygonGenuine") == 0 ||
strcmp (vendor, "Geode by NSC") == 0)
{
pixman_cpuid (0x80000000, &a, &b, &c, &d);