r300g: do not advertise color_buffer_float on r300 and r400
authorMarek Olšák <maraeo@gmail.com>
Fri, 22 Apr 2011 18:19:38 +0000 (20:19 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 22 Apr 2011 18:25:24 +0000 (20:25 +0200)
It seems they can't do unclamped vertex colors. Tested on RV350.

src/gallium/drivers/r300/r300_screen.c

index 13344a226d7934a6e8651ae2b29e16313b63c3e5..9ec16c6562feebed9894b74ae2ba3f1ea4099d1d 100644 (file)
@@ -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: