st/mesa: set result writemask based on ir type
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 4 Mar 2017 18:52:48 +0000 (13:52 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 19 Mar 2017 00:16:45 +0000 (20:16 -0400)
commitdab88e9af7a35ebcdd0fc87df97f4b13e908552a
tree0676839fe99355eff859fd95d67f014965e4f3de
parent09f16de7e624938d46a63b8285fc5b21050962e9
st/mesa: set result writemask based on ir type

This prevents textureQueryLevels, which maps as LODQ, from ending up
with a xyzw writemask, which is illegal.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100061
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp