diff options
author | Eric Anholt <eric@anholt.net> | 2007-02-15 09:54:43 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-02-15 10:27:27 -0800 |
commit | 6e33c4c44030e05d6d07ca9274cfe4d6df2c0387 (patch) | |
tree | ffff6d0a4aabe05d9b9f47e3ec9b8fffd4754680 /src/i830_debug.c | |
parent | 4541150cdce3f2f83b8530d0863aecf28c6610a9 (diff) |
Print the correct meaning of bit 30 of pipeconf for 965 in debug output.
Diffstat (limited to 'src/i830_debug.c')
-rw-r--r-- | src/i830_debug.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/i830_debug.c b/src/i830_debug.c index e0be0a4a..6716eaab 100644 --- a/src/i830_debug.c +++ b/src/i830_debug.c @@ -69,8 +69,12 @@ DEBUGSTRING(i830_debug_dspcntr) DEBUGSTRING(i830_debug_pipeconf) { char *enabled = val & PIPEACONF_ENABLE ? "enabled" : "disabled"; - char *wide = val & PIPEACONF_DOUBLE_WIDE ? "double-wide" : "single-wide"; - return XNFprintf("%s, %s", enabled, wide); + char *bit30; + if (IS_I965G(pI830)) + bit30 = val & I965_PIPECONF_ACTIVE ? "active" : "inactive"; + else + bit30 = val & PIPEACONF_DOUBLE_WIDE ? "double-wide" : "single-wide"; + return XNFprintf("%s, %s", enabled, bit30); } DEBUGSTRING(i830_debug_hvtotal) |