diff options
author | Axel Davy <[email protected]> | 2016-10-16 11:34:35 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:44:21 +0100 |
commit | 64e232bd60336591e55e6c95112bac334cb38970 (patch) | |
tree | fded32b8b5e54f34cf430e947614eb468a6d245f /src/gallium/state_trackers/nine/vertexshader9.c | |
parent | f72d8719ebecce0937087a56eec24a51bea9e27a (diff) |
st/nine: Move draw calls to nine_state
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.
v2: Release buffers for Draw*Up functions in device9.c,
instead of nine_context. This prevents a leak with csmt
where the wrong pointers were released.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/vertexshader9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/vertexshader9.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/nine/vertexshader9.c b/src/gallium/state_trackers/nine/vertexshader9.c index 6b053e466c1..b8c9ec047db 100644 --- a/src/gallium/state_trackers/nine/vertexshader9.c +++ b/src/gallium/state_trackers/nine/vertexshader9.c @@ -186,9 +186,9 @@ NineVertexShader9_GetVariant( struct NineVertexShader9 *This ) info.const_b_base = NINE_CONST_B_BASE(device->max_vs_const_f) / 16; info.byte_code = This->byte_code.tokens; info.sampler_mask_shadow = key & 0xf; - info.fog_enable = device->state.rs[D3DRS_FOGENABLE]; - info.point_size_min = asfloat(device->state.rs[D3DRS_POINTSIZE_MIN]); - info.point_size_max = asfloat(device->state.rs[D3DRS_POINTSIZE_MAX]); + info.fog_enable = device->context.rs[D3DRS_FOGENABLE]; + info.point_size_min = asfloat(device->context.rs[D3DRS_POINTSIZE_MIN]); + info.point_size_max = asfloat(device->context.rs[D3DRS_POINTSIZE_MAX]); info.swvp_on = device->swvp; info.process_vertices = false; |