gallium/util: Really allow aliasing of dst for u_box_union_*
authorAxel Davy <axel.davy@ens.fr>
Fri, 30 Sep 2016 18:48:22 +0000 (20:48 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:48 +0000 (23:43 +0200)
commit2290eac84ef0c80a6e60cafac8ed0fb8f8a4ca93
tree1ed41ed88e72dbd24f9955225530a47f128731e3
parent5e7f0ebe29df58c873b2c66674d8cbf0b1046a4d
gallium/util: Really allow aliasing of dst for u_box_union_*

Gallium nine relies on aliasing to work with this function.
Without this patch, dirty region tracking was incorrect, which
could lead to incorrect textures or vertex buffers.
Fixes several game bugs with nine.
Fixes https://github.com/iXit/Mesa-3D/issues/234

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/gallium/auxiliary/util/u_box.h