mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
Show missing extension's name in the abort message
Extensions known in the vulkan header will be displayed with their names to make debugging easier and the missing feature more visible. Reviewed-by: Aaron Ruby <aruby@blackberry.com> Acked-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
parent
bd30892775
commit
6e3a5a2334
2 changed files with 2 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ class VulkanExtensionStructs(VulkanWrapperGenerator):
|
|||
# emitForEachStructExtension and not accessible here. Consequently,
|
||||
# this is a copy-paste from there and must be updated accordingly.
|
||||
# NOTE: No need for %% if no substitution is made.
|
||||
cgen.stmt("fprintf(stderr, \"Unhandled Vulkan structure type %d, aborting.\\n\", structType)")
|
||||
cgen.stmt("fprintf(stderr, \"Unhandled Vulkan structure type %s [%d], aborting.\\n\", string_VkStructureType(VkStructureType(structType)), structType)")
|
||||
cgen.stmt("GFXSTREAM_ABORT(::emugl::FatalError(::emugl::ABORT_REASON_OTHER))")
|
||||
cgen.stmt("return (%s)0" % self.extensionStructSizeRetType.typeName)
|
||||
|
||||
|
|
|
|||
|
|
@ -447,6 +447,7 @@ using DlSymFunc = void* (void*, const char*);
|
|||
{self.hostCommonExtraVulkanHeaders}
|
||||
#include "goldfish_vk_private_defs.h"
|
||||
#include "host-common/GfxstreamFatalError.h"
|
||||
#include "vulkan/vk_enum_string_helper.h"
|
||||
"""
|
||||
|
||||
extensionStructsIncludeGuest = """
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue