i965/fs: Skip assertion on NaN.
authorMatt Turner <mattst88@gmail.com>
Mon, 11 Jan 2016 17:34:50 +0000 (09:34 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 13 Jan 2016 18:32:53 +0000 (10:32 -0800)
commit7dc2e5f94024746ab2e39f77ab778fe3b89c0eb1
tree8fde5bd135b8befdc097450f7429df9d18a58620
parent64800933b80ac8f4ff44adfc2c8f5f41ff32270b
i965/fs: Skip assertion on NaN.

A shader in Unreal4 uses the result of divide by zero in its color
output, producing NaN and triggering this assertion since NaN is not
equal to itself.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93560
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp