diff options
author | Marek Olšák <[email protected]> | 2013-06-01 03:18:04 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-06-13 03:54:14 +0200 |
commit | a713d7b1b962129c4d480c56e7d29bc82f511a1f (patch) | |
tree | 575ebddc661fe4464ed7dc73cc97f069cbae4ff2 /src/gallium/state_trackers | |
parent | 3b525036b94f041ebae192b9737b93c8c264befa (diff) |
st/dri: resolve the back buffer only in SwapBuffers
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_drawable.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_drawable.c b/src/gallium/state_trackers/dri/common/dri_drawable.c index 1c2bad42cbe..18d8d8988a9 100644 --- a/src/gallium/state_trackers/dri/common/dri_drawable.c +++ b/src/gallium/state_trackers/dri/common/dri_drawable.c @@ -435,14 +435,14 @@ dri_flush(__DRIcontext *cPriv, /* Flush the drawable. */ if ((flags & __DRI2_FLUSH_DRAWABLE) && drawable->textures[ST_ATTACHMENT_BACK_LEFT]) { - if (drawable->stvis.samples > 1) { + if (drawable->stvis.samples > 1 && + reason == __DRI2_THROTTLE_SWAPBUFFER) { /* Resolve the MSAA back buffer. */ dri_pipe_blit(ctx->st->pipe, drawable->textures[ST_ATTACHMENT_BACK_LEFT], drawable->msaa_textures[ST_ATTACHMENT_BACK_LEFT]); - if (reason == __DRI2_THROTTLE_SWAPBUFFER && - drawable->msaa_textures[ST_ATTACHMENT_FRONT_LEFT] && + if (drawable->msaa_textures[ST_ATTACHMENT_FRONT_LEFT] && drawable->msaa_textures[ST_ATTACHMENT_BACK_LEFT]) { swap_msaa_buffers = TRUE; } |