Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

how to disable VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT in gfxstream?

Open
#106 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
cpp

Research direction

Start at getImageFormatProperties2Func and the isFormatVulkanCompatible and setupVkColorBufferLocked paths shown in the issue. Trace how VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT reaches image support checks for the virtio-gpu rutabaga path, then determine whether disabling it is supported. Done should be a documented or implemented resolution for Mali-G310 image compatibility.

Written by the indexing model from the issue text.

Description

duplicate

I try to use virtio-gpu rutabaga with Mali-G310 and meet the unsupported issue: G310 only support VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT for vkbuffer, vkImage doesn't support this bit. So i cannot run virtio-gpu rutabaga successfully.
So i want to know if this external memory bit is necessary? If there any way to disable it?

/*code1: these code result in info->supported be set to false due to extInfo->pNext == VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT */
VkResult res = sVkEmulation->getImageFormatProperties2Func(physdev, &formatInfo2, &outProps2);

if (res != VK_SUCCESS) {
    if (res == VK_ERROR_FORMAT_NOT_SUPPORTED) {
        if (isTargetFormat) {printf("Ryan: info->supported = false | 3\n");}
        info->supported = false;

/code2: these code result in setupVkColorBufferLocked failed/
static bool isFormatVulkanCompatible(GLenum internalFormat) {
VkFormat vkFormat = glFormat2VkFormat(internalFormat);

for (const auto& supportInfo : sVkEmulation->imageSupportInfo) {
    if (supportInfo.format == vkFormat && supportInfo.supported) {
        return true;
    }
}

return false;

}

Dominant language
C++
Stars
57
Forks
38
Avg merge
3d 6h
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google/gfxstream

All issues in google/gfxstream

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.