VirtualBox

Changeset 24646 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 13, 2009 4:47:47 PM (15 years ago)
Author:
vboxsync
Message:

2d accel:

  1. performmance: avoid separate drawing of primary surface texture
  2. profiling: fps counter
  3. saved state restore fix
  4. make vhwa command constants values match ddraw contstants
  5. guest driver: set proper ddRVal in DdUnlock
  6. guest driver: return proper value in DdDestroySurface
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxVideo.h

    r24164 r24646  
    261261#define VBOXVHWA_VERSION_MAJ 0
    262262#define VBOXVHWA_VERSION_MIN 0
    263 #define VBOXVHWA_VERSION_BLD 3
     263#define VBOXVHWA_VERSION_BLD 5
    264264#define VBOXVHWA_VERSION_RSV 0
    265265
     
    418418} VBOXVHWA_OVERLAYFX;
    419419
    420 #define VBOXVHWA_CAPS_BLT             0x00000001
    421 #define VBOXVHWA_CAPS_BLTCOLORFILL    0x00000002
    422 #define VBOXVHWA_CAPS_BLTFOURCC       0x00000004
    423 #define VBOXVHWA_CAPS_BLTSTRETCH      0x00000008
    424 #define VBOXVHWA_CAPS_BLTQUEUE        0x00000010
    425 
    426 #define VBOXVHWA_CAPS_OVERLAY         0x00000100
    427 #define VBOXVHWA_CAPS_OVERLAYFOURCC   0x00000200
    428 #define VBOXVHWA_CAPS_OVERLAYSTRETCH  0x00000400
    429 #define VBOXVHWA_CAPS_OVERLAYCANTCLIP 0x00000800
    430 
    431 #define VBOXVHWA_CAPS_COLORKEY        0x00010000
    432 #define VBOXVHWA_CAPS_COLORKEYHWASSIST         0x00020000
    433 
    434 
    435 #define VBOXVHWA_SCAPS_FLIP             0x00000001
    436 #define VBOXVHWA_SCAPS_PRIMARYSURFACE   0x00000002
    437 #define VBOXVHWA_SCAPS_OFFSCREENPLAIN   0x00000004
    438 #define VBOXVHWA_SCAPS_OVERLAY          0x00000008
    439 #define VBOXVHWA_SCAPS_VISIBLE          0x00000010
    440 #define VBOXVHWA_SCAPS_VIDEOMEMORY      0x00000020
    441 #define VBOXVHWA_SCAPS_LOCALVIDMEM      0x00000040
    442 #define VBOXVHWA_SCAPS_COMPLEX          0x00000080
    443 
    444 
    445 #define VBOXVHWA_PF_RGB                 0x00000001
    446 #define VBOXVHWA_PF_RGBTOYUV            0x00000002
    447 #define VBOXVHWA_PF_YUV                 0x00000008
    448 #define VBOXVHWA_PF_FOURCC              0x00000010
    449 
    450 #define VBOXVHWA_LOCK_DISCARDCONTENTS   0x00000001
     420#define VBOXVHWA_CAPS_BLT               0x00000040
     421#define VBOXVHWA_CAPS_BLTCOLORFILL      0x04000000
     422#define VBOXVHWA_CAPS_BLTFOURCC         0x00000100
     423#define VBOXVHWA_CAPS_BLTSTRETCH        0x00000200
     424#define VBOXVHWA_CAPS_BLTQUEUE          0x00000080
     425
     426#define VBOXVHWA_CAPS_OVERLAY           0x00000800
     427#define VBOXVHWA_CAPS_OVERLAYFOURCC     0x00002000
     428#define VBOXVHWA_CAPS_OVERLAYSTRETCH    0x00004000
     429#define VBOXVHWA_CAPS_OVERLAYCANTCLIP   0x00001000
     430
     431#define VBOXVHWA_CAPS_COLORKEY          0x00400000
     432#define VBOXVHWA_CAPS_COLORKEYHWASSIST  0x01000000
     433
     434#define VBOXVHWA_SCAPS_BACKBUFFER       0x00000004
     435#define VBOXVHWA_SCAPS_COMPLEX          0x00000008
     436#define VBOXVHWA_SCAPS_FLIP             0x00000010
     437#define VBOXVHWA_SCAPS_FRONTBUFFER      0x00000020
     438#define VBOXVHWA_SCAPS_OFFSCREENPLAIN   0x00000040
     439#define VBOXVHWA_SCAPS_OVERLAY          0x00000080
     440#define VBOXVHWA_SCAPS_PRIMARYSURFACE   0x00000200
     441#define VBOXVHWA_SCAPS_SYSTEMMEMORY     0x00000800
     442#define VBOXVHWA_SCAPS_VIDEOMEMORY      0x00004000
     443#define VBOXVHWA_SCAPS_VISIBLE          0x00008000
     444#define VBOXVHWA_SCAPS_LOCALVIDMEM      0x10000000
     445
     446#define VBOXVHWA_PF_RGB                 0x00000040
     447#define VBOXVHWA_PF_RGBTOYUV            0x00000100
     448#define VBOXVHWA_PF_YUV                 0x00000200
     449#define VBOXVHWA_PF_FOURCC              0x00000004
     450
     451#define VBOXVHWA_LOCK_DISCARDCONTENTS   0x00002000
    451452
    452453#define VBOXVHWA_CFG_ENABLED            0x00000001
    453454
    454 #define VBOXVHWA_SD_BACKBUFFERCOUNT     0x00000001
    455 #define VBOXVHWA_SD_CAPS                0x00000002
    456 #define VBOXVHWA_SD_CKDESTBLT           0x00000004
    457 #define VBOXVHWA_SD_CKDESTOVERLAY       0x00000008
    458 #define VBOXVHWA_SD_CKSRCBLT            0x00000010
    459 #define VBOXVHWA_SD_CKSRCOVERLAY        0x00000020
    460 #define VBOXVHWA_SD_HEIGHT              0x00000040
    461 #define VBOXVHWA_SD_PITCH               0x00000080
    462 #define VBOXVHWA_SD_PIXELFORMAT         0x00000100
    463 //#define VBOXVHWA_SD_REFRESHRATE       0x00000200
    464 #define VBOXVHWA_SD_WIDTH               0x00000400
     455#define VBOXVHWA_SD_BACKBUFFERCOUNT     0x00000020
     456#define VBOXVHWA_SD_CAPS                0x00000001
     457#define VBOXVHWA_SD_CKDESTBLT           0x00004000
     458#define VBOXVHWA_SD_CKDESTOVERLAY       0x00002000
     459#define VBOXVHWA_SD_CKSRCBLT            0x00010000
     460#define VBOXVHWA_SD_CKSRCOVERLAY        0x00008000
     461#define VBOXVHWA_SD_HEIGHT              0x00000002
     462#define VBOXVHWA_SD_PITCH               0x00000008
     463#define VBOXVHWA_SD_PIXELFORMAT         0x00001000
     464//#define VBOXVHWA_SD_REFRESHRATE       0x00040000
     465#define VBOXVHWA_SD_WIDTH               0x00000004
    465466
    466467#define VBOXVHWA_CKEYCAPS_DESTBLT                  0x00000001
     
    473474#define VBOXVHWA_CKEYCAPS_DESTOVERLAYONEACTIVE     0x00000080
    474475#define VBOXVHWA_CKEYCAPS_DESTOVERLAYYUV           0x00000100
    475 #define VBOXVHWA_CKEYCAPS_NOCOSTOVERLAY            0x00000200
    476 #define VBOXVHWA_CKEYCAPS_SRCBLT                   0x00000400
    477 #define VBOXVHWA_CKEYCAPS_SRCBLTCLRSPACE           0x00000800
    478 #define VBOXVHWA_CKEYCAPS_SRCBLTCLRSPACEYUV        0x00001000
    479 #define VBOXVHWA_CKEYCAPS_SRCBLTYUV                0x00002000
    480 #define VBOXVHWA_CKEYCAPS_SRCOVERLAY               0x00004000
    481 #define VBOXVHWA_CKEYCAPS_SRCOVERLAYCLRSPACE       0x00008000
    482 #define VBOXVHWA_CKEYCAPS_SRCOVERLAYCLRSPACEYUV    0x00010000
    483 #define VBOXVHWA_CKEYCAPS_SRCOVERLAYONEACTIVE      0x00020000
    484 #define VBOXVHWA_CKEYCAPS_SRCOVERLAYYUV            0x00040000
    485 
     476#define VBOXVHWA_CKEYCAPS_SRCBLT                   0x00000200
     477#define VBOXVHWA_CKEYCAPS_SRCBLTCLRSPACE           0x00000400
     478#define VBOXVHWA_CKEYCAPS_SRCBLTCLRSPACEYUV        0x00000800
     479#define VBOXVHWA_CKEYCAPS_SRCBLTYUV                0x00001000
     480#define VBOXVHWA_CKEYCAPS_SRCOVERLAY               0x00002000
     481#define VBOXVHWA_CKEYCAPS_SRCOVERLAYCLRSPACE       0x00004000
     482#define VBOXVHWA_CKEYCAPS_SRCOVERLAYCLRSPACEYUV    0x00008000
     483#define VBOXVHWA_CKEYCAPS_SRCOVERLAYONEACTIVE      0x00010000
     484#define VBOXVHWA_CKEYCAPS_SRCOVERLAYYUV            0x00020000
     485#define VBOXVHWA_CKEYCAPS_NOCOSTOVERLAY            0x00040000
    486486
    487487#define VBOXVHWA_BLT_COLORFILL                      0x00000400
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