st_glsl_to_tgsi: check for the tail sentinel in merge_two_dsts
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 17 Nov 2017 19:01:50 +0000 (20:01 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 28 Nov 2017 08:31:33 +0000 (09:31 +0100)
commit7e35bdad1c67d7df2832ac4b39bff471e83812e5
tree6d27abeb934db063671fb52d3a47b1f0fe81f415
parent1e508e10d9ae649bfe5ab7b1842993be50052b21
st_glsl_to_tgsi: check for the tail sentinel in merge_two_dsts

This fixes yet another case where DFRACEXP has only one destination. Found
by address sanitizer.

Fixes tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/fs-frexp-dvec4-only-mantissa.shader_test

Fixes: 3b666aa74795 ("st/glsl_to_tgsi: fix DFRACEXP with only one destination")
Acked-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp