mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 20:00:11 +01:00
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>
This commit is contained in:
parent
0adc5d9cfd
commit
d7707ef5a5
1 changed files with 7 additions and 0 deletions
|
|
@ -203,6 +203,13 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
case PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION:
|
||||
return 0;
|
||||
|
||||
case PIPE_CAP_VERTEX_COLOR_UNCLAMPED:
|
||||
return 1; /* The color outputs of vertex shaders are not clamped */
|
||||
case PIPE_CAP_VERTEX_COLOR_CLAMPED:
|
||||
return 0; /* The driver can't clamp vertex colors */
|
||||
case PIPE_CAP_FRAGMENT_COLOR_CLAMPED:
|
||||
return 0; /* The driver can't clamp fragment colors */
|
||||
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue