OSDN Git Service

nir: Fix output swizzle in get_mul_for_src
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 28 May 2015 07:06:33 +0000 (09:06 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 28 May 2015 16:25:37 +0000 (18:25 +0200)
commit2231cf0ba3a79d9abb08065e0f72811c5eea807f
tree79748a8f4a8964be0321dbba7199110ab78e4c99
parent09d6243aed016eed4518435c9885275dbb6d2aa9
nir: Fix output swizzle in get_mul_for_src

When we compute the output swizzle we want to consider the number of
components in the add operation. So far we were using the writemask
of the multiplication for this instead, which is not correct.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_opt_peephole_ffma.c