From 6aeae7442d1d5a8b1ff77b6f50f4ac7333cd22b0 Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Tue, 25 Nov 2014 00:38:03 +0100 Subject: st/nine: rework the way D3DPOOL_SYSTEMMEM is handled This patch moves the data field from Resource9 to Surface9 and cleans D3DPOOL_SYSTEMMEM handling in Texture9. This fixes HL2 lost coast. It also removes in Texture9 some code written to support importing and exporting non D3DPOOL_SYSTEMMEM shared buffers. This code hadn't the design required to support the feature and wasn't used. Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/cubetexture9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/nine/cubetexture9.c') diff --git a/src/gallium/state_trackers/nine/cubetexture9.c b/src/gallium/state_trackers/nine/cubetexture9.c index 4f631620b9f..5ef09f74e2a 100644 --- a/src/gallium/state_trackers/nine/cubetexture9.c +++ b/src/gallium/state_trackers/nine/cubetexture9.c @@ -102,7 +102,7 @@ NineCubeTexture9_ctor( struct NineCubeTexture9 *This, sfdesc.Width = sfdesc.Height = u_minify(EdgeLength, i / 6); hr = NineSurface9_new(This->base.base.base.device, NineUnknown(This), - This->base.base.resource, D3DRTYPE_CUBETEXTURE, + This->base.base.resource, NULL, D3DRTYPE_CUBETEXTURE, i / 6, i % 6, &sfdesc, &This->surfaces[i]); if (FAILED(hr)) -- cgit v1.2.3