st/nine: Allocate more space for ATI1
authorPatrick Rudolph <siro@das-labor.org>
Sat, 20 Aug 2016 07:39:08 +0000 (09:39 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:49 +0000 (23:43 +0200)
commit19703f2a363ba467288bccfa4aeef33ce1472c5f
tree2d295568930b2d985bfb8c17f7f395a2c98cc2e0
parentec6c636722763ba0459b5a8936870250594699a5
st/nine: Allocate more space for ATI1

ATIx are "unknown" formats that do not follow block format conventions.
Tests showed that pitch*height bytes are allocated.
apitrace used to depend on this behaviour.
It used to copy more bytes than it has to for the ATI1 block format,
but it didn't crash on Windows.

Increase buffersize for ATI1 to fix this crash.
The same issue was present in WINE but a patch has been sent by me.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/nine_pipe.h
src/gallium/state_trackers/nine/surface9.c