浏览代码

tgsi: add assertion to verify legal register file

This assertion fails with piglit glsl-vs-mov-after-deref test
because we're double freeing the memory.  It seems there's some
confusion between what's placed in the hash table and what isn't.
tags/7.8-rc1
Brian Paul 15 年前
父节点
当前提交
7335d8006f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/gallium/auxiliary/tgsi/tgsi_sanity.c

+ 1
- 0
src/gallium/auxiliary/tgsi/tgsi_sanity.c 查看文件

@@ -515,6 +515,7 @@ regs_hash_destroy(struct cso_hash *hash)
while (!cso_hash_iter_is_null(iter)) {
scan_register *reg = (scan_register *)cso_hash_iter_data(iter);
iter = cso_hash_erase(hash, iter);
assert(reg->file < TGSI_FILE_COUNT);
FREE(reg);
}
cso_hash_delete(hash);

正在加载...
取消
保存