summaryrefslogtreecommitdiff
path: root/src/sna/sna_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-02-25 23:13:23 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-02-25 23:15:02 +0000
commitaa045d80ec0d3366745d1671b9f667cec587d804 (patch)
treeaefe5be212ac8424bb587283175c3ef6ad86307e /src/sna/sna_driver.c
parent56fd91fc830d7a210e3a0e70ab41261a1f5baa83 (diff)
sna: Detect available instruction sets at runtime
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r--src/sna/sna_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index b73f3c5a..19306601 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -487,6 +487,8 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags)
sna->info = (void *)((uintptr_t)scrn->driverPrivate & ~1);
scrn->driverPrivate = sna;
+
+ sna->cpu_features = sna_cpu_detect();
}
sna = to_sna(scrn);
sna->scrn = scrn;