Changeset 94582 in vbox for trunk/src/VBox
- Timestamp:
- Apr 13, 2022 5:58:45 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/vmsvga_include/svga3d_surfacedefs.h
r94581 r94582 39 39 #include "includeCheck.h" 40 40 41 #ifndef VBOX 41 42 #include <linux/kernel.h> 42 43 #include <drm/vmwgfx_drm.h> 44 #else 45 #include "svga_types.h" 46 typedef uint8_t u8; 47 typedef uint32_t u32; 48 struct drm_vmw_size 49 { 50 uint32_t width; 51 uint32_t height; 52 uint32_t depth; 53 uint32_t pad64; 54 }; 55 #define U32_MAX UINT32_MAX 56 #define ARRAY_SIZE RT_ELEMENTS 57 #define __KERNEL_DIV_ROUND_UP(aDividend, aDivisor) (((aDividend) + (aDivisor) - 1) / (aDivisor)) 58 #define max_t(aType, aValue1, aValue2) ( (aType)(aValue1) >= (aType)(aValue2) ? (aType)(aValue1) : (aType)(aValue2) ) 59 #define min_t(aType, aValue1, aValue2) ( (aType)(aValue1) <= (aType)(aValue2) ? (aType)(aValue1) : (aType)(aValue2) ) 60 #endif 43 61 44 62 #include "svga3d_reg.h" … … 1429 1447 } 1430 1448 1449 #ifndef VBOX 1431 1450 /** 1432 1451 * struct svga3dsurface_mip - Mimpmap level information … … 1664 1683 loc->z = size->depth; 1665 1684 } 1685 #endif /* !VBOX */ 1666 1686 1667 1687 #endif /* _SVGA3D_SURFACEDEFS_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.