mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
dri/kopper: Assume a non-null drawable in flush_frontbuffer
It is expected that drawable is non-null here so don't add check for it. Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28180>
This commit is contained in:
parent
484246ea0a
commit
51593c6b34
1 changed files with 6 additions and 9 deletions
|
|
@ -639,13 +639,11 @@ kopper_flush_frontbuffer(struct dri_context *ctx,
|
|||
*/
|
||||
_mesa_glthread_finish(ctx->st->ctx);
|
||||
|
||||
if (drawable) {
|
||||
/* prevent recursion */
|
||||
if (drawable->flushing)
|
||||
return true;
|
||||
/* prevent recursion */
|
||||
if (drawable->flushing)
|
||||
return true;
|
||||
|
||||
drawable->flushing = true;
|
||||
}
|
||||
drawable->flushing = true;
|
||||
|
||||
if (drawable->stvis.samples > 1) {
|
||||
/* Resolve the front buffer. */
|
||||
|
|
@ -664,9 +662,8 @@ kopper_flush_frontbuffer(struct dri_context *ctx,
|
|||
st = ctx->st;
|
||||
|
||||
st_context_flush(st, ST_FLUSH_FRONT, &new_fence, NULL, NULL);
|
||||
if (drawable) {
|
||||
drawable->flushing = false;
|
||||
}
|
||||
drawable->flushing = false;
|
||||
|
||||
/* throttle on the previous fence */
|
||||
if (drawable->throttle_fence) {
|
||||
screen->fence_finish(screen, NULL, drawable->throttle_fence, OS_TIMEOUT_INFINITE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue