/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/ |
D | TextureZeroInitTests.cpp | 223 dawn::Texture srcTexture = device.CreateTexture(&srcDescriptor); in TEST_P() local 226 utils::CreateTextureCopyView(srcTexture, 0, 0, {0, 0, 0}); in TEST_P() 247 EXPECT_TEXTURE_RGBA8_EQ(expected.data(), srcTexture, 0, 0, kSize, kSize, 0, 0); in TEST_P() 259 dawn::Texture srcTexture = device.CreateTexture(&srcDescriptor); in TEST_P() local 268 utils::CreateTextureCopyView(srcTexture, 0, 0, {0, 0, 0}); in TEST_P() 277 utils::CreateTextureCopyView(srcTexture, 0, 0, {0, 0, 0}); in TEST_P() 298 EXPECT_TEXTURE_RGBA8_EQ(expectedWith100.data(), srcTexture, 0, 0, kSize, kSize, 0, 0); in TEST_P() 312 dawn::Texture srcTexture = device.CreateTexture(&srcDescriptor); in TEST_P() local 319 utils::ComboRenderPassDescriptor renderPassDescriptor({srcTexture.CreateDefaultView()}, in TEST_P() 335 EXPECT_TEXTURE_RGBA8_EQ(expected.data(), srcTexture, 0, 0, kSize, kSize, 0, 0); in TEST_P() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineImageUtil.cpp | 422 const TestTexture& srcTexture, in uploadTestTextureInternal() argument 434 std::vector<VkBufferImageCopy> copyRegions = srcTexture.getBufferCopyRegions(); in uploadTestTextureInternal() 435 …deUint32 bufferSize = (srcTexture.isCompressed())? srcTexture.getCompressedSize(): srcTextu… in uploadTestTextureInternal() 467 srcTexture.write(reinterpret_cast<deUint8*>(bufferAlloc->getHostPtr())); in uploadTestTextureInternal() 488 …ffer, bufferSize, copyRegions, DE_NULL, imageAspectFlags, srcTexture.getNumLevels(), srcTexture.ge… in uploadTestTextureInternal() 518 const TestTexture& srcTexture, in uploadTestTextureInternalSparse() argument 523 …deUint32 bufferSize = (srcTexture.isCompressed()) ? srcTexture.getCompressedSize(): srcTex… in uploadTestTextureInternalSparse() 530 std::vector<VkBufferImageCopy> copyRegions = srcTexture.getBufferCopyRegions(); in uploadTestTextureInternalSparse() 574 srcTexture.write(reinterpret_cast<deUint8*>(bufferAlloc->getHostPtr())); in uploadTestTextureInternalSparse() 603 const TestTexture& srcTexture, in uploadTestTexture() argument [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/ |
D | vktPipelineImageUtil.cpp | 422 const TestTexture& srcTexture, in uploadTestTextureInternal() argument 434 std::vector<VkBufferImageCopy> copyRegions = srcTexture.getBufferCopyRegions(); in uploadTestTextureInternal() 435 …deUint32 bufferSize = (srcTexture.isCompressed())? srcTexture.getCompressedSize(): srcTextu… in uploadTestTextureInternal() 467 srcTexture.write(reinterpret_cast<deUint8*>(bufferAlloc->getHostPtr())); in uploadTestTextureInternal() 488 …ffer, bufferSize, copyRegions, DE_NULL, imageAspectFlags, srcTexture.getNumLevels(), srcTexture.ge… in uploadTestTextureInternal() 518 const TestTexture& srcTexture, in uploadTestTextureInternalSparse() argument 523 …deUint32 bufferSize = (srcTexture.isCompressed()) ? srcTexture.getCompressedSize(): srcTex… in uploadTestTextureInternalSparse() 530 std::vector<VkBufferImageCopy> copyRegions = srcTexture.getBufferCopyRegions(); in uploadTestTextureInternalSparse() 574 srcTexture.write(reinterpret_cast<deUint8*>(bufferAlloc->getHostPtr())); in uploadTestTextureInternalSparse() 603 const TestTexture& srcTexture, in uploadTestTexture() argument [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
D | VideoViewsValidationTests.cpp | 120 wgpu::Texture srcTexture = CreateVideoTextureForTest( in TEST_F() local 126 wgpu::ImageCopyTexture copySrc = utils::CreateImageCopyTexture(srcTexture, 0, {0, 0, 0}); in TEST_F() 139 wgpu::Texture srcTexture = CreateVideoTextureForTest( in TEST_F() local 146 srcTexture, 0, {0, 0, 0}, wgpu::TextureAspect::Plane0Only); in TEST_F() 159 copySrc = utils::CreateImageCopyTexture(srcTexture, 0, {0, 0, 0}, in TEST_F() 171 wgpu::Texture srcTexture = CreateVideoTextureForTest( in TEST_F() local 179 wgpu::ImageCopyTexture copySrc = utils::CreateImageCopyTexture(srcTexture, 0, {0, 0, 0}); in TEST_F() 192 wgpu::Texture srcTexture = CreateVideoTextureForTest( in TEST_F() local 201 srcTexture, 0, {0, 0, 0}, wgpu::TextureAspect::Plane0Only); in TEST_F() 213 copySrc = utils::CreateImageCopyTexture(srcTexture, 0, {0, 0, 0}, in TEST_F()
|
D | CopyTextureForBrowserTests.cpp | 46 wgpu::Texture srcTexture, in TestCopyTextureForBrowser() argument 55 utils::CreateImageCopyTexture(srcTexture, srcLevel, srcOrigin, aspect); in TestCopyTextureForBrowser()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/ |
D | gen_mipmap.metal | 42 texture3d<float> srcTexture [[texture(0)]], 67 texel1 = srcTexture.sample(textureSampler, texCoords, level(options.srcLevel)); 220 texture2d<float> srcTexture [[texture(0)]], 229 ushort2(srcTexture.get_width(firstMipLevel), srcTexture.get_height(firstMipLevel)); 247 texel1 = srcTexture.sample(textureSampler, texCoords, level(options.srcLevel)); 358 TextureTypeR srcTexture, 466 texturecube<float> srcTexture [[texture(0)]], 475 ushort2(srcTexture.get_width(firstMipLevel), srcTexture.get_height(firstMipLevel)); 485 mip1Texel = srcTexture.sample(textureSampler, cubeTexcoords(texCoords, int(gIndices.z)), 508 generateCubeOr2DArray2ndAndMoreMipmaps(lIndex, gIndices, srcTexture, dstMip2, dstMip3, dstMip4, [all …]
|
D | blit.metal | 68 static uint2 getImageCoords(SrcTexture2d srcTexture, float2 texCoords) 70 uint2 dimens(srcTexture.get_width(), srcTexture.get_height()); 77 static inline vec<T, 4> blitSampleTextureMS(texture2d_ms<T> srcTexture, float2 texCoords) 79 uint2 coords = getImageCoords(srcTexture, texCoords); 80 return resolveTextureMS(srcTexture, coords); 84 static inline vec<T, 4> blitSampleTexture3D(texture3d<T> srcTexture, 89 uint depth = srcTexture.get_depth(options.srcLevel); 92 return srcTexture.sample(textureSampler, float3(texCoords, zCoord), level(options.srcLevel));
|
D | common.h | 96 static inline vec<T, 4> resolveTextureMS(texture2d_ms<T> srcTexture, uint2 coords) in resolveTextureMS() argument 98 uint samples = srcTexture.get_num_samples(); in resolveTextureMS() 104 output += srcTexture.read(coords, sample); in resolveTextureMS()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_video_enc.h | 254 struct pipe_video_buffer * srcTexture, 258 struct pipe_video_buffer * srcTexture, 262 struct pipe_video_buffer * srcTexture, 284 struct pipe_video_buffer * srcTexture, 297 struct pipe_video_buffer * srcTexture,
|
D | d3d12_video_enc_h264.h | 31 struct pipe_video_buffer * srcTexture, 52 … struct pipe_video_buffer * srcTexture,
|
D | d3d12_video_enc.cpp | 172 struct pipe_video_buffer * srcTexture, in d3d12_video_encoder_update_picparams_tracking() argument 183 …d3d12_video_encoder_update_current_frame_pic_params_info_h264(pD3D12Enc, srcTexture, picture, curr… in d3d12_video_encoder_update_picparams_tracking() 197 struct pipe_video_buffer * srcTexture, in d3d12_video_encoder_reconfigure_encoder_objects() argument 821 struct pipe_video_buffer * srcTexture, in d3d12_video_encoder_update_current_encoder_config_state() argument 828 …return d3d12_video_encoder_update_current_encoder_config_state_h264(pD3D12Enc, srcTexture, picture… in d3d12_video_encoder_update_current_encoder_config_state() 941 struct pipe_video_buffer * srcTexture, in d3d12_video_encoder_prepare_output_buffers() argument 1018 struct pipe_video_buffer * srcTexture, in d3d12_video_encoder_reconfigure_session() argument 1022 if(!d3d12_video_encoder_update_current_encoder_config_state(pD3D12Enc, srcTexture, picture)) { in d3d12_video_encoder_reconfigure_session() 1026 if(!d3d12_video_encoder_reconfigure_encoder_objects(pD3D12Enc, srcTexture, picture)) { in d3d12_video_encoder_reconfigure_session() 1030 d3d12_video_encoder_update_picparams_tracking(pD3D12Enc, srcTexture, picture); in d3d12_video_encoder_reconfigure_session() [all …]
|
D | d3d12_video_enc_h264.cpp | 109 struct pipe_video_buffer *srcTexture, in d3d12_video_encoder_update_current_frame_pic_params_info_h264() argument 538 struct pipe_video_buffer *srcTexture, in d3d12_video_encoder_update_current_encoder_config_state_h264() argument 571 if ((pD3D12Enc->m_currentEncodeConfig.m_currentResolution.Width != srcTexture->width) || in d3d12_video_encoder_update_current_encoder_config_state_h264() 572 (pD3D12Enc->m_currentEncodeConfig.m_currentResolution.Height != srcTexture->height)) { in d3d12_video_encoder_update_current_encoder_config_state_h264() 575 pD3D12Enc->m_currentEncodeConfig.m_currentResolution.Width = srcTexture->width; in d3d12_video_encoder_update_current_encoder_config_state_h264() 576 pD3D12Enc->m_currentEncodeConfig.m_currentResolution.Height = srcTexture->height; in d3d12_video_encoder_update_current_encoder_config_state_h264()
|
/third_party/skia/src/gpu/d3d/ |
D | GrD3DCommandList.cpp | 224 ID3D12Resource* srcTexture = src->d3dResource(); in copyTextureToTexture() local 226 fCommandList->CopyResource(dstTexture, srcTexture); in copyTextureToTexture() 231 srcLoc.pResource = srcTexture; in copyTextureToTexture() 506 const GrD3DTextureResource* srcTexture, in resolveSubresourceRegion() argument 508 SkASSERT(dstTexture->dxgiFormat() == srcTexture->dxgiFormat()); in resolveSubresourceRegion() 510 SkASSERT(srcTexture->currentState() == D3D12_RESOURCE_STATE_RESOLVE_SOURCE); in resolveSubresourceRegion() 513 this->addResource(srcTexture->resource()); in resolveSubresourceRegion() 520 srcTexture->d3dResource(), 0, srcRect, in resolveSubresourceRegion() 521 srcTexture->dxgiFormat(), in resolveSubresourceRegion() 527 fCommandList->ResolveSubresource(dstTexture->d3dResource(), 0, srcTexture->d3dResource(), 0, in resolveSubresourceRegion() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | CopyTextureForBrowserTests.cpp | 320 wgpu::Texture srcTexture, in RunCopyExternalImageToTexture() argument 326 utils::CreateImageCopyTexture(srcTexture, srcSpec.level, srcSpec.copyOrigin); in RunCopyExternalImageToTexture() 334 wgpu::Texture srcTexture, in CheckResultInBuiltInComputePipeline() argument 365 wgpu::TextureView srcTextureView = srcTexture.CreateView(&srcTextureViewDesc); in CheckResultInBuiltInComputePipeline() 416 wgpu::Texture srcTexture = local 452 RunCopyExternalImageToTexture(srcSpec, srcTexture, dstSpec, dstTexture, copySize, options); 455 CheckResultInBuiltInComputePipeline(srcSpec, srcTexture, dstSpec, dstTexture, copySize, 525 wgpu::Texture srcTexture = CreateAndInitTexture( in DoColorConversionTest() local 535 RunCopyExternalImageToTexture(srcTextureSpec, srcTexture, dstTextureSpec, dstTexture, in DoColorConversionTest() 539 CheckResultInBuiltInComputePipeline(srcTextureSpec, srcTexture, dstTextureSpec, dstTexture, in DoColorConversionTest()
|
D | TextureZeroInitTests.cpp | 377 wgpu::Texture srcTexture = device.CreateTexture(&srcDescriptor); in TEST_P() local 380 utils::CreateImageCopyTexture(srcTexture, 0, {0, 0, 0}); in TEST_P() 401 EXPECT_TEXTURE_EQ(expected.data(), srcTexture, {0, 0}, {kSize, kSize}); in TEST_P() 405 EXPECT_EQ(true, dawn_native::IsTextureSubresourceInitialized(srcTexture.Get(), 0, 1, 0, 1)); in TEST_P() 417 wgpu::Texture srcTexture = device.CreateTexture(&srcDescriptor); in TEST_P() local 427 utils::CreateImageCopyTexture(srcTexture, 0, {0, 0, 0}); in TEST_P() 436 utils::CreateImageCopyTexture(srcTexture, 0, {0, 0, 0}); in TEST_P() 457 EXPECT_TEXTURE_EQ(expectedWith100.data(), srcTexture, {0, 0}, {kSize, kSize}); in TEST_P() 462 EXPECT_EQ(true, dawn_native::IsTextureSubresourceInitialized(srcTexture.Get(), 0, 1, 0, 1)); in TEST_P() 474 wgpu::Texture srcTexture = device.CreateTexture(&srcDescriptor); in TEST_P() local [all …]
|
/third_party/flutter/skia/src/effects/imagefilters/ |
D | SkMorphologyImageFilter.cpp | 548 sk_sp<GrTextureProxy> srcTexture(input->asTextureProxyRef(context)); in apply_morphology() local 549 SkASSERT(srcTexture); in apply_morphology() 554 const GrFixedClip clip(SkIRect::MakeWH(srcTexture->width(), srcTexture->height())); in apply_morphology() 573 srcTexture->isProtected() ? GrProtected::kYes : GrProtected::kNo)); in apply_morphology() 578 apply_morphology_pass(dstRTContext.get(), clip, std::move(srcTexture), srcRect, dstRect, in apply_morphology() 586 srcTexture = dstRTContext->asTextureProxyRef(); in apply_morphology() 601 srcTexture->isProtected() ? GrProtected::kYes : GrProtected::kNo)); in apply_morphology() 606 apply_morphology_pass(dstRTContext.get(), clip, std::move(srcTexture), srcRect, dstRect, in apply_morphology() 609 srcTexture = dstRTContext->asTextureProxyRef(); in apply_morphology() 615 std::move(srcTexture), std::move(colorSpace), in apply_morphology()
|
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/ |
D | EGLProtectedContentTest.cpp | 591 GLuint srcTexture = 0; in textureFromImageTest() local 596 ASSERT_FALSE(createTexture(isProtectedTexture, &srcTexture)); in textureFromImageTest() 600 ASSERT_TRUE(createTexture(isProtectedTexture, &srcTexture)); in textureFromImageTest() 601 EXPECT_TRUE(fillTexture(srcTexture, GLColor::red)); in textureFromImageTest() 605 (void *)(static_cast<intptr_t>(srcTexture)), &image)); in textureFromImageTest() 617 glDeleteTextures(1, &srcTexture); in textureFromImageTest()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | SRGBFramebufferTest.cpp | 267 GLTexture srcTexture; in TEST_P() local 268 glBindTexture(GL_TEXTURE_2D, srcTexture.get()); in TEST_P() 274 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTexture.get(), in TEST_P()
|
D | RobustResourceInitTest.cpp | 1699 GLTexture srcTexture; in TEST_P() local 1700 glBindTexture(GL_TEXTURE_2D, srcTexture); in TEST_P() 1706 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTexture, 0); in TEST_P() 1732 glBindTexture(GL_TEXTURE_2D, srcTexture); in TEST_P() 1735 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTexture, 0); in TEST_P() 1817 GLTexture srcTexture; in TEST_P() local 1823 glBindTexture(GL_TEXTURE_3D, srcTexture); in TEST_P() 1827 glFramebufferTextureLayer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, srcTexture, 0, 0); in TEST_P() 1852 glBindTexture(GL_TEXTURE_3D, srcTexture); in TEST_P() 1855 glFramebufferTextureLayer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, srcTexture, 0, 0); in TEST_P()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/ |
D | RenderbufferImpl.h | 67 const gl::Texture *srcTexture, 116 const gl::Texture *srcTexture, in copyTextureSubData() argument
|
/third_party/flutter/skia/src/gpu/dawn/ |
D | GrDawnGpu.cpp | 386 dawn::TextureCopyView srcTexture; in onReadPixels() local 387 srcTexture.texture = tex; in onReadPixels() 388 srcTexture.origin = {(uint32_t) left, (uint32_t) top, 0}; in onReadPixels() 398 encoder.CopyTextureToBuffer(&srcTexture, &dstBuffer, ©Size); in onReadPixels()
|
/third_party/skia/src/gpu/dawn/ |
D | GrDawnGpu.cpp | 589 wgpu::Texture srcTexture = get_dawn_texture_from_surface(src); in onCopySurface() local 591 if (!srcTexture || !dstTexture) { in onCopySurface() 598 srcTextureView.texture = srcTexture; in onCopySurface() 634 wgpu::ImageCopyTexture srcTexture; in onReadPixels() local 635 srcTexture.texture = tex; in onReadPixels() 636 srcTexture.origin = {(uint32_t) rect.left(), (uint32_t) rect.top(), 0}; in onReadPixels() 645 this->getCopyEncoder().CopyTextureToBuffer(&srcTexture, &dstBuffer, ©Size); in onReadPixels()
|
/third_party/skia/experimental/graphite/src/ |
D | Device.cpp | 103 sk_sp<Texture> srcTexture = srcProxy->refTexture(); in onReadPixels() local 104 SkASSERT(srcTexture); in onReadPixels() 117 CopyTextureToBufferTask::Make(std::move(srcTexture), in onReadPixels()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | CommandBufferGL.cpp | 478 Texture* srcTexture = ToBackend(src.texture.Get()); in CopyTextureToTextureWithBlit() local 521 if (srcTexture->GetArrayLayers() == 1 && in CopyTextureToTextureWithBlit() 522 srcTexture->GetDimension() == wgpu::TextureDimension::e2D) { in CopyTextureToTextureWithBlit() 524 srcTexture->GetGLTarget(), srcTexture->GetHandle(), in CopyTextureToTextureWithBlit() 528 srcTexture->GetHandle(), in CopyTextureToTextureWithBlit() 803 Texture* srcTexture = ToBackend(src.texture.Get()); in Execute() local 809 srcTexture->EnsureSubresourceContentInitialized(srcRange); in Execute() 816 gl.CopyImageSubData(srcTexture->GetHandle(), srcTexture->GetGLTarget(), in Execute()
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | RobustResourceInitTest.cpp | 1483 GLTexture srcTexture; in TEST_P() local 1484 glBindTexture(GL_TEXTURE_2D, srcTexture); in TEST_P() 1490 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTexture, 0); in TEST_P() 1516 glBindTexture(GL_TEXTURE_2D, srcTexture); in TEST_P() 1519 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, srcTexture, 0); in TEST_P() 1549 GLTexture srcTexture; in TEST_P() local 1555 glBindTexture(GL_TEXTURE_3D, srcTexture); in TEST_P() 1559 glFramebufferTextureLayer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, srcTexture, 0, 0); in TEST_P() 1584 glBindTexture(GL_TEXTURE_3D, srcTexture); in TEST_P() 1587 glFramebufferTextureLayer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, srcTexture, 0, 0); in TEST_P()
|