Summary: | Vulkan spec break: VkCommandBufferInheritanceInfo.framebuffer is NOT optional | ||
---|---|---|---|
Product: | Mesa | Reporter: | Sebastian Sydow <sebastian> |
Component: | Drivers/Vulkan/radeon | Assignee: | mesa-dev |
Status: | RESOLVED MOVED | QA Contact: | mesa-dev |
Severity: | critical | ||
Priority: | medium | ||
Version: | 19.1 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Renderdoc capture, see How to reproduce 2
vulkaninfo on Kaby lake G (Intel HD 630 + AMD Vega m GL) |
Description
Sebastian Sydow
2019-06-02 07:46:16 UTC
Created attachment 144407 [details]
vulkaninfo on Kaby lake G (Intel HD 630 + AMD Vega m GL)
AFAICT anv is handling this correctly. Anv in 18.2.8 has a bug which has been fixed later (Mesa 19) with following commit: --- 8< --- commit 1ad26f941792f07f226c054811be78b0c0ac9fce Author: Juan A. Suarez Romero <jasuarez@igalia.com> Date: Tue Feb 12 19:19:13 2019 +0100 anv/cmd_buffer: check for NULL framebuffer This can happen when we record a VkCmdDraw in a secondary buffer that was created inheriting from the primary buffer, but with the framebuffer set to NULL in the VkCommandBufferInheritanceInfo. Vulkan 1.1.81 spec says that "the application must ensure (using scissor if neccesary) that all rendering is contained in the render area [...] [which] must be contained within the framebuffer dimesions". While this should be done by the application, commit 465e5a86 added the clamp to the framebuffer size, in case of application does not do it. But this requires to know the framebuffer dimensions. If we do not have a framebuffer at that moment, the best compromise we can do is to just apply the scissor as it is, and let the application to ensure the rendering is contained in the render area. v2: do not clamp to framebuffer if there isn't a framebuffer Thanks for the clarification on the Intel front. Let's just hope the RADV team sees this Yeah, I will fix. I wanted to ask whether this issue already got fixed or is still being worked on as there haven't been any updates for a while. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/862. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.