projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c6794c
)
tgsi: add assertion to verify legal register file
author
Brian Paul
<brianp@vmware.com>
Thu, 7 Jan 2010 18:18:04 +0000
(11:18 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 7 Jan 2010 18:18:12 +0000
(11:18 -0700)
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.
src/gallium/auxiliary/tgsi/tgsi_sanity.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi_sanity.c
b/src/gallium/auxiliary/tgsi/tgsi_sanity.c
index
6aeb9ef
..
7f1c8e5
100644
(file)
--- a/
src/gallium/auxiliary/tgsi/tgsi_sanity.c
+++ b/
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);