OSDN Git Service

i965: Fix emit of a MOV with bad destination channel on gen6 math in FPs.
authorStuart Abercrombie <sabercrombie@chromium.org>
Fri, 2 Dec 2011 19:29:38 +0000 (11:29 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 2 Dec 2011 23:28:44 +0000 (15:28 -0800)
commitaa010157a3f4fa1be7b85d476538bd5496e91004
tree848ac21acdedca42488b3a56c224c9428aa8e850
parent079bb3fff7104782f2c921200e9a299c38a53ab6
i965: Fix emit of a MOV with bad destination channel on gen6 math in FPs.

Previously a zero writemask would result in dst_chan == -1, meaning an
unnecessary MOV with the destination register dictated by undefined
memory contents would be emitted before returning.  This caused
intermittent GPU hangs, e.g. with glean/texCombine.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_wm_emit.c