aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/nine_ff.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-10-28 19:03:59 +0200
committerAxel Davy <[email protected]>2016-12-20 23:44:22 +0100
commitb95205b1f28ba23d88bc24bbb663b1e4938bbb48 (patch)
tree674411e9919c102d24737110f30cacf9d0273f89 /src/gallium/state_trackers/nine/nine_ff.c
parent66ad5b1592bb050269216bc64aa7916056cca466 (diff)
st/nine: Move pipe and cso 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_ff.c')
-rw-r--r--src/gallium/state_trackers/nine/nine_ff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c
index e168bf87707..b18b00e4471 100644
--- a/src/gallium/state_trackers/nine/nine_ff.c
+++ b/src/gallium/state_trackers/nine/nine_ff.c
@@ -1057,7 +1057,7 @@ nine_ff_build_vs(struct NineDevice9 *device, struct vs_build_ctx *vs)
ureg_END(ureg);
nine_ureg_tgsi_dump(ureg, FALSE);
- return ureg_create_shader_and_destroy(ureg, device->pipe);
+ return ureg_create_shader_and_destroy(ureg, device->context.pipe);
}
/* PS FF constants layout:
@@ -1552,7 +1552,7 @@ nine_ff_build_ps(struct NineDevice9 *device, struct nine_ff_ps_key *key)
ureg_END(ureg);
nine_ureg_tgsi_dump(ureg, FALSE);
- return ureg_create_shader_and_destroy(ureg, device->pipe);
+ return ureg_create_shader_and_destroy(ureg, device->context.pipe);
}
static struct NineVertexShader9 *
@@ -2159,7 +2159,7 @@ nine_ff_prune_vs(struct NineDevice9 *device)
if (device->ff.num_vs > 100) {
/* could destroy the bound one here, so unbind */
- device->pipe->bind_vs_state(device->pipe, NULL);
+ context->pipe->bind_vs_state(context->pipe, NULL);
util_hash_table_foreach(device->ff.ht_vs, nine_ff_ht_delete_cb, NULL);
util_hash_table_clear(device->ff.ht_vs);
device->ff.num_vs = 0;
@@ -2173,7 +2173,7 @@ nine_ff_prune_ps(struct NineDevice9 *device)
if (device->ff.num_ps > 100) {
/* could destroy the bound one here, so unbind */
- device->pipe->bind_fs_state(device->pipe, NULL);
+ context->pipe->bind_fs_state(context->pipe, NULL);
util_hash_table_foreach(device->ff.ht_ps, nine_ff_ht_delete_cb, NULL);
util_hash_table_clear(device->ff.ht_ps);
device->ff.num_ps = 0;