diff options
author | Axel Davy <[email protected]> | 2016-10-31 17:04:29 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:44:22 +0100 |
commit | 7ebdbb573b6d784068d92993d1f5f81986cfe279 (patch) | |
tree | ab4a89dcbc09e471c1e0cd8eead006c4fa25ced9 /src/gallium/state_trackers/nine/nine_state.h | |
parent | 152d0077690199b6cb4913d1596ed1d2048e32ca (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.h | 10 |
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]; |