i965/vs: Fix gen6+ math operand quirks in one place
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 9 Dec 2012 09:03:49 +0000 (22:03 +1300)
committerEric Anholt <eric@anholt.net>
Fri, 14 Dec 2012 23:26:28 +0000 (15:26 -0800)
commit1cb57ea493d892bf5065e5fb0c5dd745744cc71c
tree7ad5881c918bd4fcd5b25bdfbec7674143e17718
parent0cda3382a6a150d42877711f14964b44fe8c6db5
i965/vs: Fix gen6+ math operand quirks in one place

This causes immediate values to get moved to a temp on gen7, which is needed
for an upcoming change but hadn't happened in the visitor until then.

v2: Drop gen > 7 checks (doesn't exist), and style-fix comments (changes by
    anholt).

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp