VBoxVideoWddm.h revision 92c6075e59a61be1eb07bf370501a93e6cd2d6ca
/*
* Copyright (C) 2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___VBoxVideoWddm_h___
#define ___VBoxVideoWddm_h___
#include "../VBoxVideo.h"
//#define VBOXWDDM_DEBUG_VIDPN
/* one page size */
#define VBOXWDDM_C_DMA_BUFFER_SIZE 0x1000
#define VBOXWDDM_C_DMA_PRIVATEDATA_SIZE 0x4000
#define VBOXWDDM_C_ALLOC_LIST_SIZE 0xc00
#define VBOXWDDM_C_PATH_LOCATION_LIST_SIZE 0xc00
#define VBOXWDDM_C_POINTER_MAX_WIDTH 64
#define VBOXWDDM_C_POINTER_MAX_HEIGHT 64
#ifdef VBOX_WITH_VDMA
#endif
#ifndef VBOXWDDM_RENDER_FROM_SHADOW
# ifndef VBOX_WITH_VDMA
# error "VBOX_WITH_VDMA must be defined!!!"
# endif
#endif
#ifndef DEBUG_misha
# ifdef Assert
# endif
# ifdef AssertBreakpoint
# define AssertBreakpoint() do{}while(0)
# endif
# ifdef AssertFailed
# define AssertFailed() do{}while(0)
# endif
#endif
/* allocation */
//#define VBOXWDDM_ALLOCATIONINDEX_VOID (~0U)
typedef struct VBOXWDDM_ALLOCATION
{
struct VBOXWDDM_SWAPCHAIN *pSwapchain;
// VBOXWDDM_ALLOCUSAGE_TYPE enmCurrentUsage;
#ifdef VBOX_WITH_VIDEOHWACCEL
#endif
struct VBOXWDDM_RESOURCE *pResource;
/* to return to the Runtime on DxgkDdiCreateAllocation */
union
{
};
typedef struct VBOXWDDM_RESOURCE
{
{
#if 0
return NULL;
PVBOXWDDM_RESOURCE pRc = (PVBOXWDDM_RESOURCE)(((uint8_t*)pAlloc) - RT_OFFSETOF(VBOXWDDM_RESOURCE, aAllocations[pAlloc->iIndex]));
return pRc;
#else
#endif
}
typedef struct VBOXWDDM_OVERLAY
{
typedef enum
{
typedef struct VBOXWDDM_DEVICE
{
VBOXWDDM_DEVICE_TYPE enmType; /* device creation flags passed to DxgkDdiCreateDevice, not sure we need it */
typedef enum
{
typedef struct VBOXWDDM_SWAPCHAIN
{
struct VBOXWDDM_CONTEXT *pContext;
typedef struct VBOXWDDM_CONTEXT
{
// LIST_ENTRY ListEntry;
struct VBOXWDDM_DEVICE * pDevice;
// UINT uLastCompletedCmdFenceId;
#define VBOXWDDMENTRY_2_SWAPCHAIN(_pE) ((PVBOXWDDM_SWAPCHAIN)((uint8_t*)(_pE) - RT_OFFSETOF(VBOXWDDM_SWAPCHAIN, DevExtListEntry)))
typedef struct VBOXWDDM_DMA_PRIVATEDATA_PRESENTHDR
{
#ifdef VBOXWDDM_RENDER_FROM_SHADOW
typedef struct VBOXWDDM_DMA_PRIVATEDATA_SHADOW2PRIMARY
{
#endif
typedef struct VBOXWDDM_DMA_PRIVATEDATA_BLT
{
typedef struct VBOXWDDM_DMA_PRIVATEDATA_FLIP
{
typedef struct VBOXWDDM_DMA_PRIVATEDATA_CLRFILL
{
typedef struct VBOXWDDM_UHGSMI_BUFFER_SUBMIT_INFO
{
typedef struct VBOXWDDM_DMA_PRIVATEDATA_CHROMIUM_CMD
{
typedef struct VBOXWDDM_OPENALLOCATION
{
#ifdef VBOXWDDM_RENDER_FROM_SHADOW
#else
#endif
#define VBOXWDDM_MAX_VIDEOMODES 128
typedef struct VBOXWDDM_VIDEOMODES_INFO
{
#endif /* #ifndef ___VBoxVideoWddm_h___ */