diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2013-05-30 14:37:49 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2013-06-07 11:13:15 +0800 |
commit | e51806ee7ab52873c773619595962582c2abf0fe (patch) | |
tree | c0c7359110ed30791757179306646e8658890b7f /src/gallium/drivers/ilo/ilo_blit.c | |
parent | 4228cf37467688dc4f6a10c8d2c42c6243f789e9 (diff) |
ilo: introduce viewport CSO
Introduce ilo_viewport_cso and initialize it in set_viewport_states(). This
saves us from having to perform CPU-intensive calculations to construct
hardware viewport states in draw_vbo().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_blit.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_blit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_blit.c b/src/gallium/drivers/ilo/ilo_blit.c index fda30de1ead..362128c2aa8 100644 --- a/src/gallium/drivers/ilo/ilo_blit.c +++ b/src/gallium/drivers/ilo/ilo_blit.c @@ -553,7 +553,7 @@ ilo_blitter_begin(struct ilo_context *ilo, enum ilo_blitter_op op) util_blitter_save_blend(ilo->blitter, (void *) ilo->blend); /* undocumented? */ - util_blitter_save_viewport(ilo->blitter, &ilo->viewport.states[0]); + util_blitter_save_viewport(ilo->blitter, &ilo->viewport.viewport0); util_blitter_save_stencil_ref(ilo->blitter, &ilo->stencil_ref); util_blitter_save_sample_mask(ilo->blitter, ilo->sample_mask); |