VirtualBox

Changeset 94582 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 13, 2022 5:58:45 AM (3 years ago)
Author:
vboxsync
Message:

Devices/Graphics/vmsvga_include: VBox modifications. bugref:9830

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/vmsvga_include/svga3d_surfacedefs.h

    r94581 r94582  
    3939#include "includeCheck.h"
    4040
     41#ifndef VBOX
    4142#include <linux/kernel.h>
    4243#include <drm/vmwgfx_drm.h>
     44#else
     45#include "svga_types.h"
     46typedef uint8_t u8;
     47typedef uint32_t u32;
     48struct 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
    4361
    4462#include "svga3d_reg.h"
     
    14291447}
    14301448
     1449#ifndef VBOX
    14311450/**
    14321451 * struct svga3dsurface_mip - Mimpmap level information
     
    16641683        loc->z = size->depth;
    16651684}
     1685#endif /* !VBOX */
    16661686
    16671687#endif /* _SVGA3D_SURFACEDEFS_H_ */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette