diff options
author | Marek Olšák <[email protected]> | 2010-10-22 19:45:05 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-10-22 20:34:27 +0200 |
commit | 1d96ad67bc7927eb314d497e30cfd4eb3cfbb9ea (patch) | |
tree | ad3ac4c4ba90813e95d165559712cc1039e5fd05 /src/gallium/drivers/r300/r300_screen.c | |
parent | dd2499b484b34e7efb8800f57c915c2f62ab1db4 (diff) |
r300g: do not print get_param errors in non-debug build
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_screen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index b448924f85e..963fa8fcd08 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -154,8 +154,8 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_TGSI_FS_COORD_PIXEL_CENTER_INTEGER: return 0; default: - fprintf(stderr, "r300: Implementation error: Bad param %d\n", - param); + debug_printf("r300: Warning: Unknown CAP %d in get_param.\n", + param); return 0; } } @@ -265,8 +265,8 @@ static float r300_get_paramf(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_MAX_TEXTURE_LOD_BIAS: return 16.0f; default: - fprintf(stderr, "r300: Implementation error: Bad paramf %d\n", - param); + debug_printf("r300: Warning: Unknown CAP %d in get_paramf.\n", + param); return 0.0f; } } |