u_simple_shaders: fix mask handling in util_make_fragment_tex_shader_writemask
authorRoland Scheidegger <sroland@vmware.com>
Wed, 7 Feb 2018 04:03:42 +0000 (05:03 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 7 Feb 2018 16:08:24 +0000 (17:08 +0100)
commitafd1e9be1714eb95c3b797becb15bebaad9e6646
tree404f23bf957a956ad85fa442078df15e6d8539eb
parent5d754872b5721647dda17dd350bbe85d7a4dcec7
u_simple_shaders: fix mask handling in util_make_fragment_tex_shader_writemask

The writemask handling was busted, since writing defaults to output
meant they got overwritten by the tex sampling anyway. Albeit the
affected components were undefined, so maybe with some luck it
still would have worked with some drivers - if not could as well
kill it... (This would have affected u_blitter but not u_blit since
the latter always used xyzw mask.)

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_simple_shaders.c