Skip to content

test/shader/vtest: Fix two memory leaks

Gert Wollny requested to merge gerddie/virglrenderer:fix-some-memory-leaks into main
  • In geometry shaders emit_so_movs is called for each TGSI_OPCODE_EMIT, which may result in allocating the name for the emitted TF output more than once. Make sure we only allocate the name once.

  • _mesa_hash_table_u64 uses "0" and "1" as special key, so entries with these keys must be handled separately

Edited by Gert Wollny

Merge request reports

Loading