On Thu, May 30, 2013 at 3:03 PM, Zack Rusin <span dir="ltr"><<a href="mailto:zackr@vmware.com" target="_blank">zackr@vmware.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It was changed from 0 to allow shader outputs at 0 that are<br>
different from position.<br>
<br>
Signed-off-by: Zack Rusin <<a href="mailto:zackr@vmware.com">zackr@vmware.com</a>><br>
---<br>
src/gallium/drivers/softpipe/sp_state_derived.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/gallium/drivers/softpipe/sp_state_derived.c b/src/gallium/drivers/softpipe/sp_state_derived.c<br>
index 93cd38e..6115349 100644<br>
--- a/src/gallium/drivers/softpipe/sp_state_derived.c<br>
+++ b/src/gallium/drivers/softpipe/sp_state_derived.c<br>
@@ -127,7 +127,7 @@ softpipe_get_vertex_info(struct softpipe_context *softpipe)<br>
src = draw_find_shader_output(softpipe->draw,<br>
fsInfo->input_semantic_name[i],<br>
fsInfo->input_semantic_index[i]);<br>
- if (fsInfo->input_semantic_name[i] == TGSI_SEMANTIC_COLOR && src == 0)<br>
+ if (fsInfo->input_semantic_name[i] == TGSI_SEMANTIC_COLOR && src == -1)<br>
/* try and find a bcolor */<br>
src = draw_find_shader_output(softpipe->draw,<br>
TGSI_SEMANTIC_BCOLOR, fsInfo->input_semantic_index[i]);<br>
<span class="HOEnZb"><font color="#888888"><br><br></font></span></blockquote><div>Reviewed-by: Brian Paul <<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>><br> <br></div></div><br>