summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/volumetexture9.c
diff options
context:
space:
mode:
authorStanislaw Halik <[email protected]>2014-11-25 00:38:04 +0100
committerEmil Velikov <[email protected]>2014-11-26 20:09:11 +0000
commit7f74b9d47928979fdad445db1e0f249688c62991 (patch)
tree11f70b726110cce2c3d30744f3a82ea69dedbeed /src/gallium/state_trackers/nine/volumetexture9.c
parent6aeae7442d1d5a8b1ff77b6f50f4ac7333cd22b0 (diff)
st/nine: call DBG() at more external entry points
Cc: "10.4" <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Reviewed-by: David Heidelberg <[email protected]> Reviewed-by: Axel Davy <[email protected]> Signed-off-by: Stanislaw Halik <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/volumetexture9.c')
-rw-r--r--src/gallium/state_trackers/nine/volumetexture9.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/volumetexture9.c b/src/gallium/state_trackers/nine/volumetexture9.c
index a35d3f7917a..9366dc95a14 100644
--- a/src/gallium/state_trackers/nine/volumetexture9.c
+++ b/src/gallium/state_trackers/nine/volumetexture9.c
@@ -41,6 +41,11 @@ NineVolumeTexture9_ctor( struct NineVolumeTexture9 *This,
D3DVOLUME_DESC voldesc;
HRESULT hr;
+ DBG("This=%p pParams=%p Width=%u Height=%u Depth=%u Levels=%u "
+ "Usage=%d Format=%d Pool=%d pSharedHandle=%p\n",
+ This, pParams, Width, Height, Depth, Levels,
+ Usage, Format, Pool, pSharedHandle);
+
/* An IDirect3DVolume9 cannot be bound as a render target can it ? */
user_assert(!(Usage & (D3DUSAGE_RENDERTARGET | D3DUSAGE_DEPTHSTENCIL)),
D3DERR_INVALIDCALL);
@@ -156,6 +161,9 @@ NineVolumeTexture9_LockBox( struct NineVolumeTexture9 *This,
const D3DBOX *pBox,
DWORD Flags )
{
+ DBG("This=%p Level=%u pLockedVolume=%p pBox=%p Flags=%d\n",
+ This, Level, pLockedVolume, pBox, Flags);
+
user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL);
user_assert(Level == 0 || !(This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP),
D3DERR_INVALIDCALL);
@@ -168,6 +176,8 @@ HRESULT WINAPI
NineVolumeTexture9_UnlockBox( struct NineVolumeTexture9 *This,
UINT Level )
{
+ DBG("This=%p Level=%u\n", This, Level);
+
user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL);
return NineVolume9_UnlockBox(This->volumes[Level]);
@@ -177,6 +187,8 @@ HRESULT WINAPI
NineVolumeTexture9_AddDirtyBox( struct NineVolumeTexture9 *This,
const D3DBOX *pDirtyBox )
{
+ DBG("This=%p pDirtybox=%p\n", This, pDirtyBox);
+
if (This->base.base.pool != D3DPOOL_MANAGED) {
if (This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP)
This->base.dirty_mip = TRUE;