aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorPatrick Rudolph <[email protected]>2015-12-19 07:43:08 +0100
committerAxel Davy <[email protected]>2016-02-04 22:12:17 +0100
commita3e7525ada97fe81fe91fc19b983d2623d7572df (patch)
tree0a40482f33c2d571b541b55839b8df98c49bbcc1 /src/gallium/state_trackers
parent495727af6b6568e152703d8e3e518ee56ec64106 (diff)
st/nine: Use cso for viewport
Use CSO to catch redundant viewport changes. Signed-off-by: Patrick Rudolph <[email protected]> Reviewed-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/nine/nine_state.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c
index 7a8231ae7e3..f835d298014 100644
--- a/src/gallium/state_trackers/nine/nine_state.c
+++ b/src/gallium/state_trackers/nine/nine_state.c
@@ -504,7 +504,6 @@ update_framebuffer(struct NineDevice9 *device)
static void
update_viewport(struct NineDevice9 *device)
{
- struct pipe_context *pipe = device->pipe;
const D3DVIEWPORT9 *vport = &device->state.viewport;
struct pipe_viewport_state pvport;
@@ -543,7 +542,7 @@ update_viewport(struct NineDevice9 *device)
pvport.translate[1] -= 1.0f / 128.0f;
}
- pipe->set_viewport_states(pipe, 0, 1, &pvport);
+ cso_set_viewport(device->cso, &pvport);
}
/* Loop through VS inputs and pick the vertex elements with the declared