/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | QueryTests.cpp | 151 wgpu::QuerySet querySet = CreateOcclusionQuerySet(kQueryCount); in TestOcclusionQueryWithDepthStencilTest() local 158 renderPass.occlusionQuerySet = querySet; in TestOcclusionQueryWithDepthStencilTest() 169 encoder.ResolveQuerySet(querySet, 0, kQueryCount, destination, 0); in TestOcclusionQueryWithDepthStencilTest() 180 wgpu::QuerySet querySet = CreateOcclusionQuerySet(kQueryCount); in TestOcclusionQueryWithScissorTest() local 187 renderPass.renderPassInfo.occlusionQuerySet = querySet; in TestOcclusionQueryWithScissorTest() 198 encoder.ResolveQuerySet(querySet, 0, kQueryCount, destination, 0); in TestOcclusionQueryWithScissorTest() 223 wgpu::QuerySet querySet = CreateOcclusionQuerySet(1); in TEST_P() local 224 querySet.Destroy(); in TEST_P() 269 wgpu::QuerySet querySet = CreateOcclusionQuerySet(kQueryCount); in TEST_P() local 276 renderPass.renderPassInfo.occlusionQuerySet = querySet; in TEST_P() [all …]
|
D | BufferZeroInitTests.cpp | 1331 wgpu::QuerySet querySet = device.CreateQuerySet(&descriptor); in TEST_P() local 1340 encoder.WriteTimestamp(querySet, 0); in TEST_P() 1341 encoder.WriteTimestamp(querySet, 1); in TEST_P() 1342 encoder.ResolveQuerySet(querySet, 0, kQueryCount, destination, kDestinationOffset); in TEST_P() 1356 encoder.WriteTimestamp(querySet, 0); in TEST_P() 1357 encoder.ResolveQuerySet(querySet, 0, kQueryCount, destination, kDestinationOffset); in TEST_P() 1370 encoder.WriteTimestamp(querySet, 0); in TEST_P() 1371 encoder.ResolveQuerySet(querySet, 0, kQueryCount, destination, kDestinationOffset); in TEST_P()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | RenderPassEncoder.cpp | 35 MaybeError ValidateQueryIndexOverwrite(QuerySetBase* querySet, in ValidateQueryIndexOverwrite() argument 38 auto it = queryAvailabilityMap.find(querySet); in ValidateQueryIndexOverwrite() 41 queryIndex, querySet); in ValidateQueryIndexOverwrite() 100 void RenderPassEncoder::TrackQueryAvailability(QuerySetBase* querySet, uint32_t queryIndex) { in TrackQueryAvailability() argument 101 DAWN_ASSERT(querySet != nullptr); in TrackQueryAvailability() 105 mUsageTracker.TrackQueryAvailability(querySet, queryIndex); in TrackQueryAvailability() 108 mCommandEncoder->TrackQueryAvailability(querySet, queryIndex); in TrackQueryAvailability() 338 cmd->querySet = mOcclusionQuerySet.Get(); in APIBeginOcclusionQuery() 360 cmd->querySet = mOcclusionQuerySet.Get(); in APIEndOcclusionQuery() 368 void RenderPassEncoder::APIWriteTimestamp(QuerySetBase* querySet, uint32_t queryIndex) { in APIWriteTimestamp() argument [all …]
|
D | CommandEncoder.cpp | 377 MaybeError ValidateQuerySetResolve(const QuerySetBase* querySet, in ValidateQuerySetResolve() argument 382 DAWN_INVALID_IF(firstQuery >= querySet->GetQueryCount(), in ValidateQuerySetResolve() 384 firstQuery, querySet->GetQueryCount(), querySet); in ValidateQuerySetResolve() 387 queryCount > querySet->GetQueryCount() - firstQuery, in ValidateQuerySetResolve() 390 firstQuery, queryCount, querySet->GetQueryCount(), querySet); in ValidateQuerySetResolve() 405 querySet, static_cast<uint64_t>(queryCount) * sizeof(uint64_t), destination, in ValidateQuerySetResolve() 412 QuerySetBase* querySet, in EncodeTimestampsToNanosecondsConversion() argument 422 std::vector<uint32_t> availability{querySet->GetQueryAvailability().begin(), in EncodeTimestampsToNanosecondsConversion() 423 querySet->GetQueryAvailability().end()}; in EncodeTimestampsToNanosecondsConversion() 428 availabilityDesc.size = querySet->GetQueryCount() * sizeof(uint32_t); in EncodeTimestampsToNanosecondsConversion() [all …]
|
D | CommandEncoder.h | 38 void TrackUsedQuerySet(QuerySetBase* querySet); 39 void TrackQueryAvailability(QuerySetBase* querySet, uint32_t queryIndex); 69 void APIResolveQuerySet(QuerySetBase* querySet, 78 void APIWriteTimestamp(QuerySetBase* querySet, uint32_t queryIndex);
|
D | ComputePassEncoder.cpp | 405 void ComputePassEncoder::APIWriteTimestamp(QuerySetBase* querySet, uint32_t queryIndex) { in APIWriteTimestamp() argument 410 DAWN_TRY(GetDevice()->ValidateObject(querySet)); in APIWriteTimestamp() 411 DAWN_TRY(ValidateTimestampQuery(querySet, queryIndex)); in APIWriteTimestamp() 414 mCommandEncoder->TrackQueryAvailability(querySet, queryIndex); in APIWriteTimestamp() 418 cmd->querySet = querySet; in APIWriteTimestamp() 423 "encoding %s.WriteTimestamp(%s, %u).", this, querySet, queryIndex); in APIWriteTimestamp()
|
D | Commands.h | 74 Ref<QuerySetBase> querySet; member 190 Ref<QuerySetBase> querySet; member 217 Ref<QuerySetBase> querySet; member 275 Ref<QuerySetBase> querySet; member
|
D | PassResourceUsageTracker.cpp | 246 void RenderPassResourceUsageTracker::TrackQueryAvailability(QuerySetBase* querySet, in TrackQueryAvailability() argument 250 DAWN_ASSERT(querySet != nullptr); in TrackQueryAvailability() 254 auto it = mQueryAvailabilities.emplace(querySet, querySet->GetQueryCount()).first; in TrackQueryAvailability()
|
D | RenderPassEncoder.h | 62 void APIWriteTimestamp(QuerySetBase* querySet, uint32_t queryIndex); 73 void TrackQueryAvailability(QuerySetBase* querySet, uint32_t queryIndex);
|
D | CommandValidation.cpp | 65 MaybeError ValidateTimestampQuery(QuerySetBase* querySet, uint32_t queryIndex) { in ValidateTimestampQuery() argument 66 DAWN_INVALID_IF(querySet->GetQueryType() != wgpu::QueryType::Timestamp, in ValidateTimestampQuery() 67 "The type of %s is not %s.", querySet, wgpu::QueryType::Timestamp); in ValidateTimestampQuery() 69 DAWN_INVALID_IF(queryIndex >= querySet->GetQueryCount(), in ValidateTimestampQuery() 71 querySet->GetQueryCount(), querySet); in ValidateTimestampQuery()
|
D | PassResourceUsageTracker.h | 70 void TrackQueryAvailability(QuerySetBase* querySet, uint32_t queryIndex);
|
D | ComputePassEncoder.h | 52 void APIWriteTimestamp(QuerySetBase* querySet, uint32_t queryIndex);
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
D | QueryValidationTests.cpp | 75 wgpu::QuerySet querySet = device.CreateQuerySet(&descriptor); in TEST_F() local 76 querySet.Destroy(); in TEST_F() 77 querySet.Destroy(); in TEST_F() 262 wgpu::QuerySet querySet = CreateQuerySet(device, wgpu::QueryType::Timestamp, 1); in TEST_F() local 264 renderPass.occlusionQuerySet = querySet; in TEST_F() 488 wgpu::QuerySet querySet = in TEST_F() local 492 renderPass.occlusionQuerySet = querySet; in TEST_F() 514 wgpu::QuerySet querySet = CreateQuerySet(device, wgpu::QueryType::Occlusion, kQueryCount); in TEST_F() local 521 encoder.ResolveQuerySet(querySet, 0, kQueryCount, destination, 0); in TEST_F() 531 encoder.ResolveQuerySet(querySet, kQueryCount, 0, destination, 0); in TEST_F() [all …]
|
D | LabelTests.cpp | 300 wgpu::QuerySet querySet = device.CreateQuerySet(&descriptor); in TEST_F() local 301 std::string readbackLabel = dawn_native::GetObjectLabelForTesting(querySet.Get()); in TEST_F() 307 wgpu::QuerySet querySet = device.CreateQuerySet(&descriptor); in TEST_F() local 308 querySet.SetLabel(label.c_str()); in TEST_F() 309 std::string readbackLabel = dawn_native::GetObjectLabelForTesting(querySet.Get()); in TEST_F() 316 wgpu::QuerySet querySet = device.CreateQuerySet(&descriptor); in TEST_F() local 317 std::string readbackLabel = dawn_native::GetObjectLabelForTesting(querySet.Get()); in TEST_F()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | QuerySetD3D12.cpp | 39 Ref<QuerySet> querySet = AcquireRef(new QuerySet(device, descriptor)); in Create() local 40 DAWN_TRY(querySet->Initialize()); in Create() 41 return querySet; in Create()
|
D | CommandBufferD3D12.cpp | 93 QuerySet* querySet = ToBackend(cmd->querySet.Get()); in RecordWriteTimestampCmd() local 94 ASSERT(D3D12QueryType(querySet->GetQueryType()) == D3D12_QUERY_TYPE_TIMESTAMP); in RecordWriteTimestampCmd() 95 commandList->EndQuery(querySet->GetQueryHeap(), D3D12_QUERY_TYPE_TIMESTAMP, in RecordWriteTimestampCmd() 101 QuerySet* querySet, in RecordResolveQuerySetCmd() argument 106 const std::vector<bool>& availability = querySet->GetQueryAvailability(); in RecordResolveQuerySetCmd() 131 querySet->GetQueryHeap(), D3D12QueryType(querySet->GetQueryType()), in RecordResolveQuerySetCmd() 945 QuerySet* querySet = ToBackend(cmd->querySet.Get()); in RecordCommands() local 961 auto startIt = querySet->GetQueryAvailability().begin() + firstQuery; in RecordCommands() 962 auto endIt = querySet->GetQueryAvailability().begin() + firstQuery + queryCount; in RecordCommands() 973 RecordResolveQuerySetCmd(commandList, device, querySet, firstQuery, queryCount, in RecordCommands() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/ |
D | GPUCommandEncoder.cpp | 144 interop::Interface<interop::GPUQuerySet> querySet, in writeTimestamp() argument 149 if (!conv(q, querySet)) { in writeTimestamp() 157 interop::Interface<interop::GPUQuerySet> querySet, in resolveQuerySet() argument 170 if (!conv(q, querySet) || // in resolveQuerySet()
|
D | GPUComputePassEncoder.cpp | 55 interop::Interface<interop::GPUQuerySet> querySet, in beginPipelineStatisticsQuery() argument 65 interop::Interface<interop::GPUQuerySet> querySet, in writeTimestamp() argument 70 if (!conv(q, querySet)) { in writeTimestamp()
|
D | GPUComputePassEncoder.h | 47 interop::Interface<interop::GPUQuerySet> querySet, 51 interop::Interface<interop::GPUQuerySet> querySet,
|
D | GPUCommandEncoder.h | 60 interop::Interface<interop::GPUQuerySet> querySet, 63 interop::Interface<interop::GPUQuerySet> querySet,
|
D | GPURenderPassEncoder.cpp | 76 interop::Interface<interop::GPUQuerySet> querySet, in beginPipelineStatisticsQuery() argument 86 interop::Interface<interop::GPUQuerySet> querySet, in writeTimestamp() argument 91 if (!conv(q, querySet)) { in writeTimestamp()
|
D | GPURenderPassEncoder.h | 54 interop::Interface<interop::GPUQuerySet> querySet, 58 interop::Interface<interop::GPUQuerySet> querySet,
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | CommandBufferVk.cpp | 348 QuerySetBase* querySet, in ResetUsedQuerySetsOnRenderPass() argument 350 ASSERT(availability.size() == querySet->GetQueryAvailability().size()); in ResetUsedQuerySetsOnRenderPass() 369 device->fn.CmdResetQueryPool(commands, ToBackend(querySet)->GetHandle(), queryIndex, in ResetUsedQuerySetsOnRenderPass() 381 QuerySet* querySet = ToBackend(cmd->querySet.Get()); in RecordWriteTimestampCmd() local 384 querySet->GetHandle(), cmd->queryIndex); in RecordWriteTimestampCmd() 389 QuerySet* querySet, in RecordResolveQuerySetCmd() argument 394 const std::vector<bool>& availability = querySet->GetQueryAvailability(); in RecordResolveQuerySetCmd() 419 commands, querySet->GetHandle(), resolveQueryIndex, resolveQueryCount, in RecordResolveQuerySetCmd() 759 QuerySet* querySet = ToBackend(cmd->querySet.Get()); in RecordCommands() local 769 auto startIt = querySet->GetQueryAvailability().begin() + cmd->firstQuery; in RecordCommands() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/native/ |
D | DestroyObjectTests.cpp | 339 Ref<QuerySetBase> querySet; in TEST_F() local 342 DAWN_ASSERT_AND_ASSIGN(querySet, mDevice.CreateQuerySet(&desc)); in TEST_F() 344 EXPECT_TRUE(querySet->IsAlive()); in TEST_F() 655 Ref<QuerySetBase> querySet; in TEST_F() local 660 DAWN_ASSERT_AND_ASSIGN(querySet, mDevice.CreateQuerySet(&desc)); in TEST_F() 661 EXPECT_TRUE(querySet->IsAlive()); in TEST_F() 748 EXPECT_FALSE(querySet->IsAlive()); in TEST_F()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/ |
D | CommandBufferMTL.mm | 939 QuerySet* querySet = ToBackend(cmd->querySet.Get()); 945 if (querySet->GetQueryType() == wgpu::QueryType::Occlusion) { 947 copyFromBuffer:querySet->GetVisibilityBuffer() 955 resolveCounters:querySet->GetCounterSampleBuffer() 968 QuerySet* querySet = ToBackend(cmd->querySet.Get()); 972 sampleCountersInBuffer:querySet->GetCounterSampleBuffer() 1144 QuerySet* querySet = ToBackend(cmd->querySet.Get()); 1147 [encoder sampleCountersInBuffer:querySet->GetCounterSampleBuffer() 1540 QuerySet* querySet = ToBackend(cmd->querySet.Get()); 1543 [encoder sampleCountersInBuffer:querySet->GetCounterSampleBuffer()
|