mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
zink: add a util function for finding swapchain resource
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038>
This commit is contained in:
parent
8d73315bce
commit
b86c814347
1 changed files with 6 additions and 0 deletions
|
|
@ -215,6 +215,12 @@ zink_resource_has_binds(const struct zink_resource *res)
|
|||
return res->all_binds > 0;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
zink_is_swapchain(const struct zink_resource *res)
|
||||
{
|
||||
return (res->base.b.bind & PIPE_BIND_DISPLAY_TARGET) > 0;
|
||||
}
|
||||
|
||||
#ifndef __cplusplus
|
||||
#include "zink_bo.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue