mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
intel: Fix rendering to a multisample front buffer
We need to downsample before flushing BUFFER_FAKE_FRONT_LEFT to BUFFER_FRONT_LEFT in intel_flush_front. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
a43599d1d1
commit
1938501fbf
1 changed files with 10 additions and 0 deletions
|
|
@ -283,6 +283,16 @@ intel_flush_front(struct gl_context *ctx)
|
|||
if (screen->dri2.loader->flushFrontBuffer != NULL &&
|
||||
driDrawable &&
|
||||
driDrawable->loaderPrivate) {
|
||||
|
||||
/* Downsample before flushing FAKE_FRONT_LEFT to FRONT_LEFT.
|
||||
*
|
||||
* This potentially downsamples both front and back buffer. It
|
||||
* is unnecessary to downsample the back, but harms nothing except
|
||||
* performance. And no one cares about front-buffer render
|
||||
* performance.
|
||||
*/
|
||||
intel_downsample_for_dri2_flush(intel, driDrawable);
|
||||
|
||||
screen->dri2.loader->flushFrontBuffer(driDrawable,
|
||||
driDrawable->loaderPrivate);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue