diff options
author | Ben Widawsky <benjamin.widawsky@intel.com> | 2014-04-18 17:04:27 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-05 03:09:22 -0400 |
commit | 63c42e56e2039619c6a86785829efed8f12b1bd8 (patch) | |
tree | bfdfaf51a1e2fd6a0e1a2b2e25f5c3b8f62c24d2 /drivers/gpu/drm/i915/i915_drv.h | |
parent | f033579f7759bfb34c082aacbd19a830f1e587cc (diff) |
drm/i915/bdw: Add WT caching ability
I don't have any insight on what parts can do what. The docs do seem to
suggest WT caching works in at least the same manner as it does on
Haswell.
The addr = 0 is to shut up GCC:
drivers/gpu/drm/i915/i915_gem_gtt.c:80:7: warning: 'addr' may be used
uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Reviewed-by: Brad Volkin <bradley.d.volkin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index e81feab6b3f6..50dfc3a1a9d1 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1837,12 +1837,13 @@ struct drm_i915_cmd_table { | |||
1837 | #define BLT_RING (1<<BCS) | 1837 | #define BLT_RING (1<<BCS) |
1838 | #define VEBOX_RING (1<<VECS) | 1838 | #define VEBOX_RING (1<<VECS) |
1839 | #define BSD2_RING (1<<VCS2) | 1839 | #define BSD2_RING (1<<VCS2) |
1840 | #define HAS_BSD(dev) (INTEL_INFO(dev)->ring_mask & BSD_RING) | 1840 | #define HAS_BSD(dev) (INTEL_INFO(dev)->ring_mask & BSD_RING) |
1841 | #define HAS_BSD2(dev) (INTEL_INFO(dev)->ring_mask & BSD2_RING) | 1841 | #define HAS_BSD2(dev) (INTEL_INFO(dev)->ring_mask & BSD2_RING) |
1842 | #define HAS_BLT(dev) (INTEL_INFO(dev)->ring_mask & BLT_RING) | 1842 | #define HAS_BLT(dev) (INTEL_INFO(dev)->ring_mask & BLT_RING) |
1843 | #define HAS_VEBOX(dev) (INTEL_INFO(dev)->ring_mask & VEBOX_RING) | 1843 | #define HAS_VEBOX(dev) (INTEL_INFO(dev)->ring_mask & VEBOX_RING) |
1844 | #define HAS_LLC(dev) (INTEL_INFO(dev)->has_llc) | 1844 | #define HAS_LLC(dev) (INTEL_INFO(dev)->has_llc) |
1845 | #define HAS_WT(dev) (IS_HASWELL(dev) && to_i915(dev)->ellc_size) | 1845 | #define HAS_WT(dev) ((IS_HASWELL(dev) || IS_BROADWELL(dev)) && \ |
1846 | to_i915(dev)->ellc_size) | ||
1846 | #define I915_NEED_GFX_HWS(dev) (INTEL_INFO(dev)->need_gfx_hws) | 1847 | #define I915_NEED_GFX_HWS(dev) (INTEL_INFO(dev)->need_gfx_hws) |
1847 | 1848 | ||
1848 | #define HAS_HW_CONTEXTS(dev) (INTEL_INFO(dev)->gen >= 6) | 1849 | #define HAS_HW_CONTEXTS(dev) (INTEL_INFO(dev)->gen >= 6) |