drm/i915: Drop the broken cursor base==0 special casing
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Dec 2015 11:16:48 +0000 (13:16 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 22 Dec 2015 09:51:28 +0000 (11:51 +0200)
commit615cb24326bbe19834a1aba47677a6c80bdcfc01
tree966e73b7c9384a0596afca13bdb52c9d65d6a04c
parent4ef7675344d687a0ef5b0d7c0cee12da005870c0
drm/i915: Drop the broken cursor base==0 special casing

The cursor code tries to treat base==0 to mean disabled. That fails
when the cursor bo gets bound at ggtt offset 0, and the user is left
looking at an invisible cursor.

We lose the disabled->disabled optimization, but that seems like
something better handled at a slightly higher level.

Cc: drm-intel-fixes@lists.freedesktop.org
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1450091808-32607-3-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
(cherry picked from commit 663f3122d00c0b412d429f105dca129aa8f4f094)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_display.c