diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-12-11 08:40:05 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-12-11 08:40:05 +0000 |
commit | 21ab4c9f31674b113c24177398ed39f29b7cd8e6 (patch) | |
tree | 8be392d7a792d9663c2586396be77bfd506f5164 /lib/mesa/src/gallium/drivers/softpipe/sp_surface.c | |
parent | a8f0a7916e26e550dd2a26e7188835c481978004 (diff) |
Import Mesa 13.0.2
Diffstat (limited to 'lib/mesa/src/gallium/drivers/softpipe/sp_surface.c')
-rw-r--r-- | lib/mesa/src/gallium/drivers/softpipe/sp_surface.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/mesa/src/gallium/drivers/softpipe/sp_surface.c b/lib/mesa/src/gallium/drivers/softpipe/sp_surface.c index e2ecbdf2b..390841137 100644 --- a/lib/mesa/src/gallium/drivers/softpipe/sp_surface.c +++ b/lib/mesa/src/gallium/drivers/softpipe/sp_surface.c @@ -97,11 +97,12 @@ softpipe_clear_render_target(struct pipe_context *pipe, 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, @@ -116,11 +117,12 @@ softpipe_clear_depth_stencil(struct pipe_context *pipe, 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, |