summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/nine_state.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-10-28 18:54:52 +0200
committerAxel Davy <[email protected]>2016-12-20 23:44:22 +0100
commitfc49f7df8920df77dfbb0163a11486494f0c7883 (patch)
tree5c4d1e6c3f01c4d4fe2771f0dacb8752aa03fc70 /src/gallium/state_trackers/nine/nine_state.c
parentc7237e2c5c9935d80f04f2793bde9489ca6bda9d (diff)
st/nine: Rename cso in nine_context to cso_shader
This patch it to avoid name conflict when device->cso is moved to nine_context. Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/nine_state.c')
-rw-r--r--src/gallium/state_trackers/nine/nine_state.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c
index 9bad0da7d66..1ed16903fb8 100644
--- a/src/gallium/state_trackers/nine/nine_state.c
+++ b/src/gallium/state_trackers/nine/nine_state.c
@@ -358,10 +358,10 @@ prepare_vs(struct NineDevice9 *device, uint8_t shader_changed)
/* likely because we dislike FF */
if (likely(context->programmable_vs)) {
- context->cso.vs = NineVertexShader9_GetVariant(vs);
+ context->cso_shader.vs = NineVertexShader9_GetVariant(vs);
} else {
vs = device->ff.vs;
- context->cso.vs = vs->ff_cso;
+ context->cso_shader.vs = vs->ff_cso;
}
if (context->rs[NINED3DRS_VSPOINTSIZE] != vs->point_size) {
@@ -392,10 +392,10 @@ prepare_ps(struct NineDevice9 *device, uint8_t shader_changed)
return 0;
if (likely(ps)) {
- context->cso.ps = NinePixelShader9_GetVariant(ps);
+ context->cso_shader.ps = NinePixelShader9_GetVariant(ps);
} else {
ps = device->ff.ps;
- context->cso.ps = ps->ff_cso;
+ context->cso_shader.ps = ps->ff_cso;
}
if ((context->bound_samplers_mask_ps & ps->sampler_mask) != ps->sampler_mask)
@@ -871,7 +871,7 @@ commit_vs(struct NineDevice9 *device)
{
struct nine_context *context = &device->context;
- device->pipe->bind_vs_state(device->pipe, context->cso.vs);
+ device->pipe->bind_vs_state(device->pipe, context->cso_shader.vs);
}
@@ -880,7 +880,7 @@ commit_ps(struct NineDevice9 *device)
{
struct nine_context *context = &device->context;
- device->pipe->bind_fs_state(device->pipe, context->cso.ps);
+ device->pipe->bind_fs_state(device->pipe, context->cso_shader.ps);
}
/* State Update */