i965: Add a fs_visitor constructor that takes a brw_gs_compile.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 30 Jun 2015 05:50:28 +0000 (22:50 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 21 Oct 2015 21:27:54 +0000 (14:27 -0700)
commitb3ebf03b8406f9f1cd215b98ebdd3fc751f73559
tree11c91cf1315c9fa454326595ac2595c10e5c793c
parent55dfd39b5f18f820694cad74ce40a3e0d3d6a0c4
i965: Add a fs_visitor constructor that takes a brw_gs_compile.

Unlike the vs/wm structs, brw_gs_compile is actually useful: it contains
the input VUE map and information about the control data headers.
Passing this in allows us to share that code in brw_gs.c, and calculate
them before deciding on vec4 vs. scalar mode, as it's independent of
that choice.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp