mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
gfxstream: more fixes for missing prototypes
Fixes things like: GfxStreamVulkanMapper.cpp:45:10: error: no previous prototype for function 'chooseGfxQueueFamily'[-Werror,-Wmissing-prototypes] Reviewed-by: David Gilhooley <djgilhooley.gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38751>
This commit is contained in:
parent
320f91a5ab
commit
15983e6d0d
3 changed files with 2 additions and 4 deletions
|
|
@ -42,7 +42,7 @@ std::unique_ptr<GfxStreamVulkanMapper> sVkMapper;
|
|||
GfxStreamVulkanMapper::GfxStreamVulkanMapper() {}
|
||||
GfxStreamVulkanMapper::~GfxStreamVulkanMapper() {}
|
||||
|
||||
uint32_t chooseGfxQueueFamily(vk_uncompacted_dispatch_table* vk, VkPhysicalDevice phys_dev) {
|
||||
static uint32_t chooseGfxQueueFamily(vk_uncompacted_dispatch_table* vk, VkPhysicalDevice phys_dev) {
|
||||
uint32_t family_idx = UINT32_MAX;
|
||||
uint32_t nProps = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@ namespace vk {
|
|||
uint64_t getAndroidHardwareBufferUsageFromVkUsage(const VkImageCreateFlags vk_create,
|
||||
const VkImageUsageFlags vk_usage);
|
||||
|
||||
void updateMemoryTypeBits(uint32_t* memoryTypeBits, uint32_t colorBufferMemoryIndex);
|
||||
|
||||
VkResult getAndroidHardwareBufferPropertiesANDROID(
|
||||
gfxstream::Gralloc* grallocHelper, const AHardwareBuffer* buffer,
|
||||
VkAndroidHardwareBufferPropertiesANDROID* pProperties);
|
||||
|
|
|
|||
|
|
@ -2331,7 +2331,7 @@ void ResourceTracker::on_vkDestroyDevice_pre(void* context, VkDevice device,
|
|||
}
|
||||
|
||||
#if defined(VK_USE_PLATFORM_ANDROID_KHR) || DETECT_OS_LINUX
|
||||
void updateMemoryTypeBits(uint32_t* memoryTypeBits, uint32_t memoryIndex) {
|
||||
static void updateMemoryTypeBits(uint32_t* memoryTypeBits, uint32_t memoryIndex) {
|
||||
*memoryTypeBits = 1u << memoryIndex;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue