<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Reviewed-by: Tim Rowley <<a href="mailto:timothy.o.rowley@intel.com" class="">timothy.o.rowley@intel.com</a>>
<div class=""><br class="">
<div style="">
<blockquote type="cite" class="">
<div class="">On Nov 14, 2016, at 7:03 PM, Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">There is no functionality in swr to clamp either vertex or frag colors.<br class="">
This could be added in swr_shader, at which point these could be<br class="">
re-enabled.<br class="">
<br class="">
Fixes arb_color_buffer_float-render<br class="">
<br class="">
Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>><br class="">
---<br class="">
src/gallium/drivers/swr/swr_screen.cpp | 5 +++--<br class="">
1 file changed, 3 insertions(+), 2 deletions(-)<br class="">
<br class="">
diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp<br class="">
index e52f8d2..0b1d61d 100644<br class="">
--- a/src/gallium/drivers/swr/swr_screen.cpp<br class="">
+++ b/src/gallium/drivers/swr/swr_screen.cpp<br class="">
@@ -235,8 +235,9 @@ swr_get_param(struct pipe_screen *screen, enum pipe_cap param)<br class="">
case PIPE_CAP_TEXTURE_BARRIER:<br class="">
return 0;<br class="">
case PIPE_CAP_FRAGMENT_COLOR_CLAMPED:<br class="">
- case PIPE_CAP_VERTEX_COLOR_UNCLAMPED: /* draw module */<br class="">
- case PIPE_CAP_VERTEX_COLOR_CLAMPED: /* draw module */<br class="">
+ case PIPE_CAP_VERTEX_COLOR_CLAMPED:<br class="">
+ return 0;<br class="">
+ case PIPE_CAP_VERTEX_COLOR_UNCLAMPED:<br class="">
return 1;<br class="">
case PIPE_CAP_MIXED_COLORBUFFER_FORMATS:<br class="">
return 1;<br class="">
-- <br class="">
2.7.3<br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>