儲存庫 vbox 的更動 62568
- 時間撮記:
- 2016-7-26 下午03:30:28 (8 年 以前)
- 位置:
- trunk/src/VBox/Additions/linux/drm
- 檔案:
-
- 修改 3 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r62550 r62568 105 105 /** Amount of available VRAM, not including space used for buffers. */ 106 106 uint32_t available_vram_size; 107 /** Offset of host communication area in mappedVRAM. */108 uint32_t vram_ host_offset;107 /** Offset of mapped VRAM area in full VRAM. */ 108 uint32_t vram_map_start; 109 109 /** Offset to the host flags in the VRAM. */ 110 110 uint32_t host_flags_offset; -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r62557 r62568 70 70 unsigned i; 71 71 struct VBVABUFFER *vbva; 72 uint32_t vram_map_offset = vbox->available_vram_size - vbox->vram_map_start; 72 73 73 74 AssertLogRelReturnVoid(vbox->vbva_info != NULL); … … 76 77 LogFunc(("vboxvideo: enabling VBVA.\n")); 77 78 vbva = (struct VBVABUFFER *) ( ((uint8_t *)vbox->mapped_vram) 78 + v box->vram_host_offset79 + vram_map_offset 79 80 + i * VBVA_MIN_BUFFER_SIZE); 80 81 if (!VBoxVBVAEnable(&vbox->vbva_info[i], &vbox->submit_info, vbva, i)) … … 255 256 } 256 257 /* Take a command buffer for each screen from the end of usable VRAM. */ 257 vbox->vram_host_offset = (VBOX_MAX_SCREENS - vbox->num_crtcs) * VBVA_MIN_BUFFER_SIZE;258 258 vbox->available_vram_size -= vbox->num_crtcs * VBVA_MIN_BUFFER_SIZE; 259 259 for (i = 0; i < vbox->num_crtcs; ++i) … … 325 325 if (!vbox->mapped_vram) 326 326 return -ENOMEM; 327 vbox->vram_map_start = map_start; 327 328 guest_heap = ((uint8_t *)vbox->mapped_vram) + base_offset - map_start 328 329 + guest_heap_offset; -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r62557 r62568 107 107 pitch, width, height, 108 108 vbox_crtc->blanked ? 0 : bpp, flags); 109 VBoxHGSMIReportFlagsLocation(&vbox->submit_info, vbox->host_flags_offset); 109 VBoxHGSMIReportFlagsLocation(&vbox->submit_info, vbox->vram_map_start 110 + vbox->host_flags_offset); 110 111 LogFunc(("vboxvideo: %d\n", __LINE__)); 111 112 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器