gfxstream: more fixes for missing prototypes
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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:
Gurchetan Singh 2025-12-01 08:41:12 -08:00
parent 320f91a5ab
commit 15983e6d0d
3 changed files with 2 additions and 4 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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