Commit f72a1183 authored by Xiang, Haihao's avatar Xiang, Haihao Committed by Daniel Vetter

drm/i915: add HAS_VEBOX

The flag will be useful to help share code between IVB, and HSW as the
programming is similar in many places with this as one of the major
differences.
Signed-off-by: default avatarXiang, Haihao <haihao.xiang@intel.com>
[Commit message + small fix by]
Reviewed-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent ea251324
...@@ -311,6 +311,7 @@ static const struct intel_device_info intel_haswell_d_info = { ...@@ -311,6 +311,7 @@ static const struct intel_device_info intel_haswell_d_info = {
.is_haswell = 1, .is_haswell = 1,
.has_ddi = 1, .has_ddi = 1,
.has_fpga_dbg = 1, .has_fpga_dbg = 1,
.has_vebox_ring = 1,
}; };
static const struct intel_device_info intel_haswell_m_info = { static const struct intel_device_info intel_haswell_m_info = {
...@@ -320,6 +321,7 @@ static const struct intel_device_info intel_haswell_m_info = { ...@@ -320,6 +321,7 @@ static const struct intel_device_info intel_haswell_m_info = {
.has_ddi = 1, .has_ddi = 1,
.has_fpga_dbg = 1, .has_fpga_dbg = 1,
.has_fbc = 1, .has_fbc = 1,
.has_vebox_ring = 1,
}; };
static const struct pci_device_id pciidlist[] = { /* aka */ static const struct pci_device_id pciidlist[] = { /* aka */
......
...@@ -374,6 +374,7 @@ struct drm_i915_gt_funcs { ...@@ -374,6 +374,7 @@ struct drm_i915_gt_funcs {
func(supports_tv) sep \ func(supports_tv) sep \
func(has_bsd_ring) sep \ func(has_bsd_ring) sep \
func(has_blt_ring) sep \ func(has_blt_ring) sep \
func(has_vebox_ring) sep \
func(has_llc) sep \ func(has_llc) sep \
func(has_ddi) sep \ func(has_ddi) sep \
func(has_fpga_dbg) func(has_fpga_dbg)
...@@ -1373,6 +1374,7 @@ struct drm_i915_file_private { ...@@ -1373,6 +1374,7 @@ struct drm_i915_file_private {
#define HAS_BSD(dev) (INTEL_INFO(dev)->has_bsd_ring) #define HAS_BSD(dev) (INTEL_INFO(dev)->has_bsd_ring)
#define HAS_BLT(dev) (INTEL_INFO(dev)->has_blt_ring) #define HAS_BLT(dev) (INTEL_INFO(dev)->has_blt_ring)
#define HAS_VEBOX(dev) (INTEL_INFO(dev)->has_vebox_ring)
#define HAS_LLC(dev) (INTEL_INFO(dev)->has_llc) #define HAS_LLC(dev) (INTEL_INFO(dev)->has_llc)
#define I915_NEED_GFX_HWS(dev) (INTEL_INFO(dev)->need_gfx_hws) #define I915_NEED_GFX_HWS(dev) (INTEL_INFO(dev)->need_gfx_hws)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment