diff options
author | Ilia Mirkin <[email protected]> | 2016-11-13 09:20:03 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-11-15 20:26:32 -0500 |
commit | dafffd2f11889fa1d04149cb1f797ccfb06e2f05 (patch) | |
tree | 81b794d36adcaa691dcb0e260660a940fffde580 /src/gallium/drivers/swr | |
parent | 2b6b15ab3fbf8aea268296269843344d111a1340 (diff) |
swr: mark color clamping as unsupported
There is no functionality in swr to clamp either vertex or frag colors.
This could be added in swr_shader, at which point these could be
re-enabled.
Fixes arb_color_buffer_float-render
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r-- | src/gallium/drivers/swr/swr_screen.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp index accd6a2bad8..0c8f5dbd54b 100644 --- a/src/gallium/drivers/swr/swr_screen.cpp +++ b/src/gallium/drivers/swr/swr_screen.cpp @@ -233,8 +233,9 @@ swr_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_TEXTURE_BARRIER: return 0; case PIPE_CAP_FRAGMENT_COLOR_CLAMPED: - case PIPE_CAP_VERTEX_COLOR_UNCLAMPED: /* draw module */ - case PIPE_CAP_VERTEX_COLOR_CLAMPED: /* draw module */ + case PIPE_CAP_VERTEX_COLOR_CLAMPED: + return 0; + case PIPE_CAP_VERTEX_COLOR_UNCLAMPED: return 1; case PIPE_CAP_MIXED_COLORBUFFER_FORMATS: return 1; |