@@ -245,3 +245,85 @@ def test_asan_error() -> None:
245
245
"""
246
246
signature = signature_util .get_signature_from_log_contents (log )
247
247
assert signature == "useafterpoison_getParent"
248
+
249
+
250
+ def test_mesa_error_exec_list_length () -> None :
251
+ log = """
252
+ *** Aborted
253
+ Register dump:
254
+
255
+ RAX: 0000000000000000 RBX: 00007f86645f9380 RCX: 00007f866463bdb1
256
+ RDX: 0000000000000000 RSI: 00007ffdd626b0e0 RDI: 0000000000000002
257
+ Trap: 00000000 Error: 00000000 OldMask: 00000000 CR2: 00000000
258
+
259
+ XMM14: 00000000000000000000000025252525 XMM15: 00000000000000000000000025252525
260
+
261
+ Backtrace:
262
+ /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x141)[0x7f866463bdb1]
263
+ /lib/x86_64-linux-gnu/libc.so.6(abort+0x123)[0x7f8664625537]
264
+ /data/Mesa/mesa-20.2/lib/x86_64-linux-gnu/libvulkan_intel.so(+0x5aa709)[0x7f86641fa709]
265
+ /data/Mesa/mesa-20.2/lib/x86_64-linux-gnu/libvulkan_intel.so(+0x101953)[0x7f8663d51953]
266
+ /data/Mesa/mesa-20.2/lib/x86_64-linux-gnu/libvulkan_intel.so(+0x10467e)[0x7f8663d5467e]
267
+ STDERR:
268
+ INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
269
+
270
+ NIR validation failed after nir_lower_returns
271
+ 2 errors:
272
+ shader: MESA_SHADER_FRAGMENT
273
+ inputs: 0
274
+ outputs: 0
275
+ uniforms: 0
276
+ ubos: 1
277
+ error: exec_list_length(&instr->srcs) == state->block->predecessors->entries (../src/compiler/nir/nir_validate.c:766)
278
+
279
+ vec1 32 ssa_139 = deref_var &return (function_temp bool)
280
+ vec1 1 ssa_140 = intrinsic load_deref (ssa_139) (0) /* access=0 */
281
+ /* succs: block_18 block_19 */
282
+ 1 additional errors:
283
+ error: state->ssa_srcs->entries == 0 (../src/compiler/nir/nir_validate.c:1207)
284
+ """
285
+ signature = signature_util .get_signature_from_log_contents (log )
286
+ assert signature == "exec_list_lengthinstrsrcs_stateblockpredecessorsen"
287
+
288
+
289
+ def test_mesa_error_glsl_type_is_struct_or_ifc () -> None :
290
+ log = """
291
+ *** Segmentation fault
292
+ Register dump:
293
+
294
+ RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fff214183c0
295
+ RDX: 000000000000001d RSI: 0000000001d66ce0 RDI: 0000000001e68b20
296
+ Trap: 0000000e Error: 00000004 OldMask: 00000000 CR2: 00000038
297
+
298
+ XMM12: 00000000000000000000000000000000 XMM13: 00000000000000000000000000000000
299
+ XMM14: 00000000000000000000000000000000 XMM15: 00000000000000000000000000000000
300
+
301
+ Backtrace:
302
+ /data/Mesa/mesa-20.2/lib/x86_64-linux-gnu/libvulkan_intel.so(+0x101316)[0x7f09c0dcc316]
303
+ /data/Mesa/mesa-20.2/lib/x86_64-linux-gnu/libvulkan_intel.so(+0x10467e)[0x7f09c0dcf67e]
304
+ /data/Mesa/mesa-20.2/lib/x86_64-linux-gnu/libvulkan_intel.so(+0x1073fe)[0x7f09c0dd23fe]
305
+ /home/runner/work/gfbuild-amber/gfbuild-amber/amber/b_Debug/../samples/amber.cc:605 (discriminator 2)(main)[0xc4c07f]
306
+ /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7f09c16a1cca]
307
+ /data/binaries/built_in/gfbuild-amber-760076b7c8bf43d6c6cc4928f5129afca16e895e-Linux_x64_Debug/amber/bin/amber(_start+0x29)[0xc49609]
308
+
309
+ Memory map:
310
+
311
+ 00400000-01704000 r-xp 00000000 fe:01 3802475 /data/binaries/built_in/gfbuild-amber-760076b7c8bf43d6c6cc4928f5129afca16e895e-Linux_x64_Debug/amber/bin/amber
312
+ 01904000-01953000 r--p 01304000 fe:01 3802475 /data/binaries/built_in/gfbuild-amber-760076b7c8bf43d6c6cc4928f5129afca16e895e-Linux_x64_Debug/amber/bin/amber
313
+ 01953000-01956000 rw-p 01353000 fe:01 3802475 /data/binaries/built_in/gfbuild-amber-760076b7c8bf43d6c6cc4928f5129afca16e895e-Linux_x64_Debug/amber/bin/amber
314
+ 7fff21403000-7fff21425000 rw-p 00000000 00:00 0 [stack]
315
+ 7fff215a3000-7fff215a7000 r--p 00000000 00:00 0 [vvar]
316
+ 7fff215a7000-7fff215a9000 r-xp 00000000 00:00 0 [vdso]
317
+
318
+
319
+ STDERR:
320
+ INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
321
+
322
+ SPIR-V parsing FAILED:
323
+ In file ../src/compiler/spirv/spirv_to_nir.c:2394
324
+ glsl_type_is_struct_or_ifc(type)
325
+ 8636 bytes into the SPIR-V binary
326
+
327
+ """
328
+ signature = signature_util .get_signature_from_log_contents (log )
329
+ assert signature == "glsl_type_is_struct_or_ifctype"
0 commit comments