summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/nine_state.h
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-10-31 17:04:29 +0100
committerAxel Davy <[email protected]>2016-12-20 23:44:22 +0100
commit7ebdbb573b6d784068d92993d1f5f81986cfe279 (patch)
treeab4a89dcbc09e471c1e0cd8eead006c4fa25ced9 /src/gallium/state_trackers/nine/nine_state.h
parent152d0077690199b6cb4913d1596ed1d2048e32ca (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/nine_state.h')
-rw-r--r--src/gallium/state_trackers/nine/nine_state.h10
1 files changed, 9 insertions, 1 deletions
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];