i965: Reverse the operands for INT DIV prior to Gen6.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 29 Sep 2011 00:37:56 +0000 (17:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Oct 2011 00:01:12 +0000 (17:01 -0700)
commitb9af592dfa8f8d0fe9f29c2d48bf6846cbd5c50f
treea69516f94536577377eff3f1708431307ea21577
parent1d4f3ca8f0442821c914b758b323e6e5124149a3
i965: Reverse the operands for INT DIV prior to Gen6.

Apparently on Gen4 and 5, the denominator comes first.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp