projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c036d13
)
r200: Add trace logging to r200PointSize.
author
Pauli Nieminen
<suokkos@gmail.com>
Fri, 5 Feb 2010 13:19:29 +0000
(15:19 +0200)
committer
Pauli Nieminen
<suokkos@gmail.com>
Fri, 5 Feb 2010 13:26:19 +0000
(15:26 +0200)
src/mesa/drivers/dri/r200/r200_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r200/r200_state.c
b/src/mesa/drivers/dri/r200/r200_state.c
index d6964484bf31a482e7616e070c626d7e22da977e..b9ec6f428f00d35cf60bedba7c26b3aaf5ca8e8e 100644
(file)
--- a/
src/mesa/drivers/dri/r200/r200_state.c
+++ b/
src/mesa/drivers/dri/r200/r200_state.c
@@
-595,6
+595,13
@@
static void r200PointSize( GLcontext *ctx, GLfloat size )
r200ContextPtr rmesa = R200_CONTEXT(ctx);
GLfloat *fcmd = (GLfloat *)rmesa->hw.ptp.cmd;
+ radeon_print(RADEON_STATE, RADEON_TRACE,
+ "%s(%p) size: %f, fixed point result: %d.%d (%d/16)\n",
+ __func__, ctx, size,
+ ((GLuint)(ctx->Point.Size * 16.0))/16,
+ (((GLuint)(ctx->Point.Size * 16.0))&15)*100/16,
+ ((GLuint)(ctx->Point.Size * 16.0))&15);
+
R200_STATECHANGE( rmesa, cst );
R200_STATECHANGE( rmesa, ptp );
rmesa->hw.cst.cmd[CST_RE_POINTSIZE] &= ~0xffff;