diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2014-04-17 10:37:39 +0800 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-05 09:08:48 +0200 |
commit | 77fe2ff3db150736ac24512f42caf28a16aa918b (patch) | |
tree | ffdeb929d6bb7a16cf5dc9d314d1f522e6cc3408 /drivers/gpu/drm/i915/intel_ringbuffer.c | |
parent | 85f9b5f9c48abdbcbeacdd5a6daf76c63eba8c83 (diff) | |
download | op-kernel-dev-77fe2ff3db150736ac24512f42caf28a16aa918b.zip op-kernel-dev-77fe2ff3db150736ac24512f42caf28a16aa918b.tar.gz |
drm/i915:Add the VCS2 switch in Intel_ring_setup_status_page
The Gen7 doesn't have the second BSD ring. But it will complain the switch check
warning message during compilation. So just add it to remove the
switch check warning.
V1->V2: Follow Daniel's comment to update the comment
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index ffb013d..ab22d70 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c @@ -994,6 +994,11 @@ void intel_ring_setup_status_page(struct intel_ring_buffer *ring) case BCS: mmio = BLT_HWS_PGA_GEN7; break; + /* + * VCS2 actually doesn't exist on Gen7. Only shut up + * gcc switch check warning + */ + case VCS2: case VCS: mmio = BSD_HWS_PGA_GEN7; break; |