diff options
author | Jason Ekstrand <[email protected]> | 2015-07-23 08:57:54 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-07-23 08:57:54 -0700 |
commit | e99773badd1f2f795bf93bf912d2e2a270e285ee (patch) | |
tree | b984ee13b844755c00d2b7145667cab032dd25ee | |
parent | b1fcc30ff0b27b4d74f0a3e68846076dd1e22d15 (diff) |
vk: Add two more valgrind checks
-rw-r--r-- | src/vulkan/anv_cmd_buffer.c | 1 | ||||
-rw-r--r-- | src/vulkan/anv_private.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/vulkan/anv_cmd_buffer.c b/src/vulkan/anv_cmd_buffer.c index 4d4dfa9fb53..378d148acbe 100644 --- a/src/vulkan/anv_cmd_buffer.c +++ b/src/vulkan/anv_cmd_buffer.c @@ -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; diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index be24b514f30..89c0bc29fab 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -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, ...) ({ \ |