- Timestamp:
- Sep 8, 2016 6:46:39 PM (8 years ago)
- Location:
- trunk/src/VBox/Additions/linux/drm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r62568 r63771 215 215 void vbox_enable_accel(struct vbox_private *vbox); 216 216 void vbox_disable_accel(struct vbox_private *vbox); 217 void vbox_ enable_caps(struct vbox_private *vbox);217 void vbox_report_caps(struct vbox_private *vbox); 218 218 219 219 void vbox_framebuffer_dirty_rectangles(struct drm_framebuffer *fb, -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r62568 r63771 93 93 } 94 94 95 void vbox_ enable_caps(struct vbox_private *vbox)96 { 97 uint32_t caps = VBVACAPS_DISABLE_CURSOR_INTEGRATION95 void vbox_report_caps(struct vbox_private *vbox) 96 { 97 uint32_t caps = VBVACAPS_DISABLE_CURSOR_INTEGRATION 98 98 | VBVACAPS_IRQ 99 99 | VBVACAPS_USE_VBVA_ONLY; -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r62568 r63771 107 107 pitch, width, height, 108 108 vbox_crtc->blanked ? 0 : bpp, flags); 109 VBoxHGSMIReportFlagsLocation(&vbox->submit_info, vbox->vram_map_start110 + vbox->host_flags_offset);111 109 LogFunc(("vboxvideo: %d\n", __LINE__)); 112 110 } … … 507 505 vbox_connector = to_vbox_connector(connector); 508 506 vbox = connector->dev->dev_private; 507 /* Heuristic: we do not want to tell the host that we support dynamic 508 * resizing unless we feel confident that the user space client using 509 * the video driver can handle hot-plug events. So the first time modes 510 * are queried after a "master" switch we tell the host that we do not, 511 * and immediately after we send the client a hot-plug notification as 512 * a test to see if they will respond and query again. 513 * That is also the reason why capabilities are reported to the host at 514 * this place in the code rather than elsewhere. 515 * We need to report the flags location before reporting the IRQ 516 * capability. */ 517 VBoxHGSMIReportFlagsLocation(&vbox->submit_info, vbox->vram_map_start 518 + vbox->host_flags_offset); 509 519 if (vbox_connector->vbox_crtc->crtc_id == 0) 510 vbox_ enable_caps(vbox);520 vbox_report_caps(vbox); 511 521 if (!vbox->initial_mode_queried) { 512 522 if (vbox_connector->vbox_crtc->crtc_id == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.