diff options
author | Patrick Rudolph <[email protected]> | 2016-08-20 09:39:08 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-10-10 23:43:49 +0200 |
commit | 19703f2a363ba467288bccfa4aeef33ce1472c5f (patch) | |
tree | 2d295568930b2d985bfb8c17f7f395a2c98cc2e0 /src/gallium/state_trackers/nine/surface9.c | |
parent | ec6c636722763ba0459b5a8936870250594699a5 (diff) |
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 <[email protected]>
Reviewed-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/surface9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/surface9.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/surface9.c b/src/gallium/state_trackers/nine/surface9.c index 0cedd4ecf3f..4d54309ece3 100644 --- a/src/gallium/state_trackers/nine/surface9.c +++ b/src/gallium/state_trackers/nine/surface9.c @@ -42,8 +42,6 @@ #define DBG_CHANNEL DBG_SURFACE -#define is_ATI1_ATI2(format) (format == PIPE_FORMAT_RGTC1_UNORM || format == PIPE_FORMAT_RGTC2_UNORM) - HRESULT NineSurface9_ctor( struct NineSurface9 *This, struct NineUnknownParams *pParams, |