Tellusim 20221109 fails on recent Mesa
- commit: 8852e9cb (2023-08-25)
- gpu: TigerLake-LP GT2
- command: ./ts_executor.x64 -name starwars -vk
- version: 20221109
For latest version (20230513), everything work as expected.
V: 1.420 s: Done 778.07 ms
M: 1.431 s: RotationScript::RotationScript(): 0xd66380
M: 1.431 s: RotationScript::setRotationSpeed(): 0xd66380 23.700001
M: 1.431 s: RotationScript::RotationScript(): 0xe055d0
M: 1.431 s: RotationScript::setRotationSpeed(): 0xe055d0 68.529999
M: 1.431 s: RotationScript::RotationScript(): 0xe2c7d0
M: 1.431 s: RotationScript::setRotationSpeed(): 0xe2c7d0 54.560001
M: 1.431 s: RotationScript::RotationScript(): 0x113d760
M: 1.431 s: RotationScript::setRotationSpeed(): 0x113d760 62.200001
M: 1.433 s: AnimationScript::AnimationScript(): 0x1148f20
ts_executor.x64: ../src/intel/vulkan/anv_batch_chain.c:539: anv_cmd_buffer_chain_batch: Assertion `size <= ANV_MAX_CMD_BUFFER_BATCH_SIZE' failed.
Thread 1 "ts_executor.x64" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6,
no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6,
no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1 0x00007ffff6ca815f in __pthread_kill_internal (signo=6, threadid=<optimized out>)
at ./nptl/pthread_kill.c:78
#2 0x00007ffff6c5a472 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x00007ffff6c444b2 in __GI_abort () at ./stdlib/abort.c:79
#4 0x00007ffff6c443d5 in __assert_fail_base (
fmt=0x7ffff6db8dc8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=assertion@entry=0x7ffff23aff48 "size <= ANV_MAX_CMD_BUFFER_BATCH_SIZE",
file=file@entry=0x7ffff23afd90 "../src/intel/vulkan/anv_batch_chain.c",
line=line@entry=539,
function=function@entry=0x7ffff23b03f0 <__PRETTY_FUNCTION__.11> "anv_cmd_buffer_chain_batch") at ./assert/assert.c:92
#5 0x00007ffff6c533a2 in __assert_fail (
assertion=0x7ffff23aff48 "size <= ANV_MAX_CMD_BUFFER_BATCH_SIZE",
file=0x7ffff23afd90 "../src/intel/vulkan/anv_batch_chain.c", line=539,
function=0x7ffff23b03f0 <__PRETTY_FUNCTION__.11> "anv_cmd_buffer_chain_batch")
at ./assert/assert.c:101
#6 0x00007ffff0a994a9 in anv_cmd_buffer_chain_batch (batch=0xa07bd8, size=41943040,
_data=0xa06570) at ../src/intel/vulkan/anv_batch_chain.c:539
#7 0x00007ffff0a96ed6 in anv_batch_emit_ensure_space (batch=0xa07bd8, size=41943040)
at ../src/intel/vulkan/anv_batch_chain.c:179
#8 0x00007ffff132c245 in gfx12_cmd_buffer_emit_indirect_generated_draws (
cmd_buffer=0xa06570, indirect_data_addr=..., indirect_data_stride=20, count_addr=...,
max_draw_count=1048576, indexed=true)
at ../src/intel/vulkan/genX_cmd_draw_generated_indirect.h:319
#9 0x00007ffff13c7cab in gfx12_CmdDrawIndexedIndirectCount (commandBuffer=0xa06570,
_buffer=0xcf9380, offset=41943040, _countBuffer=0xd2b060, countBufferOffset=32,
maxDrawCount=1048576, stride=20) at ../src/intel/vulkan/genX_cmd_buffer.c:5324
#10 0x00007ffff785f018 in Clay::VKCommand::drawElementsIndirect(Clay::Buffer*, unsigned long, unsigned int, unsigned long) () from ./libTellusim_x64.so
#11 0x00007ffff773e341 in Clay::RenderRenderer::draw_pipeline(Clay::Device const*, Clay::Command*, Clay::RenderFrame const*, Clay::Pipeline*, Clay::Object::Type, unsigned int, unsigned int)
() from ./libTellusim_x64.so
#12 0x00007ffff774008c in Clay::RenderRenderer::drawDeferred(Clay::Device const*, Clay::RenderFrame**, unsigned int, Clay::RenderRenderer::Flags) () from ./libTellusim_x64.so
#13 0x00007ffff7740439 in Clay::RenderRenderer::drawDeferred(Clay::Device const*, Clay::RenderFrame*, Clay::RenderRenderer::Flags) () from ./libTellusim_x64.so
#14 0x000000000041fd0b in Tellusim::Executor::render_scene(Tellusim::NodeCamera&, Tellusim::RenderFrame&) ()
#15 0x000000000041f0fb in Tellusim::Executor::render() ()
#16 0x0000000000420189 in Tellusim::Executor::main() ()
#17 0x000000000041067d in main ()