util_blitter_save_so_targets(sp->blitter, sp->num_so_targets,
(struct pipe_stream_output_target**)sp->so_targets);
util_blitter_save_rasterizer(sp->blitter, sp->rasterizer);
- util_blitter_save_viewport(sp->blitter, &sp->viewport);
- util_blitter_save_scissor(sp->blitter, &sp->scissor);
+ util_blitter_save_viewport(sp->blitter, &sp->viewports[0]);
+ util_blitter_save_scissor(sp->blitter, &sp->scissors[0]);
util_blitter_save_fragment_shader(sp->blitter, sp->fs);
util_blitter_save_blend(sp->blitter, sp->blend);
util_blitter_save_depth_stencil_alpha(sp->blitter, sp->depth_stencil);
struct pipe_surface *dst,
const union pipe_color_union *color,
unsigned dstx, unsigned dsty,
- unsigned width, unsigned height)
+ unsigned width, unsigned height,
+ bool render_condition_enabled)
{
struct softpipe_context *softpipe = softpipe_context(pipe);
- if (!softpipe_check_render_cond(softpipe))
+ if (render_condition_enabled && !softpipe_check_render_cond(softpipe))
return;
util_clear_render_target(pipe, dst, color,
double depth,
unsigned stencil,
unsigned dstx, unsigned dsty,
- unsigned width, unsigned height)
+ unsigned width, unsigned height,
+ bool render_condition_enabled)
{
struct softpipe_context *softpipe = softpipe_context(pipe);
- if (!softpipe_check_render_cond(softpipe))
+ if (render_condition_enabled && !softpipe_check_render_cond(softpipe))
return;
util_clear_depth_stencil(pipe, dst, clear_flags,