Mesa (master): r300g: do not advertise color_buffer_float on r300 and r400
Marek Olšák
mareko at kemper.freedesktop.org
Fri Apr 22 18:25:45 UTC 2011
Module: Mesa
Branch: master
Commit: 72239d16cd08113e994ea3508f91193c682b0930
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=72239d16cd08113e994ea3508f91193c682b0930
Author: Marek Olšák <maraeo at gmail.com>
Date: Fri Apr 22 20:19:38 2011 +0200
r300g: do not advertise color_buffer_float on r300 and r400
It seems they can't do unclamped vertex colors. Tested on RV350.
---
src/gallium/drivers/r300/r300_screen.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index 13344a2..9ec16c6 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -114,7 +114,7 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
case PIPE_CAP_BLEND_EQUATION_SEPARATE:
case PIPE_CAP_VERTEX_ELEMENT_INSTANCE_DIVISOR:
case PIPE_CAP_FRAGMENT_COLOR_CLAMP_CONTROL:
- return 1;
+ return is_r500 ? 1 : 0;
case PIPE_CAP_TEXTURE_SWIZZLE:
return util_format_s3tc_enabled ? r300screen->caps.dxtc_swizzle : 1;
case PIPE_CAP_MIXED_COLORBUFFER_FORMATS:
More information about the mesa-commit
mailing list