anv/query: Write both dwords in emit_zero_queries
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Sep 2018 21:34:22 +0000 (16:34 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 17 Sep 2018 07:57:21 +0000 (02:57 -0500)
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 <lionel.g.landwerlin@intel.com>
src/intel/vulkan/genX_query.c

index 1b26401c9ff8705bc4441258bfd84973228a21ef..817a3a3c4e28ae744e002e3d03b1321bcbb9d47f 100644 (file)
@@ -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);
    }