vhwa.c revision fbcf1a540e475531bb223d48c7ddffd643ec1d72
/* $Id$ */
/** @file
* VBoxGuest -- VirtualBox Win 2000/XP guest display driver
*
* Video HW Acceleration support functions.
*/
/*
* Copyright (C) 2009 Sun Microsystems, Inc.
*
* 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#include "driver.h"
#include "dd.h"
#include <winerror.h>
#define MEMTAG 'AWHV'
{
}
{
}
#define VBOXVHWA_SUPPORTED_CAPS ( \
)
#define VBOXVHWA_SUPPORTED_SCAPS ( \
)
#define VBOXVHWA_SUPPORTED_SCAPS2 ( \
)
#define VBOXVHWA_SUPPORTED_PF ( \
| VBOXVHWA_PF_YUV \
)
#define VBOXVHWA_SUPPORTED_SD ( \
| VBOXVHWA_SD_CAPS \
)
#define VBOXVHWA_SUPPORTED_CKEYCAPS ( \
)
#define VBOXVHWA_SUPPORTED_CKEY ( \
)
#define VBOXVHWA_SUPPORTED_OVER ( \
)
void vboxVHWAInit()
{
}
void vboxVHWATerm()
{
}
{
return caps & (~VBOXVHWA_SUPPORTED_CAPS);
}
{
return caps & (~VBOXVHWA_SUPPORTED_SCAPS);
}
{
return caps & (~VBOXVHWA_SUPPORTED_PF);
}
{
return caps & (~VBOXVHWA_SUPPORTED_SD);
}
{
return caps & (~VBOXVHWA_SUPPORTED_CKEYCAPS);
}
{
return caps & (VBOXVHWA_SUPPORTED_CKEYCAPS);
}
{
return caps & (VBOXVHWA_SUPPORTED_CAPS);
}
{
return caps & (VBOXVHWA_SUPPORTED_SCAPS);
}
{
return caps & (VBOXVHWA_SUPPORTED_PF);
}
{
return caps & (VBOXVHWA_SUPPORTED_SD);
}
{
return caps & (VBOXVHWA_SUPPORTED_OVER);
}
{
return caps & (~VBOXVHWA_SUPPORTED_OVER);
}
{
return caps & (VBOXVHWA_SUPPORTED_CKEY);
}
{
return caps & (~VBOXVHWA_SUPPORTED_CKEY);
}
{
//TODO: fxFlags
}
{
return caps;
}
{
return caps;
}
{
return caps;
}
{
return caps;
}
{
return caps;
}
{
return caps;
}
{
return caps;
}
{
return caps;
}
{
return caps;
}
{
return caps;
}
{
return caps;
}
{
return caps;
}
{
// pVHWABlt->flags;
// uint32_t rop;
// uint32_t rotationOp;
// uint32_t rotation;
}
{
if(unsup)
return VERR_GENERAL_FAILURE;
return VINF_SUCCESS;
}
{
}
{
if(unsupds)
return VERR_GENERAL_FAILURE;
{
}
{
if(unsup)
return VERR_GENERAL_FAILURE;
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
if(RT_FAILURE(rc))
return rc;
}
return VINF_SUCCESS;
}
{
// Assert(pSrc->left <= pSrc->right);
// Assert(pSrc->top <= pSrc->bottom);
}
{
}
{
}
{
}
{
}
{
return false;
}
{
return false;
}
{
return true;
}
{
if(vboxVHWARectIsEmpty(pRect))
{
}
else
{
}
}
{
if(vboxVHWARectIsEmpty(pRect))
{
return;
}
{
}
else
{
}
}
{
}
{
}
{
}
{
return;
{
if(t < b)
{
}
else
{
}
}
{
if(l < r)
{
}
else
{
}
}
}