mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 22:30:12 +01:00
kopper: set drawable buffer age
this fixes buffer age reporting with lavapipe Acked-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27703>
This commit is contained in:
parent
9cf22c5fd0
commit
2a8c6cf7ac
1 changed files with 3 additions and 0 deletions
|
|
@ -420,6 +420,8 @@ kopper_allocate_textures(struct dri_context *ctx,
|
||||||
|
|
||||||
resized = (drawable->old_w != width ||
|
resized = (drawable->old_w != width ||
|
||||||
drawable->old_h != height);
|
drawable->old_h != height);
|
||||||
|
if (resized)
|
||||||
|
drawable->buffer_age = 0;
|
||||||
|
|
||||||
/* Wait for glthread to finish because we can't use pipe_context from
|
/* Wait for glthread to finish because we can't use pipe_context from
|
||||||
* multiple threads.
|
* multiple threads.
|
||||||
|
|
@ -837,6 +839,7 @@ kopperSwapBuffersWithDamage(__DRIdrawable *dPriv, uint32_t flush_flags, int nrec
|
||||||
}
|
}
|
||||||
|
|
||||||
kopper_copy_to_front(ctx->st->pipe, drawable, ptex, nrects, stack_boxes);
|
kopper_copy_to_front(ctx->st->pipe, drawable, ptex, nrects, stack_boxes);
|
||||||
|
drawable->buffer_age = 1;
|
||||||
if (drawable->is_window && !zink_kopper_check(ptex))
|
if (drawable->is_window && !zink_kopper_check(ptex))
|
||||||
return -1;
|
return -1;
|
||||||
if (!drawable->textures[ST_ATTACHMENT_FRONT_LEFT]) {
|
if (!drawable->textures[ST_ATTACHMENT_FRONT_LEFT]) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue