summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephane Marchesin <[email protected]>2006-11-19 22:16:54 +0000
committerStephane Marchesin <[email protected]>2006-11-19 22:16:54 +0000
commitfe2e6100ece780437c622c8469efbec2b98f7a6f (patch)
tree8ddad4e8edad1715993d5a1624958f443b5fb245 /src
parenta8d34992eac7650aff3d1a2f935ff6369684bc24 (diff)
More fifo debug fixes
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_fifo.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fifo.h b/src/mesa/drivers/dri/nouveau/nouveau_fifo.h
index 92acc002d98..b738fa8ee1c 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_fifo.h
+++ b/src/mesa/drivers/dri/nouveau/nouveau_fifo.h
@@ -32,7 +32,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "nouveau_context.h"
#include "nouveau_ctrlreg.h"
-#define NOUVEAU_RING_DEBUG
+//#define NOUVEAU_RING_DEBUG
#define NV_READ(reg) *(volatile u_int32_t *)(nmesa->mmio + (reg))
@@ -59,15 +59,16 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifdef NOUVEAU_RING_DEBUG
#define OUT_RINGp(ptr,sz) do { \
-int i; printf("OUT_RINGp:\n"); for(i=0;i<sz;i+=4) printf(" 0x%8x\n", ptr+sz); \
+uint32_t* p=(uint32_t*)ptr; \
+int i; printf("OUT_RINGp:\n"); for(i=0;i<sz;i++) printf(" 0x%08x\n", *(p+i)); \
}while(0)
#define OUT_RING(n) do { \
- printf("OUT_RINGn: 0x%8x\n", n); \
+ printf("OUT_RINGn: 0x%08x\n", n); \
}while(0)
#define OUT_RINGf(n) do { \
- printf("OUT_RINGf: 0x%8x\n", n); \
+ printf("OUT_RINGf: 0x%08x\n", n); \
}while(0)
#else