diff options
author | Jason Ekstrand <[email protected]> | 2018-09-14 16:34:22 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-09-17 02:57:21 -0500 |
commit | 07e214f1ce263edcecb674d6d2f48569fa1d12ed (patch) | |
tree | 3124ab007e02edf827376b1d0076f309556a7d97 | |
parent | c0420a62c95a0091d6b59c762ceebe64d561d281 (diff) |
anv/query: Write both dwords in emit_zero_queries
Each query slot is a uint64_t and we were only zeroing half of it.
Fixes: 7ec6e4e68980 "anv/query: implement multiview interactions"
Reviewed-by: Lionel Landwerlin <[email protected]>
-rw-r--r-- | src/intel/vulkan/genX_query.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c index 1b26401c9ff..817a3a3c4e2 100644 --- a/src/intel/vulkan/genX_query.c +++ b/src/intel/vulkan/genX_query.c @@ -347,6 +347,11 @@ emit_zero_queries(struct anv_cmd_buffer *cmd_buffer, sdi.Address.offset = slot_offset + j * sizeof(uint64_t); sdi.ImmediateData = 0ull; } + anv_batch_emit(&cmd_buffer->batch, GENX(MI_STORE_DATA_IMM), sdi) { + sdi.Address.bo = &pool->bo; + sdi.Address.offset = slot_offset + j * sizeof(uint64_t) + 4; + sdi.ImmediateData = 0ull; + } } emit_query_availability(cmd_buffer, &pool->bo, slot_offset); } |