i965: Move SOL PSIZ hacks from draw time to link time.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 28 Feb 2017 20:29:43 +0000 (12:29 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 1 Jun 2017 07:08:29 +0000 (00:08 -0700)
commit65f5f3c85c5303c88c6dddbb435ad6aa0ebfce5f
tree61804e2c8a6713bbe94c20660f10184c23569e0b
parent3d37cf99c80839326baa0f14bf04f9fd88b4c215
i965: Move SOL PSIZ hacks from draw time to link time.

We can just update the gl_transform_feedback_info fields at link time
to make the VUE header fields have the right location and component.
Then we don't need to handle them specially at draw time, which is
expensive.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/intel/compiler/gen6_gs_visitor.cpp
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/genX_state_upload.c