Home
last modified time | relevance | path

Searched refs:mipLevelCount (Results 1 – 25 of 144) sorted by relevance

123456

/third_party/skia/third_party/externals/dawn/src/tests/perf_tests/
DSubresourceTrackingPerf.cpp26 mipLevelCount(mipLevelCountIn) { in SubresourceTrackingParams()
29 uint32_t mipLevelCount; member
35 ostream << "_mipLevel_" << param.mipLevelCount; in operator <<()
57 materialDesc.size = {1u << (params.mipLevelCount - 1), 1u << (params.mipLevelCount - 1), in SetUp()
59 materialDesc.mipLevelCount = params.mipLevelCount; in SetUp()
67 uploadTexDesc.mipLevelCount = 1; in SetUp()
104 wgpu::Extent3D copySize = {1u << (params.mipLevelCount - 1), in Step()
105 1u << (params.mipLevelCount - 1), 1}; in Step()
111 for (uint32_t level = 1; level < params.mipLevelCount; level++) { in Step()
115 rtViewDesc.mipLevelCount = 1; in Step()
/third_party/skia/src/gpu/d3d/
DGrD3DGpu.cpp260 int mipLevelCount, in createD3DTexture() argument
270 SkASSERT(mipLevelCount > 0); in createD3DTexture()
279 resourceDesc.MipLevels = mipLevelCount; in createD3DTexture()
302 int mipLevelCount, in onCreateTexture() argument
308 GrMipmapStatus mipmapStatus = mipLevelCount > 1 ? GrMipmapStatus::kDirty in onCreateTexture()
313 mipLevelCount, mipmapStatus); in onCreateTexture()
358 int mipLevelCount = 1; in onCreateCompressedTexture() local
360 mipLevelCount = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in onCreateCompressedTexture()
362 GrMipmapStatus mipmapStatus = mipLevelCount > 1 ? GrMipmapStatus::kValid in onCreateCompressedTexture()
367 mipLevelCount, mipmapStatus); in onCreateCompressedTexture()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DTextureViewValidationTests.cpp32 uint32_t mipLevelCount = kDefaultMipLevels, in Create2DArrayTexture() argument
41 descriptor.mipLevelCount = mipLevelCount; in Create2DArrayTexture()
52 descriptor.mipLevelCount = kDefaultMipLevels; in Create3DTexture()
62 descriptor.mipLevelCount = kDefaultMipLevels; in CreateDepthStencilTexture()
72 descriptor.mipLevelCount = kDefaultMipLevels; in CreateDefaultViewDescriptor()
95 descriptor.mipLevelCount = 0; in TEST_F()
133 descriptor.mipLevelCount = WGPU_MIP_LEVEL_COUNT_UNDEFINED; in TEST_F()
149 descriptor.mipLevelCount = kDefaultMipLevels + 1; in TEST_F()
152 descriptor.mipLevelCount = kDefaultMipLevels; in TEST_F()
155 descriptor.mipLevelCount = 2; in TEST_F()
[all …]
DTextureValidationTests.cpp49 descriptor.mipLevelCount = kDefaultMipLevels; in CreateDefaultTextureDescriptor()
105 descriptor.mipLevelCount = 2; in TEST_F()
164 descriptor.mipLevelCount = 1; in TEST_F()
174 descriptor.mipLevelCount = 0; in TEST_F()
185 descriptor.mipLevelCount = 6; in TEST_F()
198 descriptor.mipLevelCount = 5; in TEST_F()
202 descriptor.mipLevelCount = 6; in TEST_F()
214 descriptor.mipLevelCount = 5; in TEST_F()
218 descriptor.mipLevelCount = 6; in TEST_F()
227 descriptor.mipLevelCount = 100; in TEST_F()
[all …]
DTextureSubresourceTests.cpp26 wgpu::Texture CreateTexture(uint32_t mipLevelCount, in CreateTexture() argument
33 texDesc.mipLevelCount = mipLevelCount; in CreateTexture()
47 viewDesc.mipLevelCount = 1; in CreateTextureView()
DRenderPassDescriptorValidationTests.cpp51 uint32_t mipLevelCount, in CreateTexture() argument
61 descriptor.mipLevelCount = mipLevelCount; in CreateTexture()
229 descriptor.mipLevelCount = kLevelCount; in TEST_F()
281 baseDescriptor.mipLevelCount = kLevelCount; in TEST_F()
400 baseDescriptor.mipLevelCount = kLevelCount; in TEST_F()
406 descriptor.mipLevelCount = 2; in TEST_F()
417 descriptor.mipLevelCount = 2; in TEST_F()
429 descriptor.mipLevelCount = 1; in TEST_F()
441 descriptor.mipLevelCount = 1; in TEST_F()
453 descriptor.mipLevelCount = 1; in TEST_F()
[all …]
/third_party/skia/src/gpu/
DGrGpu.cpp54 const GrMipLevel* texels, int mipLevelCount, const GrCaps* caps) { in validate_texel_levels() argument
55 SkASSERT(mipLevelCount > 0); in validate_texel_levels()
61 for (int currentMipLevel = 0; currentMipLevel < mipLevelCount; ++currentMipLevel) { in validate_texel_levels()
79 if (currentMipLevel != mipLevelCount - 1) { in validate_texel_levels()
88 if (mipLevelCount != 1 && (w != 1 || h != 1)) { in validate_texel_levels()
95 return levelsWithPixelsCnt == 1 || levelsWithPixelsCnt == mipLevelCount; in validate_texel_levels()
105 int mipLevelCount, in createTextureCommon() argument
112 GrMipmapped mipMapped = mipLevelCount > 1 ? GrMipmapped::kYes : GrMipmapped::kNo; in createTextureCommon()
135 mipLevelCount, in createTextureCommon()
160 int mipLevelCount = 1; in createTexture() local
[all …]
/third_party/flutter/skia/src/gpu/
DGrGpu.cpp102 static bool validate_levels(int w, int h, const GrMipLevel texels[], int mipLevelCount, int bpp, in validate_levels() argument
104 SkASSERT(mipLevelCount > 0); in validate_levels()
107 for (int currentMipLevel = 0; currentMipLevel < mipLevelCount; ++currentMipLevel) { in validate_levels()
125 if (currentMipLevel != mipLevelCount - 1) { in validate_levels()
134 if (mipLevelCount != 1 && (w != 1 || h != 1)) { in validate_levels()
144 return levelsWithPixelsCnt == mipLevelCount; in validate_levels()
154 int mipLevelCount) { in createTexture() argument
161 GrMipMapped mipMapped = mipLevelCount > 1 ? GrMipMapped::kYes : GrMipMapped::kNo; in createTexture()
175 if (mipLevelCount) { in createTexture()
177 if (!validate_levels(desc.fWidth, desc.fHeight, texels, mipLevelCount, bpp, this->caps(), in createTexture()
[all …]
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlGpu.mm195 int mipLevelCount) {
198 SkASSERT(1 == mipLevelCount ||
203 SkASSERT(1 == mipLevelCount || mipLevelCount == (tex->texturePriv().maxMipMapLevel() + 1));
218 SkASSERT(1 == mipLevelCount || mipLevelCount == (int)mtlTexture.mipmapLevelCount);
220 if (1 == mipLevelCount && !texels[0].fPixels) {
224 for (int i = 0; i < mipLevelCount; ++i) {
234 SkTArray<size_t> individualMipOffsets(mipLevelCount);
237 mipLevelCount);
254 for (int currentMipLevel = 0; currentMipLevel < mipLevelCount; currentMipLevel++) {
256 SkASSERT(1 == mipLevelCount || currentHeight == layerHeight);
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DTextureViewTests.cpp34 uint32_t mipLevelCount, in Create2DTexture() argument
43 descriptor.mipLevelCount = mipLevelCount; in Create2DTexture()
50 uint32_t mipLevelCount, in Create3DTexture() argument
57 descriptor.mipLevelCount = mipLevelCount; in Create3DTexture()
122 void initTexture(uint32_t arrayLayerCount, uint32_t mipLevelCount) { in initTexture() argument
123 ASSERT(arrayLayerCount > 0 && mipLevelCount > 0); in initTexture()
125 const uint32_t textureWidthLevel0 = 1 << mipLevelCount; in initTexture()
126 const uint32_t textureHeightLevel0 = 1 << mipLevelCount; in initTexture()
130 mipLevelCount, kUsage); in initTexture()
135 mDefaultTextureViewDescriptor.mipLevelCount = mipLevelCount; in initTexture()
[all …]
DSamplerFilterAnisotropicTests.cpp98 const uint32_t mipLevelCount = colors.size(); in InitTexture() local
100 const uint32_t textureWidthLevel0 = 1 << (mipLevelCount - 1); in InitTexture()
101 const uint32_t textureHeightLevel0 = 1 << (mipLevelCount - 1); in InitTexture()
110 descriptor.mipLevelCount = mipLevelCount; in InitTexture()
119 for (uint32_t level = 0; level < mipLevelCount; ++level) { in InitTexture()
DDepthStencilCopyTests.cpp48 uint32_t mipLevelCount = 1) { in CreateDepthStencilTexture() argument
53 texDescriptor.mipLevelCount = mipLevelCount; in CreateDepthStencilTexture()
60 uint32_t mipLevelCount = 1) { in CreateDepthTexture() argument
65 texDescriptor.mipLevelCount = mipLevelCount; in CreateDepthTexture()
94 viewDesc.mipLevelCount = 1; in InitializeDepthTextureRegion()
125 viewDesc.mipLevelCount = 1; in InitializeDepthStencilTextureRegion()
DTextureSubresourceTests.cpp25 wgpu::Texture CreateTexture(uint32_t mipLevelCount, in CreateTexture() argument
32 texDesc.mipLevelCount = mipLevelCount; in CreateTexture()
46 viewDesc.mipLevelCount = 1; in CreateTextureView()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DTextureViewTests.cpp34 uint32_t mipLevelCount, in Create2DTexture() argument
44 descriptor.mipLevelCount = mipLevelCount; in Create2DTexture()
112 void initTexture(uint32_t arrayLayerCount, uint32_t mipLevelCount) { in initTexture() argument
113 ASSERT(arrayLayerCount > 0 && mipLevelCount > 0); in initTexture()
115 const uint32_t textureWidthLevel0 = 1 << mipLevelCount; in initTexture()
116 const uint32_t textureHeightLevel0 = 1 << mipLevelCount; in initTexture()
120 … device, textureWidthLevel0, textureHeightLevel0, arrayLayerCount, mipLevelCount, kUsage); in initTexture()
125 mDefaultTextureViewDescriptor.mipLevelCount = mipLevelCount; in initTexture()
138 for (uint32_t level = 0; level < mipLevelCount; ++level) { in initTexture()
211 descriptor.mipLevelCount = 1; in Texture2DViewTest()
[all …]
DNonzeroTextureCreationTests.cpp39 descriptor.mipLevelCount = 1; in TEST_P()
59 descriptor.mipLevelCount = mipLevels; in TEST_P()
84 descriptor.mipLevelCount = 1; in TEST_P()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/validation/
DTextureValidationTests.cpp31 descriptor.mipLevelCount = kDefaultMipLevels; in CreateDefaultTextureDescriptor()
83 descriptor.mipLevelCount = 2; in TEST_F()
107 descriptor.mipLevelCount = 1; in TEST_F()
117 descriptor.mipLevelCount = 0; in TEST_F()
128 descriptor.mipLevelCount = 6; in TEST_F()
139 descriptor.mipLevelCount = 7; in TEST_F()
150 descriptor.mipLevelCount = 7; in TEST_F()
160 descriptor.mipLevelCount = 100; in TEST_F()
171 descriptor.mipLevelCount = 6; in TEST_F()
DTextureViewValidationTests.cpp32 uint32_t mipLevelCount = kDefaultMipLevels, in Create2DArrayTexture() argument
42 descriptor.mipLevelCount = mipLevelCount; in Create2DArrayTexture()
52 descriptor.mipLevelCount = kDefaultMipLevels; in CreateDefaultViewDescriptor()
91 descriptor.mipLevelCount = 0; in TEST_F()
99 descriptor.mipLevelCount = 2; in TEST_F()
DRenderPassDescriptorValidationTests.cpp49 uint32_t mipLevelCount, in CreateTexture() argument
60 descriptor.mipLevelCount = mipLevelCount; in CreateTexture()
217 baseDescriptor.mipLevelCount = kLevelCount; in TEST_F()
310 baseDescriptor.mipLevelCount = kLevelCount; in TEST_F()
316 descriptor.mipLevelCount = 2; in TEST_F()
327 descriptor.mipLevelCount = 2; in TEST_F()
339 descriptor.mipLevelCount = 1; in TEST_F()
351 descriptor.mipLevelCount = 1; in TEST_F()
363 descriptor.mipLevelCount = 1; in TEST_F()
375 descriptor.mipLevelCount = 1; in TEST_F()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DTexture.cpp101 DAWN_INVALID_IF(descriptor->mipLevelCount > 1, in ValidateSampleCount()
103 descriptor->mipLevelCount); in ValidateSampleCount()
211 Log2(maxMippedDimension) + 1 < descriptor->mipLevelCount, in ValidateTextureSize()
213 descriptor->mipLevelCount, Log2(maxMippedDimension) + 1, &descriptor->size); in ValidateTextureSize()
294 descriptor->mipLevelCount == 0, in ValidateTextureDescriptor()
296 descriptor->mipLevelCount); in ValidateTextureDescriptor()
317 descriptor->mipLevelCount > 1 && in ValidateTextureDescriptor()
323 device->IsToggleEnabled(Toggle::DisableR8RG8Mipmaps) && descriptor->mipLevelCount > 1 && in ValidateTextureDescriptor()
353 DAWN_INVALID_IF(descriptor->arrayLayerCount == 0 || descriptor->mipLevelCount == 0, in ValidateTextureViewDescriptor()
355 descriptor->arrayLayerCount, descriptor->mipLevelCount); in ValidateTextureViewDescriptor()
[all …]
/third_party/flutter/skia/tools/fiddle/
Dfiddle_main.cpp157 int mipLevelCount = GrMipMapped::kYes == options.fMipMapping in setup_backend_objects() local
160 std::unique_ptr<GrMipLevel[]> texels(new GrMipLevel[mipLevelCount]); in setup_backend_objects()
165 for (int i = 1; i < mipLevelCount; i++) { in setup_backend_objects()
172 texels.get(), mipLevelCount); in setup_backend_objects()
212 int mipLevelCount = GrMipMapped::kYes == options.fOffScreenMipMapping in setup_backend_objects() local
215 std::unique_ptr<GrMipLevel[]> texels(new GrMipLevel[mipLevelCount]); in setup_backend_objects()
220 for (int i = 1; i < mipLevelCount; i++) { in setup_backend_objects()
227 SkBudgeted::kNo, GrProtected::kNo, texels.get(), mipLevelCount); in setup_backend_objects()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DTexture.cpp96 if (descriptor->mipLevelCount > 1) { in ValidateSampleCount()
148 descriptor.mipLevelCount = texture->GetNumMipLevels(); in MakeDefaultTextureViewDescriptor()
170 descriptor->mipLevelCount) { in ValidateTextureSize()
225 descriptor->mipLevelCount == 0) { in ValidateTextureDescriptor()
259 if (descriptor->arrayLayerCount == 0 || descriptor->mipLevelCount == 0) { in ValidateTextureViewDescriptor()
268 if (uint64_t(descriptor->baseMipLevel) + uint64_t(descriptor->mipLevelCount) > in ValidateTextureViewDescriptor()
300 mMipLevelCount(descriptor->mipLevelCount), in TextureBase()
305 GetSubresourceIndex(descriptor->mipLevelCount, descriptor->arrayLayerCount); in TextureBase()
479 mMipLevelCount(descriptor->mipLevelCount), in TextureViewBase()
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnGpu.cpp93 const GrMipLevel texels[], int mipLevelCount) { in onWritePixels() argument
99 texture->upload(texels, mipLevelCount, SkIRect::MakeXYWH(left, top, width, height)); in onWritePixels()
126 int mipLevelCount) { in onCreateTexture() argument
133 if (mipLevelCount > 1) { in onCreateTexture()
135 for (int i = 0; i < mipLevelCount; ++i) { in onCreateTexture()
145 renderTargetSampleCnt, budgeted, mipLevelCount, in onCreateTexture()
150 tex->upload(texels, mipLevelCount); in onCreateTexture()
268 desc.mipLevelCount = SkMipMap::ComputeLevelCount(width, height) + 1; in createBackendTexture()
284 for (uint32_t i = 0; i < desc.mipLevelCount; i++) { in createBackendTexture()
322 info.fLevelCount = desc.mipLevelCount; in createBackendTexture()
/third_party/skia/src/gpu/dawn/
DGrDawnGpu.cpp186 int mipLevelCount, in onWritePixels() argument
192 this->uploadTextureData(srcColorType, texels, mipLevelCount, rect, texture->texture()); in onWritePixels()
193 if (mipLevelCount < texture->maxMipmapLevel() + 1) { in onWritePixels()
227 int mipLevelCount, in onCreateTexture() argument
239 mipLevelCount > 1 ? GrMipmapStatus::kDirty : GrMipmapStatus::kNotAllocated; in onCreateTexture()
242 budgeted, mipLevelCount, mipmapStatus); in onCreateTexture()
337 desc.mipLevelCount = numMipLevels; in onCreateBackendTexture()
344 info.fLevelCount = desc.mipLevelCount; in onCreateBackendTexture()
349 int mipLevelCount, const SkIRect& rect, in uploadTextureData() argument
356 for (int i = 0; i < mipLevelCount; i++) { in uploadTextureData()
[all …]
/third_party/flutter/skia/tests/
DMipMapTest.cpp65 const int mipLevelCount = mm->countLevels(); in test_mipmap_generation() local
66 REPORTER_ASSERT(reporter, mipLevelCount == expectedMipLevelCount); in test_mipmap_generation()
67 REPORTER_ASSERT(reporter, mipLevelCount == SkMipMap::ComputeLevelCount(width, height)); in test_mipmap_generation()
68 for (int i = 0; i < mipLevelCount; ++i) { in test_mipmap_generation()
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
DGPUTexture.cpp41 !conv(desc.mipLevelCount, descriptor.mipLevelCount) || // in createView()

123456