vk: Add two more valgrind checks

This commit is contained in:
Jason Ekstrand 2015-07-23 08:57:54 -07:00
parent b1fcc30ff0
commit e99773badd
2 changed files with 2 additions and 0 deletions

View File

@ -192,6 +192,7 @@ anv_batch_emit_batch(struct anv_batch *batch, struct anv_batch *other)
assert(batch->next + size <= batch->end);
VG(VALGRIND_CHECK_MEM_IS_DEFINED(other->start, size));
memcpy(batch->next, other->start, size);
offset = batch->next - batch->start;

View File

@ -528,6 +528,7 @@ __gen_combine_address(struct anv_batch *batch, void *location,
}; \
void *__dst = anv_batch_emit_dwords(batch, cmd ## _length); \
cmd ## _pack(batch, __dst, &__template); \
VG(VALGRIND_CHECK_MEM_IS_DEFINED(__dst, cmd ## _length * 4)); \
} while (0)
#define anv_batch_emitn(batch, n, cmd, ...) ({ \