mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 00:30:13 +01:00
llvmpipe: finish rendering before flushing frontbuffer resources.
Fixes misrendering on front with mesa demos Cc: mesa-stable Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18360>
This commit is contained in:
parent
f5a81bb1d0
commit
91dcadf956
1 changed files with 5 additions and 1 deletions
|
|
@ -51,6 +51,7 @@
|
||||||
#include "lp_limits.h"
|
#include "lp_limits.h"
|
||||||
#include "lp_rast.h"
|
#include "lp_rast.h"
|
||||||
#include "lp_cs_tpool.h"
|
#include "lp_cs_tpool.h"
|
||||||
|
#include "lp_flush.h"
|
||||||
|
|
||||||
#include "frontend/sw_winsys.h"
|
#include "frontend/sw_winsys.h"
|
||||||
|
|
||||||
|
|
@ -835,8 +836,11 @@ llvmpipe_flush_frontbuffer(struct pipe_screen *_screen,
|
||||||
struct llvmpipe_resource *texture = llvmpipe_resource(resource);
|
struct llvmpipe_resource *texture = llvmpipe_resource(resource);
|
||||||
|
|
||||||
assert(texture->dt);
|
assert(texture->dt);
|
||||||
if (texture->dt)
|
|
||||||
|
if (texture->dt) {
|
||||||
|
llvmpipe_flush_resource(_pipe, resource, 0, true, true, false, "frontbuffer");
|
||||||
winsys->displaytarget_display(winsys, texture->dt, context_private, sub_box);
|
winsys->displaytarget_display(winsys, texture->dt, context_private, sub_box);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue