Changeset 86307 in vbox for trunk/src/VBox/Additions/3D/win/VBoxSVGA/winsys
- Timestamp:
- Sep 26, 2020 3:26:55 PM (4 years ago)
- Location:
- trunk/src/VBox/Additions/3D/win/VBoxSVGA/winsys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/3D/win/VBoxSVGA/winsys/vmw_screen_ioctl.c
r82972 r86307 127 127 createParms.usage = (uint32_t) usage; 128 128 129 assert(numFaces * numMipLevels < GA_MAX_SURFACE_FACES* 130 GA_MAX_MIP_LEVELS); 129 if (numFaces * numMipLevels >= GA_MAX_SURFACE_FACES*GA_MAX_MIP_LEVELS) { 130 return (uint32_t)-1; 131 } 131 132 cur_size = sizes; 132 133 for (iFace = 0; iFace < numFaces; ++iFace) { … … 170 171 { 171 172 RT_NOREF10(vws, flags, format, usage, size, numFaces, numMipLevels, sampleCount, buffer_handle, p_region); 172 ASMBreakpoint();173 173 // guest-backed surface 174 174 // DeviceCallbacks.pfnAllocateCb(pDevice->hDevice, pDdiAllocate); 175 return 0;175 return (uint32_t)-1; 176 176 } 177 177 … … 196 196 { 197 197 RT_NOREF4(vws, whandle, req, needs_unref); 198 ASMBreakpoint();199 198 // ??? 200 199 return -1; … … 225 224 { 226 225 RT_NOREF7(vws, whandle, flags, format, numMipLevels, handle, p_region); 227 ASMBreakpoint();228 226 // ??? DeviceCallbacks.pfnLockCb(pDevice->hDevice, ); 229 227 return -1; … … 301 299 302 300 if (ret) { 303 ASMBreakpoint();304 301 vmw_error("IOCTL failed %d: %s\n", ret, strerror(-ret)); 305 302 goto out_err1; … … 347 344 if (region->data == NULL) 348 345 { 349 ASMBreakpoint();/* Should not get here. */346 /* Should not get here. */ 350 347 return NULL; 351 348 } … … 385 382 { 386 383 RT_NOREF4(region, dont_block, readonly, allow_cs); 387 ASMBreakpoint();388 384 // ??? 389 385 return -1; … … 403 399 { 404 400 RT_NOREF3(region, readonly, allow_cs); 405 ASMBreakpoint();406 401 // ??? 407 402 return; … … 477 472 { 478 473 RT_NOREF3(vws, type, code_len); 479 ASMBreakpoint();480 474 // DeviceCallbacks.pfnAllocateCb(pDevice->hDevice, pDdiAllocate); 481 475 return 0; … … 486 480 { 487 481 RT_NOREF2(vws, shid); 488 ASMBreakpoint();489 482 // ??? DeviceCallbacks.pfnDeallocateCb(pDevice->hDevice, pDdiAllocate); 490 483 return; … … 516 509 for (offset = 0; capsBlock[offset] != 0; offset += capsBlock[offset]) { 517 510 const SVGA3dCapsRecord *record; 518 assert(offset < SVGA_FIFO_3D_CAPS_SIZE); 511 if (offset >= SVGA_FIFO_3D_CAPS_SIZE) 512 break; 519 513 record = (const SVGA3dCapsRecord *) (capsBlock + offset); 520 514 if ((record->header.type >= SVGA3DCAPS_RECORD_DEVCAPS_MIN) && … … 602 596 break; 603 597 case DRM_VMW_PARAM_VGPU10: 604 gp_arg->value = 1;598 gp_arg->value = 0; 605 599 break; 606 600 default: return -1; … … 613 607 { 614 608 /* DRM_VMW_GET_3D_CAP */ 615 /// @todo HwInfo.au32Caps if SVGA_CAP_GBOBJECTS is set.616 609 memcpy(pvCap, &vws_wddm->HwInfo.au32Fifo[SVGA_FIFO_3D_CAPS], cbCap); 617 610 return 0; … … 659 652 vws->ioctl.hwversion = gp_arg.value; 660 653 661 memset(&gp_arg, 0, sizeof(gp_arg)); 662 gp_arg.param = DRM_VMW_PARAM_HW_CAPS; 663 ret = vboxGetParam(vws_wddm, &gp_arg); 664 if (ret) 665 vws->base.have_gb_objects = FALSE; 666 else 667 vws->base.have_gb_objects = 668 !!(gp_arg.value & (uint64_t) SVGA_CAP_GBOBJECTS); 654 //memset(&gp_arg, 0, sizeof(gp_arg)); 655 //gp_arg.param = DRM_VMW_PARAM_HW_CAPS; 656 //ret = vboxGetParam(vws_wddm, &gp_arg); 657 //if (ret) 658 // vws->base.have_gb_objects = FALSE; 659 //else 660 // vws->base.have_gb_objects = 661 // !!(gp_arg.value & (uint64_t) SVGA_CAP_GBOBJECTS); 662 /* The driver does not support this feature. */ 663 vws->base.have_gb_objects = FALSE; 669 664 670 665 if (vws->base.have_gb_objects && !drm_gb_capable) -
trunk/src/VBox/Additions/3D/win/VBoxSVGA/winsys/vmw_screen_wddm.c
r82972 r86307 107 107 { 108 108 RT_NOREF3(sws, whandle, format); 109 ASMBreakpoint();110 109 return 0; 111 110 } … … 117 116 { 118 117 RT_NOREF3(sws, whandle, format); 119 ASMBreakpoint();120 118 return 0; 121 119 }
Note:
See TracChangeset
for help on using the changeset viewer.