svga: return 1 for PIPE_CAP_VERTEX_COLOR_UNCLAMPED query
authorBrian Paul <brianp@vmware.com>
Wed, 4 Apr 2012 22:04:00 +0000 (16:04 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 6 Apr 2012 20:10:50 +0000 (14:10 -0600)
commitd7707ef5a554ca0a1ec17b9491055e8c8db570c4
tree73f1d4ec53f37b8aade0aa32b5c7d5edf6e474d8
parent0adc5d9cfdd94bc5cbc3d45b9ada3d13ac4adb7c
svga: return 1 for PIPE_CAP_VERTEX_COLOR_UNCLAMPED query

Before, we weren't clamping the vertex colors produced by ARB vertex
programs.  This could result in some rendering being too bright (in
ETQW, for example).

Also add cases for PIPE_CAP_VERTEX_COLOR_CLAMPED and
PIPE_CAP_FRAGMENT_COLOR_CLAMPED with comments to be complete.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_screen.c