st/nine: Split NineSurface9_CopySurface
authorAxel Davy <axel.davy@ens.fr>
Sun, 3 May 2015 20:40:38 +0000 (22:40 +0200)
committerAxel Davy <axel.davy@ens.fr>
Fri, 21 Aug 2015 20:21:45 +0000 (22:21 +0200)
commitbc42c29013209f80182a634e32c702edb2327b22
tree1102ca22a61fb17b939d00a72c24547f797602f9
parent3f36ad732c7fbe8fd38aa852c3699101fdd5041d
st/nine: Split NineSurface9_CopySurface

NineSurface9_CopySurface was supporting more cases than what
we needed, and doing checks that were innapropriate for
some NineSurface9_CopySurface use cases.

This patch splits it into two for the two use cases, and moves
the checks to the caller.

This patch also adds a few checks to NineDevice9_UpdateSurface

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/device9.c
src/gallium/state_trackers/nine/nine_pipe.h
src/gallium/state_trackers/nine/surface9.c
src/gallium/state_trackers/nine/surface9.h
src/gallium/state_trackers/nine/swapchain9.c