diff options
author | Michal Krol <[email protected]> | 2010-03-01 17:06:20 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-03-01 17:06:20 +0100 |
commit | 932e6f8d527d2147ecc4e75ce9ae2f71e23e61af (patch) | |
tree | 27430bfbe036a87bc74a7dc53717373c0204966f /src/gallium/auxiliary/util/u_blitter.h | |
parent | 235c6bdf6dc0a687a7313f948444c4294abc0ea1 (diff) |
util: Fix u_blitter setup code after bypass_vs_clip_and_viewport removal.
Not tested.
Diffstat (limited to 'src/gallium/auxiliary/util/u_blitter.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.h b/src/gallium/auxiliary/util/u_blitter.h index a2f17073ac6..92008fce992 100644 --- a/src/gallium/auxiliary/util/u_blitter.h +++ b/src/gallium/auxiliary/util/u_blitter.h @@ -48,6 +48,8 @@ struct blitter_context struct pipe_framebuffer_state saved_fb_state; /**< framebuffer state */ struct pipe_stencil_ref saved_stencil_ref; /**< stencil ref */ + struct pipe_viewport_state saved_viewport; + struct pipe_clip_state saved_clip; int saved_num_sampler_states; void *saved_sampler_states[32]; @@ -206,6 +208,20 @@ void util_blitter_save_framebuffer(struct blitter_context *blitter, } static INLINE +void util_blitter_save_viewport(struct blitter_context *blitter, + struct pipe_viewport_state *state) +{ + blitter->saved_viewport = *state; +} + +static INLINE +void util_blitter_save_clip(struct blitter_context *blitter, + struct pipe_clip_state *state) +{ + blitter->saved_clip = *state; +} + +static INLINE void util_blitter_save_fragment_sampler_states( struct blitter_context *blitter, int num_sampler_states, |