summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/cubetexture9.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/nine/cubetexture9.c')
-rw-r--r--src/gallium/state_trackers/nine/cubetexture9.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/cubetexture9.c b/src/gallium/state_trackers/nine/cubetexture9.c
index 5ef09f74e2a..9f5d8e24d4a 100644
--- a/src/gallium/state_trackers/nine/cubetexture9.c
+++ b/src/gallium/state_trackers/nine/cubetexture9.c
@@ -42,6 +42,11 @@ NineCubeTexture9_ctor( struct NineCubeTexture9 *This,
D3DSURFACE_DESC sfdesc;
HRESULT hr;
+ DBG("This=%p pParams=%p EdgeLength=%u Levels=%u Usage=%d "
+ "Format=%d Pool=%d pSharedHandle=%p\n",
+ This, pParams, EdgeLength, Levels, Usage,
+ Format, Pool, pSharedHandle);
+
user_assert(!(Usage & D3DUSAGE_AUTOGENMIPMAP) ||
(Pool != D3DPOOL_SYSTEMMEM && Levels <= 1), D3DERR_INVALIDCALL);
@@ -135,6 +140,8 @@ NineCubeTexture9_GetLevelDesc( struct NineCubeTexture9 *This,
UINT Level,
D3DSURFACE_DESC *pDesc )
{
+ DBG("This=%p Level=%u pDesc=%p\n", This, Level, pDesc);
+
user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL);
user_assert(Level == 0 || !(This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP),
D3DERR_INVALIDCALL);
@@ -152,6 +159,9 @@ NineCubeTexture9_GetCubeMapSurface( struct NineCubeTexture9 *This,
{
const unsigned s = Level * 6 + FaceType;
+ DBG("This=%p FaceType=%d Level=%u ppCubeMapSurface=%p\n",
+ This, FaceType, Level, ppCubeMapSurface);
+
user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL);
user_assert(Level == 0 || !(This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP),
D3DERR_INVALIDCALL);
@@ -173,6 +183,9 @@ NineCubeTexture9_LockRect( struct NineCubeTexture9 *This,
{
const unsigned s = Level * 6 + FaceType;
+ DBG("This=%p FaceType=%d Level=%u pLockedRect=%p pRect=%p Flags=%d\n",
+ This, FaceType, Level, pLockedRect, pRect, Flags);
+
user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL);
user_assert(Level == 0 || !(This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP),
D3DERR_INVALIDCALL);
@@ -188,6 +201,8 @@ NineCubeTexture9_UnlockRect( struct NineCubeTexture9 *This,
{
const unsigned s = Level * 6 + FaceType;
+ DBG("This=%p FaceType=%d Level=%u\n", This, FaceType, Level);
+
user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL);
user_assert(FaceType < 6, D3DERR_INVALIDCALL);
@@ -199,6 +214,8 @@ NineCubeTexture9_AddDirtyRect( struct NineCubeTexture9 *This,
D3DCUBEMAP_FACES FaceType,
const RECT *pDirtyRect )
{
+ DBG("This=%p FaceType=%d pDirtyRect=%p\n", This, FaceType, pDirtyRect);
+
user_assert(FaceType < 6, D3DERR_INVALIDCALL);
if (This->base.base.pool != D3DPOOL_MANAGED) {