st/glsl_to_tgsi: simpler fixup of empty writemasks
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 7 Oct 2016 10:49:36 +0000 (12:49 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 12 Oct 2016 16:50:10 +0000 (18:50 +0200)
commitf5f3cadca3809952288e3726ed5fde22090dc61d
tree101c49d3f9b8710e2b93ee3cd78a2c16afa99740
parent957d5410892aa7b12bb19fe081a7073861b424a6
st/glsl_to_tgsi: simpler fixup of empty writemasks

Empty writemasks mean "copy everything", so we can always just use the number
of vector elements (which uses the GLSL meaning here, i.e. each double is a
single element/writemask bit).

Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp