From 7ebdbb573b6d784068d92993d1f5f81986cfe279 Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Mon, 31 Oct 2016 17:04:29 +0100 Subject: st/nine: Do not use NineBaseTexture9 in nine_context Some fields are subject to modification outside of nine_context (SetLod, etc). Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_state.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/nine/nine_state.h') diff --git a/src/gallium/state_trackers/nine/nine_state.h b/src/gallium/state_trackers/nine/nine_state.h index 11a213e3066..42d45d959b9 100644 --- a/src/gallium/state_trackers/nine/nine_state.h +++ b/src/gallium/state_trackers/nine/nine_state.h @@ -277,7 +277,15 @@ struct nine_context { DWORD rs[NINED3DRS_COUNT]; - struct NineBaseTexture9 *texture[NINE_MAX_SAMPLERS]; + struct { + BOOL enabled; + BOOL shadow; + DWORD lod; + D3DRESOURCETYPE type; + struct pipe_resource *resource; + struct pipe_sampler_view *view[2]; + uint8_t pstype; + } texture[NINE_MAX_SAMPLERS]; DWORD samp[NINE_MAX_SAMPLERS][NINED3DSAMP_COUNT]; -- cgit v1.2.3