diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-10-16 22:23:41 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-12-21 04:01:21 -0500 |
commit | de69185573586302ada2e59ba41835df36986277 (patch) | |
tree | 4c80ab38e936aa292985ac67498fe99648ab6628 /drivers/gpu/drm/nouveau/nouveau_connector.h | |
parent | 488ff207f98650c6a1f077e432b541f3cdcb7ab8 (diff) |
drm/nouveau: improve dithering properties, and implement proper auto mode
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_connector.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_connector.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.h b/drivers/gpu/drm/nouveau/nouveau_connector.h index 5bcaabbd375c..6468f5e67ccf 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.h +++ b/drivers/gpu/drm/nouveau/nouveau_connector.h | |||
@@ -30,12 +30,37 @@ | |||
30 | #include "drm_edid.h" | 30 | #include "drm_edid.h" |
31 | #include "nouveau_i2c.h" | 31 | #include "nouveau_i2c.h" |
32 | 32 | ||
33 | enum nouveau_underscan_type { | ||
34 | UNDERSCAN_OFF, | ||
35 | UNDERSCAN_ON, | ||
36 | UNDERSCAN_AUTO, | ||
37 | }; | ||
38 | |||
39 | /* the enum values specifically defined here match nv50/nvd0 hw values, and | ||
40 | * the code relies on this | ||
41 | */ | ||
42 | enum nouveau_dithering_mode { | ||
43 | DITHERING_MODE_OFF = 0x00, | ||
44 | DITHERING_MODE_ON = 0x01, | ||
45 | DITHERING_MODE_DYNAMIC2X2 = 0x10 | DITHERING_MODE_ON, | ||
46 | DITHERING_MODE_STATIC2X2 = 0x18 | DITHERING_MODE_ON, | ||
47 | DITHERING_MODE_TEMPORAL = 0x20 | DITHERING_MODE_ON, | ||
48 | DITHERING_MODE_AUTO | ||
49 | }; | ||
50 | |||
51 | enum nouveau_dithering_depth { | ||
52 | DITHERING_DEPTH_6BPC = 0x00, | ||
53 | DITHERING_DEPTH_8BPC = 0x02, | ||
54 | DITHERING_DEPTH_AUTO | ||
55 | }; | ||
56 | |||
33 | struct nouveau_connector { | 57 | struct nouveau_connector { |
34 | struct drm_connector base; | 58 | struct drm_connector base; |
35 | 59 | ||
36 | struct dcb_connector_table_entry *dcb; | 60 | struct dcb_connector_table_entry *dcb; |
37 | 61 | ||
38 | bool use_dithering; | 62 | int dithering_mode; |
63 | int dithering_depth; | ||
39 | int scaling_mode; | 64 | int scaling_mode; |
40 | enum nouveau_underscan_type underscan; | 65 | enum nouveau_underscan_type underscan; |
41 | u32 underscan_hborder; | 66 | u32 underscan_hborder; |