diff options
author | Zack Rusin <[email protected]> | 2013-05-30 17:01:19 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2013-05-30 19:54:25 -0400 |
commit | e54c924a0e9b9a504eae1eb68daaf51f21689629 (patch) | |
tree | ce8da8af00012ffc5ecd1e585abe7d4fd00cac6a | |
parent | 124e1f91a7c50e186d0cd87ff92d534d8f5f5a91 (diff) |
softpipe: draw_find_shader_output returns -1 on invalid outputs
It was changed from 0 to allow shader outputs at 0 that are
different from position.
Signed-off-by: Zack Rusin <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
-rw-r--r-- | src/gallium/drivers/softpipe/sp_state_derived.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state_derived.c b/src/gallium/drivers/softpipe/sp_state_derived.c index 93cd38ee7a4..61153494c5b 100644 --- a/src/gallium/drivers/softpipe/sp_state_derived.c +++ b/src/gallium/drivers/softpipe/sp_state_derived.c @@ -127,7 +127,7 @@ softpipe_get_vertex_info(struct softpipe_context *softpipe) src = draw_find_shader_output(softpipe->draw, fsInfo->input_semantic_name[i], fsInfo->input_semantic_index[i]); - if (fsInfo->input_semantic_name[i] == TGSI_SEMANTIC_COLOR && src == 0) + if (fsInfo->input_semantic_name[i] == TGSI_SEMANTIC_COLOR && src == -1) /* try and find a bcolor */ src = draw_find_shader_output(softpipe->draw, TGSI_SEMANTIC_BCOLOR, fsInfo->input_semantic_index[i]); |