OSDN Git Service

st/mesa: fix fragment shader output mapping
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 13 Oct 2016 07:49:11 +0000 (09:49 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 17 Oct 2016 17:09:37 +0000 (19:09 +0200)
commit57a15142037e3eea3581a6c690b8e8e93729b5b3
treeb8f5c94e913b802a9ad92fceb092f6a8aecb1133
parente0213f36bb9e2aebd84845d3c06fcc74cc749f0f
st/mesa: fix fragment shader output mapping

Properly handle the case where there is a gap in the assigned output locations,
e.g. a fragment shader writes to color buffer 2 but not to color buffers 0 & 1.

Fixes GL45-CTS.gtf33.GL3Tests.explicit_attrib_location.explicit_attrib_location_pipeline.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_program.c