Changeset 104057 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Mar 26, 2024 10:50:45 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_ttm.c
r102874 r104057 533 533 534 534 bo->placement.placement = bo->placements; 535 #if RTLNX_VER_MAX(6,9,0) 535 536 bo->placement.busy_placement = bo->placements; 537 #endif 536 538 537 539 if (mem_type & VBOX_MEM_TYPE_VRAM) { 538 #if RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99) 540 #if RTLNX_VER_MIN(6,9,0) 541 bo->placements[c].mem_type = TTM_PL_VRAM; 542 PLACEMENT_FLAGS(bo->placements[c++]) = TTM_PL_FLAG_DESIRED; 543 #elif RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99) 539 544 bo->placements[c].mem_type = TTM_PL_VRAM; 540 545 PLACEMENT_FLAGS(bo->placements[c++]) = 0; … … 549 554 } 550 555 if (mem_type & VBOX_MEM_TYPE_SYSTEM) { 551 #if RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99) 556 557 #if RTLNX_VER_MIN(6,9,0) 558 bo->placements[c].mem_type = TTM_PL_SYSTEM; 559 PLACEMENT_FLAGS(bo->placements[c++]) = TTM_PL_FLAG_DESIRED; 560 #elif RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99) 552 561 bo->placements[c].mem_type = TTM_PL_SYSTEM; 553 562 PLACEMENT_FLAGS(bo->placements[c++]) = 0; … … 562 571 } 563 572 if (!c) { 564 #if RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99) 573 #if RTLNX_VER_MIN(6,9,0) 574 bo->placements[c].mem_type = TTM_PL_SYSTEM; 575 PLACEMENT_FLAGS(bo->placements[c++]) = TTM_PL_FLAG_DESIRED; 576 #elif RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99) 565 577 bo->placements[c].mem_type = TTM_PL_SYSTEM; 566 578 PLACEMENT_FLAGS(bo->placements[c++]) = 0; … … 576 588 577 589 bo->placement.num_placement = c; 590 #if RTLNX_VER_MAX(6,9,0) 578 591 bo->placement.num_busy_placement = c; 592 #endif 579 593 580 594 #if RTLNX_VER_MIN(3,18,0) || RTLNX_RHEL_MAJ_PREREQ(7,2)
Note:
See TracChangeset
for help on using the changeset viewer.