i965/clip: Fix brw_clip_unfilled.c/compute_offset's assembly.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Aug 2014 06:57:17 +0000 (23:57 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Aug 2014 20:22:52 +0000 (13:22 -0700)
commitb7679639bcc8ac72cb08c48f9cda8eecd6a9c1e5
tree7299d577082c777ceac2e3c7b713ffa7f279873e
parent151fb1e808c051a078071c89ff996bdad037ed65
i965/clip: Fix brw_clip_unfilled.c/compute_offset's assembly.

Due to the destination register width of 1 or 2, these instructions get
ExecSize 1 or 2.  But dir and offset (used as src0) are both registers
of width 4, violating the execsize >= width assertion.

I honestly don't think this could have ever worked.

Fixes Piglit's polygon-offset and polygon-mode-offset tests on Gen4-5.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70441
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_clip_unfilled.c