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)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Dec 2015 16:55:04 +0000 (18:55 +0200)
commit663f3122d00c0b412d429f105dca129aa8f4f094
tree88bf8476f8cc64a88f5277fd3c97fd41e3c8076c
parent1264859d648c4bdc9f0a098efbff90cbf462a075
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>
drivers/gpu/drm/i915/intel_display.c