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:
@@ -51,6 +51,7 @@
|
||||
#include "lp_limits.h"
|
||||
#include "lp_rast.h"
|
||||
#include "lp_cs_tpool.h"
|
||||
#include "lp_flush.h"
|
||||
|
||||
#include "frontend/sw_winsys.h"
|
||||
|
||||
@@ -835,8 +836,11 @@ llvmpipe_flush_frontbuffer(struct pipe_screen *_screen,
|
||||
struct llvmpipe_resource *texture = llvmpipe_resource(resource);
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user