diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2010-06-01 05:38:17 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-06-02 23:13:35 -0400 |
commit | 7c4f77801f103c9eb0465bf42313d5e1721d2991 (patch) | |
tree | 6ba1419dbd4fa9f7a98e06e10ec34ea4fbd5ccda /drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | |
parent | c0db9cbc73338d8e2987a19a02388d67aeec0bfe (diff) |
drm/vmwgfx: Fix vga save / restore with display topology.
vga save / restore previously didn't handle the display topology case.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_drv.h')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h index 1341adef408d..e577af5bb3d6 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | |||
@@ -47,6 +47,7 @@ | |||
47 | #define VMWGFX_FIFO_STATIC_SIZE (1024*1024) | 47 | #define VMWGFX_FIFO_STATIC_SIZE (1024*1024) |
48 | #define VMWGFX_MAX_RELOCATIONS 2048 | 48 | #define VMWGFX_MAX_RELOCATIONS 2048 |
49 | #define VMWGFX_MAX_GMRS 2048 | 49 | #define VMWGFX_MAX_GMRS 2048 |
50 | #define VMWGFX_MAX_DISPLAYS 16 | ||
50 | 51 | ||
51 | struct vmw_fpriv { | 52 | struct vmw_fpriv { |
52 | struct drm_master *locked_master; | 53 | struct drm_master *locked_master; |
@@ -152,6 +153,14 @@ struct vmw_master { | |||
152 | struct ttm_lock lock; | 153 | struct ttm_lock lock; |
153 | }; | 154 | }; |
154 | 155 | ||
156 | struct vmw_vga_topology_state { | ||
157 | uint32_t width; | ||
158 | uint32_t height; | ||
159 | uint32_t primary; | ||
160 | uint32_t pos_x; | ||
161 | uint32_t pos_y; | ||
162 | }; | ||
163 | |||
155 | struct vmw_private { | 164 | struct vmw_private { |
156 | struct ttm_bo_device bdev; | 165 | struct ttm_bo_device bdev; |
157 | struct ttm_bo_global_ref bo_global_ref; | 166 | struct ttm_bo_global_ref bo_global_ref; |
@@ -179,16 +188,20 @@ struct vmw_private { | |||
179 | * VGA registers. | 188 | * VGA registers. |
180 | */ | 189 | */ |
181 | 190 | ||
191 | struct vmw_vga_topology_state vga_save[VMWGFX_MAX_DISPLAYS]; | ||
182 | uint32_t vga_width; | 192 | uint32_t vga_width; |
183 | uint32_t vga_height; | 193 | uint32_t vga_height; |
184 | uint32_t vga_depth; | 194 | uint32_t vga_depth; |
185 | uint32_t vga_bpp; | 195 | uint32_t vga_bpp; |
186 | uint32_t vga_pseudo; | 196 | uint32_t vga_pseudo; |
187 | uint32_t vga_red_mask; | 197 | uint32_t vga_red_mask; |
188 | uint32_t vga_blue_mask; | ||
189 | uint32_t vga_green_mask; | 198 | uint32_t vga_green_mask; |
199 | uint32_t vga_blue_mask; | ||
200 | uint32_t vga_bpl; | ||
190 | uint32_t vga_pitchlock; | 201 | uint32_t vga_pitchlock; |
191 | 202 | ||
203 | uint32_t num_displays; | ||
204 | |||
192 | /* | 205 | /* |
193 | * Framebuffer info. | 206 | * Framebuffer info. |
194 | */ | 207 | */ |