mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 20:40:09 +01:00
zink: make zink_bo.h compile in c++
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18135>
This commit is contained in:
parent
bc46d44ba5
commit
58823f054e
1 changed files with 3 additions and 4 deletions
|
|
@ -36,21 +36,20 @@
|
|||
static inline enum zink_alloc_flag
|
||||
zink_alloc_flags_from_heap(enum zink_heap heap)
|
||||
{
|
||||
enum zink_alloc_flag flags = 0;
|
||||
switch (heap) {
|
||||
case ZINK_HEAP_DEVICE_LOCAL_SPARSE:
|
||||
flags |= ZINK_ALLOC_SPARSE;
|
||||
return ZINK_ALLOC_SPARSE;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return flags;
|
||||
return (enum zink_alloc_flag)0;
|
||||
}
|
||||
|
||||
static inline VkMemoryPropertyFlags
|
||||
vk_domain_from_heap(enum zink_heap heap)
|
||||
{
|
||||
VkMemoryPropertyFlags domains = 0;
|
||||
VkMemoryPropertyFlags domains = (VkMemoryPropertyFlags)0;
|
||||
|
||||
switch (heap) {
|
||||
case ZINK_HEAP_DEVICE_LOCAL:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue