]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/libdrm.git/commitdiff
intel: Fix "properly test for HAS_LLC"
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 7 Oct 2012 09:05:19 +0000 (10:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 7 Oct 2012 09:09:38 +0000 (10:09 +0100)
commit 92fd0ce4f659d7b0680543e9e5b96a3c7737a5f3
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Aug 31 11:16:53 2012 +0200

    intel: properly test for HAS_LLC

missed slightly and in effect had no effect on the outcome of checking
whether the kernel/chipset supported LLC.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c

index 898008d795fae9c2f73a18139952abb6f321af94..3f7424c9fd7d51fc155de8caebab5921a522a9b0 100644 (file)
@@ -3119,7 +3119,7 @@ drm_intel_bufmgr_gem_init(int fd, int batch_size)
                bufmgr_gem->has_llc = (IS_GEN6(bufmgr_gem->pci_device) |
                                IS_GEN7(bufmgr_gem->pci_device));
        } else
-               bufmgr_gem->has_llc = gp.value;
+               bufmgr_gem->has_llc = *gp.value;
 
        if (bufmgr_gem->gen < 4) {
                gp.param = I915_PARAM_NUM_FENCES_AVAIL;