Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoder: Intel ANV: fails with both H26x encoders #96

Open
dabrain34 opened this issue Oct 16, 2024 · 5 comments
Open

Encoder: Intel ANV: fails with both H26x encoders #96

dabrain34 opened this issue Oct 16, 2024 · 5 comments

Comments

@dabrain34
Copy link
Contributor

HasAllDeviceExtensions: ERROR: required device extension VK_KHR_video_maintenance1 is missing for device with name: Intel(R) Graphics (ADL GT2)
HasAllDeviceExtensions : WARNING: requested optional device extension VK_EXT_ycbcr_2plane_444_formats is missing for device with name: Intel(R) Graphics (ADL GT2)
ERROR: Found physical device with name: Intel(R) Graphics (ADL GT2), vendor ID: 8086, and device ID: 46a6 NOT having the required extensions!
vk-video-enc-test: /home/scerveau/DEV/IGALIA/PROJECTS/VALVE/DEV/vk_video_samples/vk_video_encoder/demos/vk-video-enc/Main.cpp:225: int main(int, char**): Assertion `!"Can't initialize the Vulkan physical device!"' failed.
Aborted (core dumped)
@dabrain34 dabrain34 changed the title Encoder: ANV not supported Encoder: Intel ANV not supported Oct 16, 2024
@dabrain34 dabrain34 changed the title Encoder: Intel ANV not supported Encoder: Intel ANV: fails with both H26x encoders Oct 17, 2024
@dabrain34
Copy link
Contributor Author

dabrain34 commented Oct 17, 2024

For H264, the default value for pRateControlInfo->rateControlMode is VK_VIDEO_ENCODE_RATE_CONTROL_MODE_VBR_BIT_KHR even if its VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DEFAULT_KHR

See

if (rateControlMode == VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DEFAULT_KHR) {

Is there a reason for that @zlatinski ?

For now ANV only supports DEFAULT or DISABLED

@dabrain34
Copy link
Contributor Author

See #97

@zlatinski
Copy link
Contributor

Hi Stephan, IIRC, we had a driver issue with VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DEFAULT_KHR. We should have fixed that by now. Let me check, please.

@dabrain34
Copy link
Contributor Author

As far as I can see the latest driver 77 did not fix the issue in DEFAULT mode.

@dabrain34
Copy link
Contributor Author

dabrain34 commented Oct 22, 2024

Found out that the H264 encoder was failing because of inline query not properly supported.

Working on a patch here https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31765

H265 is still failing with:

vk-video-enc-test: /DEV/vk_video_samples/common/libs/VkCodecUtils/VulkanVideoSession.cpp:85: static VkResult VulkanVideoSession::Create(const VulkanDeviceContext*, VkVideoSessionCreateFlagsKHR, uint32_t, VkVideoCoreProfile*, VkFormat, const VkExtent2D&, VkFormat, uint32_t, uint32_t, VkSharedBaseObj<VulkanVideoSession>&): Assertion `videoSessionMemoryRequirementsCount <= MAX_BOUND_MEMORY' failed.

Need to investigate why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants