Closed Gigas002 closed 2 years ago
[2.460][e] vk->GetMemoryFdKHR(vk->dev, &fd_info, &slab->handle.fd): VK_ERROR_INITIALIZATION_FAILED (../src/vulkan/malloc.c:478)
This is not a legal error code for vkGetMemoryFdKHR
. I suggest just working around it with --Dtests=false
, and maybe taking it upstream if you can. But nvidia historically does not care about bug reports, so w/e
I'm more concerned about the transition from undefined to shader read only... I can't reproduce this one
@Gigas002 Can you confirm that this is still an issue after a646c2c0040195670676119ccc9bd5aab8c47e2a?
(That should at least get rid of the transition errors I noticed, though it might be entirely unrelated to the original bug)
Yes, that seems to fix the problem :+1:
Oh, so can this issue be closed?
Sure, I'll close it
@haasn At some point of time, the tests started to fail again, but since everything is (seems to be) working fine, I haven't posted it as issue. Still, now I decided to update this one, probably there's some useful info?
Now it's not only vulkan.c
, but also opengl_surfaceless.c
tests fails. Reproduce steps are the same:
git clone https://github.com/haasn/libplacebo && cd libplacebo
DIR=./build
meson $DIR -D vulkan=enabled -D glslang=enabled -D shaderc=enabled -D lcms=enabled -D d3d11=disabled -D tests=true -D demos=false
ninja -C $DIR test
And here's build log:
The Meson build system
Version: 1.0.0
Source dir: /home/gigas/downloads/libplacebo
Build dir: /home/gigas/downloads/libplacebo/build
Build type: native build
Project name: libplacebo
Project version: 5.247.0
C compiler for the host machine: cc (gcc 12.2.1 "cc (GCC) 12.2.1 20230201")
C linker for the host machine: cc ld.bfd 2.40
C++ compiler for the host machine: c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20230201")
C++ linker for the host machine: c++ ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wincompatible-pointer-types: YES
Compiler for C supports link arguments -Wl,--exclude-libs=ALL: YES
Library m found: YES
Program python3 found: YES (/usr/bin/python)
Run-time dependency threads found: YES
Header "pthread.h" has symbol "pthread_condattr_setclock" with dependency threads: YES
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency libunwind found: YES 1.6.2
Library execinfo found: NO
Checking for function "backtrace_symbols" with dependency -lexecinfo: YES
Library dl found: YES
Run-time dependency shaderc found: YES 2022.4.1
Library glslang found: YES
Library MachineIndependent found: YES
Library OSDependent found: YES
Library HLSL found: YES
Library OGLCompiler found: YES
Library GenericCodeGen found: YES
Library SPVRemapper found: YES
Library SPIRV found: YES
Library SPIRV-Tools-opt found: YES
Library SPIRV-Tools found: YES
Library pthread found: YES
Library glslang-default-resource-limits found: YES
Has header "glslang/build_info.h" : YES
Check usable header "d3d11.h" : NO
Check usable header "d3d11_4.h" skipped: feature d3d11 disabled
Check usable header "dxgi1_6.h" skipped: feature d3d11 disabled
Dependency spirv-cross-c-shared skipped: feature d3d11 disabled
Library version skipped: feature d3d11 disabled
Library dl found: YES
Run-time dependency vulkan found: YES 1.3.240
Run-time dependency lcms2 found: YES 2.14
Configuring config.h using configuration
Configuring config_internal.h using configuration
Run-time dependency dav1d found: YES 1.0.0
Run-time dependency libavutil found: YES 57.28.100
Run-time dependency libavcodec found: YES 59.37.100
Run-time dependency libavformat found: YES 59.27.100
Configuring include_colorspace_h.c using configuration
Configuring include_common_h.c using configuration
Configuring include_dispatch_h.c using configuration
Configuring include_dither_h.c using configuration
Configuring include_dummy_h.c using configuration
Configuring include_filters_h.c using configuration
Configuring include_gpu_h.c using configuration
Configuring include_log_h.c using configuration
Configuring include_opengl_h.c using configuration
Configuring include_renderer_h.c using configuration
Configuring include_shaders_colorspace_h.c using configuration
Configuring include_shaders_custom_h.c using configuration
Configuring include_shaders_deinterlacing_h.c using configuration
Configuring include_shaders_dithering_h.c using configuration
Configuring include_shaders_film_grain_h.c using configuration
Configuring include_shaders_icc_h.c using configuration
Configuring include_shaders_lut_h.c using configuration
Configuring include_shaders_sampling_h.c using configuration
Configuring include_shaders_h.c using configuration
Configuring include_swapchain_h.c using configuration
Configuring include_tone_mapping_h.c using configuration
Configuring include_utils_dav1d_h.c using configuration
Configuring include_utils_frame_queue_h.c using configuration
Configuring include_utils_libav_h.c using configuration
Configuring include_utils_upload_h.c using configuration
Configuring include_vulkan_h.c using configuration
Build targets in project: 44
libplacebo 5.247.0
Optional features
d3d11 : NO
gl-proc-addr: YES
glslang : YES
lcms : YES
opengl : YES
shaderc : YES
vk-proc-addr: YES
vulkan : YES
User defined options
d3d11 : disabled
demos : false
glslang : enabled
lcms : enabled
shaderc : enabled
tests : true
vulkan : enabled
Found ninja-1.11.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
ninja: Entering directory `./build'
[2/142] Generating src/vulkan/utils_gen.c with a custom command (wrapped by meson to set env)
Found vk.xml: /usr/share/vulkan/registry/vk.xml
[3/142] Generating src/opengl/include/glad/gl.h with a custom command (wrapped by meson to set env)
[19.02.2023 11:29:28][DEBUG ][glad.plugin ]: loaded language c: <class 'glad.generator.c.__init__.CGenerator'>
[19.02.2023 11:29:28][DEBUG ][glad.plugin ]: loaded language rust: <class 'glad.generator.rust.__init__.RustGenerator'>
[19.02.2023 11:29:28][DEBUG ][glad.plugin ]: loaded specification egl: <class 'glad.specification.EGL'>
[19.02.2023 11:29:28][DEBUG ][glad.plugin ]: loaded specification gl: <class 'glad.specification.GL'>
[19.02.2023 11:29:28][DEBUG ][glad.plugin ]: loaded specification glx: <class 'glad.specification.GLX'>
[19.02.2023 11:29:28][DEBUG ][glad.plugin ]: loaded specification vk: <class 'glad.specification.VK'>
[19.02.2023 11:29:28][DEBUG ][glad.plugin ]: loaded specification wgl: <class 'glad.specification.WGL'>
[19.02.2023 11:29:28][INFO ][glad ]: getting 'egl' specification from remote location
[19.02.2023 11:29:28][DEBUG ][glad.files ]: intercepted attempt to retrieve resource: 'https://raw.githubusercontent.com/KhronosGroup/EGL-Registry/main/api/egl.xml'
[19.02.2023 11:29:28][INFO ][glad.files ]: opening packaged resource: 'egl.xml'
[19.02.2023 11:29:28][INFO ][glad ]: getting 'gl' specification from remote location
[19.02.2023 11:29:28][DEBUG ][glad.files ]: intercepted attempt to retrieve resource: 'https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/main/xml/gl.xml'
[19.02.2023 11:29:28][INFO ][glad.files ]: opening packaged resource: 'gl.xml'
[19.02.2023 11:29:28][INFO ][glad ]: generating gl:core/gl=None
[19.02.2023 11:29:28][INFO ][glad ]: no explicit version given for api gl, using Version(major=4, minor=6)
[19.02.2023 11:29:29][INFO ][glad ]: generating gles2:None/gl=None
[19.02.2023 11:29:29][INFO ][glad ]: no explicit version given for api gles2, using Version(major=3, minor=2)
[19.02.2023 11:29:29][INFO ][glad ]: merging [FeatureSet(name=gl, info=[gl:core=4.6], extensions=21), FeatureSet(name=gles2, info=[gles2=3.2], extensions=10)]
[19.02.2023 11:29:29][INFO ][glad ]: merged into FeatureSet(name=gl, info=[gl:core=4.6, gles2=3.2], extensions=29)
[19.02.2023 11:29:29][INFO ][glad ]: generating feature set FeatureSet(name=gl, info=[gl:core=4.6, gles2=3.2], extensions=29)
[19.02.2023 11:29:29][DEBUG ][glad.files ]: intercepted attempt to retrieve resource: 'https://raw.githubusercontent.com/KhronosGroup/EGL-Registry/main/api/KHR/khrplatform.h'
[19.02.2023 11:29:29][INFO ][glad.files ]: opening packaged resource: 'khrplatform.h'
[19.02.2023 11:29:29][INFO ][glad ]: generating egl:None/egl=None
[19.02.2023 11:29:29][INFO ][glad ]: no explicit version given for api egl, using Version(major=1, minor=5)
[19.02.2023 11:29:29][INFO ][glad ]: merging [FeatureSet(name=egl, info=[egl=1.5], extensions=7)]
[19.02.2023 11:29:29][INFO ][glad ]: merged into FeatureSet(name=egl, info=[egl=1.5], extensions=7)
[19.02.2023 11:29:29][INFO ][glad ]: generating feature set FeatureSet(name=egl, info=[egl=1.5], extensions=7)
[19.02.2023 11:29:29][DEBUG ][glad.files ]: intercepted attempt to retrieve resource: 'https://raw.githubusercontent.com/KhronosGroup/EGL-Registry/main/api/EGL/eglplatform.h'
[19.02.2023 11:29:29][INFO ][glad.files ]: opening packaged resource: 'eglplatform.h'
[141/142] Running all tests.
1/14 colorspace.c OK 0.03s
2/14 common.c OK 0.02s
3/14 lut.c OK 0.02s
4/14 filters.c OK 0.02s
5/14 string.c OK 0.02s
6/14 tone_mapping.c OK 0.02s
7/14 utils.c OK 0.01s
8/14 dither.c OK 0.03s
9/14 icc.c OK 0.01s
10/14 dummy.c OK 0.03s
11/14 dav1d.c OK 0.01s
12/14 libav.c OK 0.01s
13/14 opengl_surfaceless.c FAIL 0.35s exit status 1
>>> MALLOC_PERTURB_=54 LD_LIBRARY_PATH=/home/gigas/downloads/libplacebo/build/src /home/gigas/downloads/libplacebo/build/src/tests/test.opengl_surfaceless.c
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Listing only the last 100 lines from a long log.
[0.334][d] fragment shader source:
[0.334][d] [ 1] #version 460
[0.334][d] [ 2] #extension GL_ARB_texture_gather : enable
[0.334][d] [ 3] uniform sampler2D _src_tex_0_0;
[0.334][d] [ 4] layout(location=0) in vec2 _tex_coord_1_0;
[0.334][d] [ 5] layout(location=0) out vec4 out_color;
[0.334][d] [ 6]
[0.334][d] [ 7] const float _const_2_0 = 1.00000000000000000000;
[0.334][d] [ 8] const float _const_3_0 = 1.00000000000000000000;
[0.334][d] [ 9] vec4 _main_6_0() {
[0.334][d] [ 10] // pl_shader_sample_direct
[0.334][d] [ 11] vec4 color = vec4(_const_2_0) * texture(_src_tex_0_0, _tex_coord_1_0);
[0.334][d] [ 12] color *= vec4(1.0 / _const_3_0);
[0.334][d] [ 13] vec4 _orig_color_4_0 = color;
[0.334][d] [ 14] color = vec4(0.0, 0.0, 0.0, 1.0);
[0.334][d] [ 15] color[0] = _orig_color_4_0[2];
[0.334][d] [ 16] return color;
[0.334][d] [ 17] }
[0.334][d] [ 18]
[0.334][d] [ 19] void main() {
[0.334][d] [ 20] out_color = _main_6_0();
[0.334][d] [ 21] }
[0.334][d] shader compile log (status=1):
[0.334][d] shader compile log (status=1):
[0.334][d] shader link log (status=1):
[0.334][d] Spent 0.087 ms compiling shader
[0.334][d] GL: Buffer detailed info: Buffer object 10 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
[0.334][w] GL: Program/shader state performance warning: Vertex shader in program 21 is being recompiled based on GL state.
testing texture import/export
[0.335][e] eglExportDMABUFImageQueryMESA: EGL error: EGL_BAD_MATCH
[0.335][e] Failed exporting GL texture!
stderr:
[0.032][w] GL: Buffer performance warning: Buffer object 2 (bound to GL_ARRAY_BUFFER_ARB, and GL_COPY_WRITE_BUFFER_BINDING_EXT, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.034][w] GL: Buffer performance warning: Buffer object 2 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.034][w] GL: Buffer performance warning: Buffer object 2 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.041][w] GL: Buffer performance warning: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.043][w] GL: Buffer performance warning: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.044][w] GL: Buffer performance warning: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.049][w] GL: Buffer performance warning: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.063][w] GL: Buffer performance warning: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.066][w] GL: Program/shader state performance warning: Vertex shader in program 5 is being recompiled based on GL state.
[0.067][w] GL: Program/shader state performance warning: Vertex shader in program 12 is being recompiled based on GL state.
[0.068][w] GL: Program/shader state performance warning: Vertex shader in program 15 is being recompiled based on GL state.
[0.068][w] GL: Program/shader state performance warning: Vertex shader in program 18 is being recompiled based on GL state.
[0.068][w] GL: Program/shader state performance warning: Vertex shader in program 21 is being recompiled based on GL state.
[0.069][w] GL: Program/shader state performance warning: Vertex shader in program 24 is being recompiled based on GL state.
[0.069][w] GL: Program/shader state performance warning: Vertex shader in program 27 is being recompiled based on GL state.
[0.069][w] GL: Program/shader state performance warning: Vertex shader in program 30 is being recompiled based on GL state.
[0.070][w] GL: Program/shader state performance warning: Vertex shader in program 33 is being recompiled based on GL state.
[0.070][w] GL: Program/shader state performance warning: Vertex shader in program 36 is being recompiled based on GL state.
[0.070][w] GL: Program/shader state performance warning: Vertex shader in program 39 is being recompiled based on GL state.
[0.070][w] GL: Program/shader state performance warning: Vertex shader in program 42 is being recompiled based on GL state.
[0.071][w] GL: Program/shader state performance warning: Vertex shader in program 45 is being recompiled based on GL state.
[0.071][w] GL: Program/shader state performance warning: Vertex shader in program 48 is being recompiled based on GL state.
[0.071][w] GL: Program/shader state performance warning: Vertex shader in program 51 is being recompiled based on GL state.
[0.072][w] GL: Program/shader state performance warning: Vertex shader in program 54 is being recompiled based on GL state.
[0.072][w] GL: Program/shader state performance warning: Vertex shader in program 57 is being recompiled based on GL state.
[0.073][w] GL: Program/shader state performance warning: Vertex shader in program 60 is being recompiled based on GL state.
[0.073][w] GL: Program/shader state performance warning: Vertex shader in program 63 is being recompiled based on GL state.
[0.074][w] GL: Program/shader state performance warning: Vertex shader in program 66 is being recompiled based on GL state.
[0.074][w] GL: Program/shader state performance warning: Vertex shader in program 69 is being recompiled based on GL state.
[0.075][w] GL: Program/shader state performance warning: Vertex shader in program 72 is being recompiled based on GL state.
[0.076][w] GL: Program/shader state performance warning: Vertex shader in program 75 is being recompiled based on GL state.
[0.078][w] GL: Buffer performance warning: Buffer object 7 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.115][w] GL: Program/shader state performance warning: Vertex shader in program 18 is being recompiled based on GL state.
[0.116][w] GL: Program/shader state performance warning: Vertex shader in program 21 is being recompiled based on GL state.
[0.116][w] GL: Program/shader state performance warning: Vertex shader in program 24 is being recompiled based on GL state.
[0.128][w] GL: Program/shader state performance warning: Vertex shader in program 5 is being recompiled based on GL state.
[0.129][w] GL: Program/shader state performance warning: Vertex shader in program 12 is being recompiled based on GL state.
[0.135][w] GL: Program/shader state performance warning: Vertex shader in program 18 is being recompiled based on GL state.
[0.135][w] GL: Program/shader state performance warning: Vertex shader in program 21 is being recompiled based on GL state.
[0.156][w] GL: Program/shader state performance warning: Vertex shader in program 27 is being recompiled based on GL state.
[0.157][w] GL: Program/shader state performance warning: Vertex shader in program 30 is being recompiled based on GL state.
[0.157][w] GL: Program/shader state performance warning: Vertex shader in program 33 is being recompiled based on GL state.
[0.186][w] GL: Program/shader state performance warning: Vertex shader in program 54 is being recompiled based on GL state.
[0.196][w] GL: Program/shader state performance warning: Vertex shader in program 87 is being recompiled based on GL state.
[0.220][w] GL: Program/shader state performance warning: Vertex shader in program 97 is being recompiled based on GL state.
[0.221][w] GL: Program/shader state performance warning: Vertex shader in program 100 is being recompiled based on GL state.
[0.221][w] GL: Program/shader state performance warning: Vertex shader in program 103 is being recompiled based on GL state.
[0.222][w] GL: Program/shader state performance warning: Vertex shader in program 106 is being recompiled based on GL state.
[0.222][w] GL: Program/shader state performance warning: Vertex shader in program 109 is being recompiled based on GL state.
[0.223][w] GL: Program/shader state performance warning: Vertex shader in program 112 is being recompiled based on GL state.
[0.224][w] GL: Program/shader state performance warning: Vertex shader in program 115 is being recompiled based on GL state.
[0.224][w] GL: Program/shader state performance warning: Vertex shader in program 118 is being recompiled based on GL state.
[0.226][w] GL: Program/shader state performance warning: Vertex shader in program 124 is being recompiled based on GL state.
[0.227][w] GL: Program/shader state performance warning: Vertex shader in program 130 is being recompiled based on GL state.
[0.228][w] GL: Program/shader state performance warning: Vertex shader in program 136 is being recompiled based on GL state.
[0.229][w] GL: Program/shader state performance warning: Vertex shader in program 142 is being recompiled based on GL state.
[0.231][w] GL: Program/shader state performance warning: Vertex shader in program 148 is being recompiled based on GL state.
[0.232][w] GL: Program/shader state performance warning: Vertex shader in program 154 is being recompiled based on GL state.
[0.272][w] GL: Program/shader state performance warning: Vertex shader in program 160 is being recompiled based on GL state.
[0.333][w] GL: Program/shader state performance warning: Vertex shader in program 5 is being recompiled based on GL state.
[0.333][w] GL: Program/shader state performance warning: Vertex shader in program 12 is being recompiled based on GL state.
[0.334][w] GL: Program/shader state performance warning: Vertex shader in program 15 is being recompiled based on GL state.
[0.334][w] GL: Program/shader state performance warning: Vertex shader in program 18 is being recompiled based on GL state.
[0.334][w] GL: Program/shader state performance warning: Vertex shader in program 21 is being recompiled based on GL state.
[0.335][e] eglExportDMABUFImageQueryMESA: EGL error: EGL_BAD_MATCH
[0.335][e] Failed exporting GL texture!
=== FAILED: 'export' at ../src/tests/gpu_tests.h:1543
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
14/14 vulkan.c FAIL 0.49s exit status 1
>>> MALLOC_PERTURB_=146 LD_LIBRARY_PATH=/home/gigas/downloads/libplacebo/build/src /home/gigas/downloads/libplacebo/build/src/tests/test.vulkan.c
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Listing only the last 100 lines from a long log.
[0.333][e] Backtrace:
[0.333][e] #0 0x00005621e53cc8ca in vk_dbg_utils_cb+0x22a at /home/gigas/downloads/libplacebo/build/src/tests/test.vulkan.c+0x648ca
[0.333][e] #1 0x00007f916dfcd296 in _ZL13debug_log_msgPK18_debug_report_datajRK13LogObjectListPKcS6_S6_.constprop.0+0x10e6 at /usr/lib/libVkLayer_khronos_validation.so+0x9cd296
[0.333][e] #2 0x00007f916db287da in _ZL12LogMsgLockedPK18_debug_report_datajRK13LogObjectListRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPc.lto_priv.1+0xba at /usr/lib/libVkLayer_khronos_validation.so+0x5287da
[0.333][e] #3 0x00007f916dba3f31 in _ZNK16ValidationObject8LogErrorIP10VkDevice_TEEbT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcz+0x191 at /usr/lib/libVkLayer_khronos_validation.so+0x5a3f31
[0.334][e] #4 0x00007f916dc0eb89 in _ZNK10CoreChecks26PreCallValidateCreateImageEP10VkDevice_TPK17VkImageCreateInfoPK21VkAllocationCallbacksPP9VkImage_T+0x5d9 at /usr/lib/libVkLayer_khronos_validation.so+0x60eb89
[0.334][e] #5 0x00007f916da15b45 in _ZN20vulkan_layer_chassis11CreateImageEP10VkDevice_TPK17VkImageCreateInfoPK21VkAllocationCallbacksPP9VkImage_T+0xb5 at /usr/lib/libVkLayer_khronos_validation.so+0x415b45
[0.334][e] #6 0x00005621e53d7e24 in vk_tex_create+0x6a4 at /home/gigas/downloads/libplacebo/build/src/tests/test.vulkan.c+0x6fe24
[0.334][e] #7 0x00005621e53e9654 in pl_texture_tests+0x1f4 at /home/gigas/downloads/libplacebo/build/src/tests/test.vulkan.c+0x81654
[0.334][e] #8 0x00005621e5372f21 in main+0x541 at /home/gigas/downloads/libplacebo/build/src/tests/test.vulkan.c+0xaf21
[0.334][e] #9 0x00007f917d43c790 in __libc_init_first+0x90 at /usr/lib/libc.so.6+0x23790
[0.334][e] #10 0x00007f917d43c84a in __libc_start_main+0x8a at /usr/lib/libc.so.6+0x2384a
[0.334][e] #11 0x00005621e5376b25 in _start+0x25 at /home/gigas/downloads/libplacebo/build/src/tests/test.vulkan.c+0xeb25
[0.334][e] vk->CreateImage(vk->dev, &iinfo, PL_VK_ALLOC, &tex_vk->img): VK_ERROR_VALIDATION_FAILED_EXT (../src/vulkan/gpu_tex.c:486)
[0.334][e] vk Validation Error: [ VUID-VkImageCreateInfo-format-06412 ] Object 0: handle = 0x5621e64ba660, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xbbdff223 | vkCreateImage(): imageType = VK_IMAGE_TYPE_3D, but when using a YCbCr Conversion format, imageType must be VK_IMAGE_TYPE_2D The Vulkan spec states: If the image format is one of the formats that require a sampler {YCbCr} conversion, imageType must be VK_IMAGE_TYPE_2D (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkImageCreateInfo-format-06412)
[0.334][e] using VkDevice: anon (0x5621e64ba660)
[0.334][e] Backtrace:
[0.334][e] #0 0x00005621e53cc8ca in vk_dbg_utils_cb+0x22a at /home/gigas/downloads/libplacebo/build/src/tests/test.vulkan.c+0x648ca
[0.334][e] #1 0x00007f916dfcd296 in _ZL13debug_log_msgPK18_debug_report_datajRK13LogObjectListPKcS6_S6_.constprop.0+0x10e6 at /usr/lib/libVkLayer_khronos_validation.so+0x9cd296
[0.335][e] #2 0x00007f916db287da in _ZL12LogMsgLockedPK18_debug_report_datajRK13LogObjectListRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPc.lto_priv.1+0xba at /usr/lib/libVkLayer_khronos_validation.so+0x5287da
[0.335][e] #3 0x00007f916dba3f31 in _ZNK16ValidationObject8LogErrorIP10VkDevice_TEEbT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcz+0x191 at /usr/lib/libVkLayer_khronos_validation.so+0x5a3f31
[0.335][e] #4 0x00007f916dc0eb89 in _ZNK10CoreChecks26PreCallValidateCreateImageEP10VkDevice_TPK17VkImageCreateInfoPK21VkAllocationCallbacksPP9VkImage_T+0x5d9 at /usr/lib/libVkLayer_khronos_validation.so+0x60eb89
[0.335][e] #5 0x00007f916da15b45 in _ZN20vulkan_layer_chassis11CreateImageEP10VkDevice_TPK17VkImageCreateInfoPK21VkAllocationCallbacksPP9VkImage_T+0xb5 at /usr/lib/libVkLayer_khronos_validation.so+0x415b45
[0.335][e] #6 0x00005621e53d7e24 in vk_tex_create+0x6a4 at /home/gigas/downloads/libplacebo/build/src/tests/test.vulkan.c+0x6fe24
[0.335][e] #7 0x00005621e53e966f in pl_texture_tests+0x20f at /home/gigas/downloads/libplacebo/build/src/tests/test.vulkan.c+0x8166f
[0.335][e] #8 0x00005621e5372f21 in main+0x541 at /home/gigas/downloads/libplacebo/build/src/tests/test.vulkan.c+0xaf21
[0.335][e] #9 0x00007f917d43c790 in __libc_init_first+0x90 at /usr/lib/libc.so.6+0x23790
[0.336][e] #10 0x00007f917d43c84a in __libc_start_main+0x8a at /usr/lib/libc.so.6+0x2384a
[0.336][e] #11 0x00005621e5376b25 in _start+0x25 at /home/gigas/downloads/libplacebo/build/src/tests/test.vulkan.c+0xeb25
[0.336][e] vk->CreateImage(vk->dev, &iinfo, PL_VK_ALLOC, &tex_vk->img): VK_ERROR_VALIDATION_FAILED_EXT (../src/vulkan/gpu_tex.c:486)
=== FAILED: memcmp(data, ref, PL_ARRAY_SIZE(data)) == 0 at ../src/tests/gpu_tests.h:308
at position 0: 0x7f != 0x80
first 512 bytes of 'data':
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
first 512 bytes of 'ref':
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Summary of Failures:
13/14 opengl_surfaceless.c FAIL 0.35s exit status 1
14/14 vulkan.c FAIL 0.49s exit status 1
Ok: 12
Expected Fail: 0
Fail: 2
Unexpected Pass: 0
Skipped: 0
Timeout: 0
Full log written to /home/gigas/downloads/libplacebo/build/meson-logs/testlog.txt
FAILED: meson-internal__test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.
The vulkan.c
tests seems to be passing OK after 3a9ab63617e07f6cba2b5e1b85937a2b2e093906, but the opengl_surfaceless.c
still fails
To reproduce:
Build log:
Meson testlog:
testlog.txt