From 1b24d5e1f5450e51d79c22679fed5d4b9731004c Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sat, 15 Oct 2016 13:17:52 +0200 Subject: st/nine: Introduce nine_context nine_context is a new structure which goal will be to contain all internal states. It will be the states of the second thread in the to-be-introduced CSMT mode. This patch moves several internal states to nine_context, while the next patches add the other fields. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/vertexshader9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/state_trackers/nine/vertexshader9.c') diff --git a/src/gallium/state_trackers/nine/vertexshader9.c b/src/gallium/state_trackers/nine/vertexshader9.c index a8c7c9b97a8..6b053e466c1 100644 --- a/src/gallium/state_trackers/nine/vertexshader9.c +++ b/src/gallium/state_trackers/nine/vertexshader9.c @@ -116,7 +116,7 @@ NineVertexShader9_dtor( struct NineVertexShader9 *This ) do { if (var->cso) { - if (This->base.device->state.cso.vs == var->cso) + if (This->base.device->context.cso.vs == var->cso) pipe->bind_vs_state(pipe, NULL); pipe->delete_vs_state(pipe, var->cso); } @@ -131,7 +131,7 @@ NineVertexShader9_dtor( struct NineVertexShader9 *This ) } if (This->ff_cso) { - if (This->ff_cso == This->base.device->state.cso.vs) + if (This->ff_cso == This->base.device->context.cso.vs) pipe->bind_vs_state(pipe, NULL); pipe->delete_vs_state(pipe, This->ff_cso); } -- cgit v1.2.3