vk: Add two more valgrind checks
This commit is contained in:
parent
b1fcc30ff0
commit
e99773badd
|
@ -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;
|
||||
|
|
|
@ -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, ...) ({ \
|
||||
|
|
Loading…
Reference in New Issue