mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
st/mesa: don't use resource_copy_region for CopyPixels with conditional render
The conditional rendering should be able to kill CopyPixels. I assume the render condition has no effect on resource_copy_region. This fixes piglit: - NV_conditional_render/copypixels NOTE: This is a candidate for the 7.10 branch. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
8d45bbc422
commit
1b37a41661
1 changed files with 2 additions and 1 deletions
|
|
@ -1247,7 +1247,8 @@ blit_copy_pixels(struct gl_context *ctx, GLint srcx, GLint srcy,
|
|||
!ctx->VertexProgram.Enabled &&
|
||||
!ctx->Shader.CurrentFragmentProgram &&
|
||||
st_fb_orientation(ctx->ReadBuffer) == st_fb_orientation(ctx->DrawBuffer) &&
|
||||
ctx->DrawBuffer->_NumColorDrawBuffers == 1) {
|
||||
ctx->DrawBuffer->_NumColorDrawBuffers == 1 &&
|
||||
!ctx->Query.CondRenderQuery) {
|
||||
struct st_renderbuffer *rbRead, *rbDraw;
|
||||
GLint drawX, drawY;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue