mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-27 09:31:03 +00: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> (cherry picked from commit 91dcadf95690c658b34b20cf5dbf77f79c1cf297)
This commit is contained in:
parent
726e9bbf60
commit
c9d05409ae
@ -7213,7 +7213,7 @@
|
||||
"description": "llvmpipe: finish rendering before flushing frontbuffer resources.",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
@ -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"
|
||||
|
||||
@ -832,8 +833,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
|
||||
|
Loading…
Reference in New Issue
Block a user