From 746ee0dc5bddeea177aaf609bcc5085b46c4057c Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 11 Jun 2021 12:49:04 -0700 Subject: Properly fill `declref` in `Linkage::getContainerType`. (#1882) * Properly fill `declref` in `Linkage::getContainerType`. * Fix timestamp query on cpu * Fix typo. Co-authored-by: Yong He --- tools/gfx/cpu/render-cpu.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/gfx/cpu/render-cpu.cpp') diff --git a/tools/gfx/cpu/render-cpu.cpp b/tools/gfx/cpu/render-cpu.cpp index ac8b612fb..f635cf727 100644 --- a/tools/gfx/cpu/render-cpu.cpp +++ b/tools/gfx/cpu/render-cpu.cpp @@ -1132,6 +1132,7 @@ public: static const float kIdentity[] = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}; ::memcpy(m_info.identityProjectionMatrix, kIdentity, sizeof(kIdentity)); m_info.adapterName = "CPU"; + m_info.timestampFrequency = 1000000000; } return SLANG_OK; @@ -1259,6 +1260,7 @@ public: const IQueryPool::Desc& desc, IQueryPool** outPool) override { RefPtr pool = new CPUQueryPool(); + pool->init(desc); returnComPtr(outPool, pool); return SLANG_OK; } -- cgit v1.2.3