Get rid of _mesa_vert_result_to_frag_attrib().
authorPaul Berry <stereotype441@gmail.com>
Sat, 23 Feb 2013 16:28:18 +0000 (08:28 -0800)
committerPaul Berry <stereotype441@gmail.com>
Fri, 15 Mar 2013 16:25:57 +0000 (09:25 -0700)
commit10a131211ef18fa1d368dee394045df945dcbb6e
tree843962c13b6282be5fa0b9b3fa7f952d115887a6
parent827c074fb1e3c138363673896777009f96a76bd8
Get rid of _mesa_vert_result_to_frag_attrib().

Now that there is no difference between the enums that represent
vertex outputs and fragment inputs, there's no need for a conversion
function.  But we still need to be able to detect when a given vertex
output has no corresponding fragment input.  So it is replaced by a
new function, _mesa_varying_slot_in_fs(), which tells whether the
given varying slot exists as an FS input or not.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vs_constval.c
src/mesa/main/mtypes.h