diff options
author | Axel Davy <[email protected]> | 2018-09-22 10:51:20 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2018-09-25 22:05:24 +0200 |
commit | 59aaeeb730859242f7c201976b05500a6af41544 (patch) | |
tree | 138b714f181b9c4bb9c32d423b81bef98611127d /src | |
parent | d9da0a1f6d480ebdb4ef9635c93efbb977f7d464 (diff) |
st/nine: Print transform matrices in debug
This is useful to see the matrices content
in the log to debug.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 150f5e3e05e..293f63bd7b7 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -1967,6 +1967,19 @@ NineDevice9_Clear( struct NineDevice9 *This, return D3D_OK; } +static void +nine_D3DMATRIX_print(const D3DMATRIX *M) +{ + DBG("\n(%f %f %f %f)\n" + "(%f %f %f %f)\n" + "(%f %f %f %f)\n" + "(%f %f %f %f)\n", + M->m[0][0], M->m[0][1], M->m[0][2], M->m[0][3], + M->m[1][0], M->m[1][1], M->m[1][2], M->m[1][3], + M->m[2][0], M->m[2][1], M->m[2][2], M->m[2][3], + M->m[3][0], M->m[3][1], M->m[3][2], M->m[3][3]); +} + HRESULT NINE_WINAPI NineDevice9_SetTransform( struct NineDevice9 *This, D3DTRANSFORMSTATETYPE State, @@ -1978,6 +1991,7 @@ NineDevice9_SetTransform( struct NineDevice9 *This, DBG("This=%p State=%d pMatrix=%p\n", This, State, pMatrix); user_assert(M, D3DERR_INVALIDCALL); + nine_D3DMATRIX_print(pMatrix); *M = *pMatrix; if (unlikely(This->is_recording)) { |