st/nine: Bind src not dst in nine_context_box_upload
authorAxel Davy <davyaxel0@gmail.com>
Mon, 3 Dec 2018 20:15:47 +0000 (21:15 +0100)
committerAxel Davy <davyaxel0@gmail.com>
Sun, 23 Dec 2018 07:14:50 +0000 (08:14 +0100)
commit42d672fa6a766363e5703f119607f7c7975918aa
tree6773551afd3ff6bcdd471298c35eff21bc621eba
parentf91f748fabd7fec8f571124df23296c07102a983
st/nine: Bind src not dst in nine_context_box_upload

nine_context_box_upload uploads a ram buffer (from src)
to a pipe_resource (dst).
We already have a refcount on the pipe_resource,
what needs to be protected from release is the ram buffer,
thus a reference to src.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/state_trackers/nine/nine_state.c
src/gallium/state_trackers/nine/nine_state.h
src/gallium/state_trackers/nine/surface9.c
src/gallium/state_trackers/nine/volume9.c