i965: Remove broken source type assertions from brw_alu3().
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 13 Jun 2013 21:55:19 +0000 (14:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Jun 2013 18:25:13 +0000 (11:25 -0700)
commit55272883acc8a5a6cf4d725bfd4713e7d347ce3b
tree0b8bd508997050cf09c73a5bb30a0f53a43669c3
parent9321f3257f0199c5988fd2e220874acd8b7f0a53
i965: Remove broken source type assertions from brw_alu3().

Commit 526ffdfc033ab01cf133cb7e8290c65d12ccc9be attempted to generalize
the source register type assertions to allow D and UD.  However, the
src1 and src2 assertions actually checked src0.type against D and UD due
to a copy and paste bug.

It also began setting the source and destination register types based on
dest.type, ignoring src0/src1/src2.type completely.  BFE and BFI2 may
actually pass mixed D/UD types and expect them to be ignored, which is
arguably a bit sloppy, but not too crazy either.

This patch simply removes the source register assertions as those values
aren't used anyway.  It also clarifies the comment above the block that
sets the register types.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_eu_emit.c