Changeset 98051 in vbox
- Timestamp:
- Jan 11, 2023 5:45:06 AM (2 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d.cpp
r96407 r98051 31 31 *********************************************************************************************************************************/ 32 32 #define LOG_GROUP LOG_GROUP_DEV_VMSVGA 33 #include <VBox/AssertGuest.h>34 33 #include <VBox/vmm/pdmdev.h> 35 34 #include <iprt/errcore.h> -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d.h
r96407 r98051 32 32 #endif 33 33 34 #include <VBox/AssertGuest.h> 35 34 36 #include "DevVGA-SVGA.h" 35 37 … … 196 198 DECLINLINE(void) vmsvga3dCalcMipmapAndFace(uint32_t cMipLevels, uint32_t iSubresource, uint32_t *piMipmap, uint32_t *piFace) 197 199 { 198 *piFace = iSubresource / cMipLevels; 199 *piMipmap = iSubresource % cMipLevels; 200 if (RT_LIKELY(cMipLevels)) 201 { 202 *piFace = iSubresource / cMipLevels; 203 *piMipmap = iSubresource % cMipLevels; 204 } 205 else 206 { 207 ASSERT_GUEST_FAILED(); 208 *piFace = 0; 209 *piMipmap = 0; 210 } 200 211 } 201 212
Note:
See TracChangeset
for help on using the changeset viewer.