Refactor code that converts between gl_vert_result and gl_frag_attrib.
authorPaul Berry <stereotype441@gmail.com>
Tue, 30 Aug 2011 18:46:29 +0000 (11:46 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 6 Sep 2011 18:02:32 +0000 (11:02 -0700)
commit6489a1d5bab75589569658d374257bf23cb67a23
treecb028482b9f8a83b1b147645c42133bea7d49e36
parentafaf024f57bebc112599a4a4571776d94f3df289
Refactor code that converts between gl_vert_result and gl_frag_attrib.

Previously, this conversion was duplicated in several places in the
i965 driver.  This patch moves it to a common location in mtypes.h,
near the declaration of gl_vert_result and gl_frag_attrib.

I've also added comments to remind us that we may need to revisit the
conversion code when adding elements to gl_vert_result and
gl_frag_attrib.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vs_constval.c
src/mesa/drivers/dri/i965/brw_wm_pass2.c
src/mesa/drivers/dri/i965/gen6_sf_state.c
src/mesa/main/mtypes.h