summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/nine_state.h
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-10-16 15:56:14 +0200
committerAxel Davy <[email protected]>2016-12-20 23:44:21 +0100
commit6bbb7b9fc5bc978ac3236064a1de50376177c735 (patch)
tree2eacfcc82e4751485560888103a9541643ace105 /src/gallium/state_trackers/nine/nine_state.h
parentc1871e829aa220a7040ca6e423d404f072256db9 (diff)
st/nine: Move texture setting to nine_context_*
And move samplers_shadow to nine_context. Part of the refactor to move all gallium calls to nine_state.c, and have all internal states required for those calls in nine_context. 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.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/nine_state.h b/src/gallium/state_trackers/nine/nine_state.h
index 99b0a3835bd..686f40175fe 100644
--- a/src/gallium/state_trackers/nine/nine_state.h
+++ b/src/gallium/state_trackers/nine/nine_state.h
@@ -174,8 +174,6 @@ struct nine_state
BOOL ps_const_b[NINE_MAX_CONST_B];
float *ps_lconstf_temp;
- uint32_t samplers_shadow;
-
struct NineVertexDeclaration9 *vdecl;
struct NineIndexBuffer9 *idxbuf;
@@ -229,6 +227,8 @@ struct nine_context {
DWORD rs[NINED3DRS_COUNT];
+ uint32_t samplers_shadow;
+
uint8_t bound_samplers_mask_vs;
uint16_t bound_samplers_mask_ps;
@@ -273,6 +273,15 @@ nine_context_set_render_state(struct NineDevice9 *device,
DWORD Value);
void
+nine_context_set_texture(struct NineDevice9 *device,
+ DWORD Stage,
+ struct NineBaseTexture9 *tex);
+
+void
+nine_context_apply_stateblock(struct NineDevice9 *device,
+ const struct nine_state *src);
+
+void
nine_context_clear_fb(struct NineDevice9 *device, DWORD Count,
const D3DRECT *pRects, DWORD Flags,
D3DCOLOR Color, float Z, DWORD Stencil);