mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02: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
|
static inline enum zink_alloc_flag
|
||||||
zink_alloc_flags_from_heap(enum zink_heap heap)
|
zink_alloc_flags_from_heap(enum zink_heap heap)
|
||||||
{
|
{
|
||||||
enum zink_alloc_flag flags = 0;
|
|
||||||
switch (heap) {
|
switch (heap) {
|
||||||
case ZINK_HEAP_DEVICE_LOCAL_SPARSE:
|
case ZINK_HEAP_DEVICE_LOCAL_SPARSE:
|
||||||
flags |= ZINK_ALLOC_SPARSE;
|
return ZINK_ALLOC_SPARSE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return flags;
|
return (enum zink_alloc_flag)0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline VkMemoryPropertyFlags
|
static inline VkMemoryPropertyFlags
|
||||||
vk_domain_from_heap(enum zink_heap heap)
|
vk_domain_from_heap(enum zink_heap heap)
|
||||||
{
|
{
|
||||||
VkMemoryPropertyFlags domains = 0;
|
VkMemoryPropertyFlags domains = (VkMemoryPropertyFlags)0;
|
||||||
|
|
||||||
switch (heap) {
|
switch (heap) {
|
||||||
case ZINK_HEAP_DEVICE_LOCAL:
|
case ZINK_HEAP_DEVICE_LOCAL:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue