st/glsl_to_tgsi: use correct writemask when converting generic intrinsics
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 12 Jun 2017 08:53:07 +0000 (10:53 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 19 Jun 2017 10:07:05 +0000 (12:07 +0200)
commitb28938ffce0580e89e6012826900da2b6013b0df
tree3f4c46547a196f91d25cf3ca25af5b59c463983f
parent25e5534734b7de2a2359c42eeff5fd0c3c0507da
st/glsl_to_tgsi: use correct writemask when converting generic intrinsics

This fixes a bug when lowering ballotARB: previously, using writemask 0xf,
emit_asm would create TGSI_OPCODE_BALLOT instructions that span two registers
to cover 4 64-bit channels. This could trample over other a neighbouring
temporary.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101360
Cc: 17.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp