mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
zink: no-op pixmap frontbuffer flush calls
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17149>
This commit is contained in:
parent
5c5ab9e173
commit
b400f1defc
1 changed files with 1 additions and 1 deletions
|
|
@ -1422,7 +1422,7 @@ zink_flush_frontbuffer(struct pipe_screen *pscreen,
|
|||
|
||||
/* if the surface has never been acquired, there's nothing to present,
|
||||
* so this is a no-op */
|
||||
if (!zink_kopper_acquired(res->obj->dt, res->obj->dt_idx) && res->obj->last_dt_idx == UINT32_MAX)
|
||||
if (!zink_is_swapchain(res) || (!zink_kopper_acquired(res->obj->dt, res->obj->dt_idx) && res->obj->last_dt_idx == UINT32_MAX))
|
||||
return;
|
||||
|
||||
/* need to get the actual zink_context, not the threaded context */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue