mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
st/mesa: conditional rendering should not kill texture decompression via blit
NOTE: This is a candidate for the 7.10 branch.
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 8d45bbc422)
This commit is contained in:
parent
6850899f44
commit
e6c031c440
1 changed files with 11 additions and 0 deletions
|
|
@ -882,6 +882,11 @@ decompress_with_blit(struct gl_context * ctx, GLenum target, GLint level,
|
|||
return;
|
||||
}
|
||||
|
||||
/* Disable conditional rendering. */
|
||||
if (st->render_condition) {
|
||||
pipe->render_condition(pipe, NULL, 0);
|
||||
}
|
||||
|
||||
/* blit/render/decompress */
|
||||
util_blit_pixels_tex(st->blit,
|
||||
src_view, /* pipe_resource (src) */
|
||||
|
|
@ -893,6 +898,12 @@ decompress_with_blit(struct gl_context * ctx, GLenum target, GLint level,
|
|||
0.0, /* z */
|
||||
PIPE_TEX_MIPFILTER_NEAREST);
|
||||
|
||||
/* Restore conditional rendering state. */
|
||||
if (st->render_condition) {
|
||||
pipe->render_condition(pipe, st->render_condition,
|
||||
st->condition_mode);
|
||||
}
|
||||
|
||||
/* map the dst_surface so we can read from it */
|
||||
tex_xfer = pipe_get_transfer(st_context(ctx)->pipe,
|
||||
dst_texture, 0, 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue