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/pixelshader9.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/pixelshader9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/pixelshader9.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/pixelshader9.c b/src/gallium/state_trackers/nine/pixelshader9.c index d34b7b1bcb8..133f0dadbfa 100644 --- a/src/gallium/state_trackers/nine/pixelshader9.c +++ b/src/gallium/state_trackers/nine/pixelshader9.c @@ -159,8 +159,8 @@ NinePixelShader9_GetVariant( struct NinePixelShader9 *This ) info.byte_code = This->byte_code.tokens; info.sampler_mask_shadow = key & 0xffff; info.sampler_ps1xtypes = key; - info.fog_enable = device->state.rs[D3DRS_FOGENABLE]; - info.fog_mode = device->state.rs[D3DRS_FOGTABLEMODE]; + info.fog_enable = device->context.rs[D3DRS_FOGENABLE]; + info.fog_mode = device->context.rs[D3DRS_FOGTABLEMODE]; info.force_color_in_centroid = key >> 34 & 1; info.projected = (key >> 48) & 0xffff; info.process_vertices = false; |