st/nine: Fix leak with integer and boolean constants
authorAxel Davy <axel.davy@ens.fr>
Tue, 18 Oct 2016 21:05:02 +0000 (23:05 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 24 Oct 2016 19:56:44 +0000 (21:56 +0200)
commit25beccb379731b0e6fc728982190779da47aa6fd
treece74dcdcdaf2f26747d4af45e9f99aef47e850c7
parentf35b1d156b302f3a8ac9f084f3db0394c35e6597
st/nine: Fix leak with integer and boolean constants

Leak introduced by:
a83dce01284f220b1bf932774730e13fca6cdd20

The patch also moves the part to
release changed.vs_const_i and changed.vs_const_b
before the if (!cb.buffer_size) check,
to avoid reuploading every draw call if
integer or boolean constants are dirty, but the shaders
use no constants.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
CC: "13.0" <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/nine/nine_state.c