瀏覽代碼

r200: Add trace logging to r200PointSize.

tags/7.8-rc1
Pauli Nieminen 15 年之前
父節點
當前提交
05b0408489
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. 7
    0
      src/mesa/drivers/dri/r200/r200_state.c

+ 7
- 0
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;

Loading…
取消
儲存