drm/nv50: supply encoder disable() hook for SOR outputs
Allows us to remove a driver hack that used to be necessary to disable encoders in certain situations before setting up a mode. The DRM has better knowledge of when this is needed than the driver does. This fixes a number of display switching issues. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
@@ -38,13 +38,15 @@ struct nouveau_encoder {
|
||||
struct dcb_entry *dcb;
|
||||
int or;
|
||||
|
||||
/* different to drm_encoder.crtc, this reflects what's
|
||||
* actually programmed on the hw, not the proposed crtc */
|
||||
struct drm_crtc *crtc;
|
||||
|
||||
struct drm_display_mode mode;
|
||||
int last_dpms;
|
||||
|
||||
struct nv04_output_reg restore;
|
||||
|
||||
void (*disconnect)(struct nouveau_encoder *encoder);
|
||||
|
||||
union {
|
||||
struct {
|
||||
int mc_unknown;
|
||||
|
Reference in New Issue
Block a user