Home
last modified time | relevance | path

Searched refs:mip (Results 1 – 25 of 153) sorted by relevance

1234567

/third_party/skia/third_party/externals/angle2/src/libANGLE/
DImageIndexIterator_unittest.cpp29 for (GLint mip = minMip; mip < maxMip; mip++) in TEST() local
37 EXPECT_EQ(mip, nextIndex.getLevelIndex()); in TEST()
56 for (GLint mip = minMip; mip < maxMip; mip++) in TEST() local
65 EXPECT_EQ(mip, nextIndex.getLevelIndex()); in TEST()
80 for (GLint mip = minMip; mip < maxMip; mip++) in TEST() local
89 EXPECT_EQ(mip, nextIndex.getLevelIndex()); in TEST()
108 for (GLint mip = minMip; mip < maxMip; mip++) in TEST() local
110 for (GLint layer = 0; layer < layerCounts[mip]; layer++) in TEST()
117 EXPECT_EQ(mip, nextIndex.getLevelIndex()); in TEST()
134 for (GLint mip = minMip; mip < maxMip; mip++) in TEST() local
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DImageIndexIterator_unittest.cpp29 for (GLint mip = minMip; mip < maxMip; mip++) in TEST() local
37 EXPECT_EQ(mip, nextIndex.getLevelIndex()); in TEST()
56 for (GLint mip = minMip; mip < maxMip; mip++) in TEST() local
65 EXPECT_EQ(mip, nextIndex.getLevelIndex()); in TEST()
80 for (GLint mip = minMip; mip < maxMip; mip++) in TEST() local
89 EXPECT_EQ(mip, nextIndex.getLevelIndex()); in TEST()
108 for (GLint mip = minMip; mip < maxMip; mip++) in TEST() local
110 for (GLint layer = 0; layer < layerCounts[mip]; layer++) in TEST()
117 EXPECT_EQ(mip, nextIndex.getLevelIndex()); in TEST()
134 for (GLint mip = minMip; mip < maxMip; mip++) in TEST() local
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DIncompleteTextureTest.cpp141 for (GLint mip = 0; mip < 7; ++mip) in TEST_P() local
143 const GLsizei mipSize = redTextureSize >> mip; in TEST_P()
145 glTexImage2D(GL_TEXTURE_2D, mip, GL_RGBA, mipSize, mipSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
158 for (GLint mip = 0; mip < 6; ++mip) in TEST_P() local
160 const GLsizei mipSize = greenTextureSize >> mip; in TEST_P()
162 glTexSubImage2D(GL_TEXTURE_2D, mip, mipSize, mipSize, mipSize, mipSize, GL_RGBA, in TEST_P()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/shaders/src/third_party/ffx_spd/
Dffx_spd.h274 void SpdStore(ASU2 p, AF4 value, AU1 mip){} in SpdStore() argument
401 … SpdDownsampleMips_0_1_Intrinsics(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) in SpdDownsampleMips_0_1_Intrinsics() argument
425 if (mip <= 1) in SpdDownsampleMips_0_1_Intrinsics()
457 void SpdDownsampleMips_0_1_LDS(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) in SpdDownsampleMips_0_1_LDS() argument
481 if (mip <= 1) in SpdDownsampleMips_0_1_LDS()
510 void SpdDownsampleMips_0_1(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) in SpdDownsampleMips_0_1() argument
513 SpdDownsampleMips_0_1_LDS(x, y, workGroupID, localInvocationIndex, mip); in SpdDownsampleMips_0_1()
515 SpdDownsampleMips_0_1_Intrinsics(x, y, workGroupID, localInvocationIndex, mip); in SpdDownsampleMips_0_1()
520 void SpdDownsampleMip_2(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) in SpdDownsampleMip_2() argument
531 SpdStore(ASU2(workGroupID.xy * 8) + ASU2(x, y), v, mip); in SpdDownsampleMip_2()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DIncompleteTextureTest.cpp160 for (GLint mip = 0; mip < 7; ++mip) in TEST_P() local
162 const GLsizei mipSize = redTextureSize >> mip; in TEST_P()
164 glTexImage2D(GL_TEXTURE_2D, mip, GL_RGBA, mipSize, mipSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
177 for (GLint mip = 0; mip < 6; ++mip) in TEST_P() local
179 const GLsizei mipSize = greenTextureSize >> mip; in TEST_P()
181 glTexSubImage2D(GL_TEXTURE_2D, mip, mipSize, mipSize, mipSize, mipSize, GL_RGBA, in TEST_P()
DTextureTest.cpp487 static constexpr size_t getMipDataSize(size_t mip0Size, size_t mip) in getMipDataSize() argument
489 size_t mipSize = std::max<size_t>(1u, mip0Size >> mip); in getMipDataSize()
496 for (size_t mip = 0; mip < kMipCount; ++mip) in getTotalMipDataSize() local
498 totalCount += getMipDataSize(mip0Size, mip); in getTotalMipDataSize()
503 static constexpr size_t getMipDataOffset(size_t mip0Size, size_t mip) in getMipDataOffset() argument
519 for (size_t m = 0; m < mip; ++m) in getMipDataOffset()
529 for (size_t mip = 0; mip < kMipCount; ++mip) in fillMipData() local
531 size_t offset = getMipDataOffset(mip0Size, mip); in fillMipData()
532 size_t size = getMipDataSize(mip0Size, mip); in fillMipData()
533 std::fill(data + offset, data + offset + size, mipColors[mip]); in fillMipData()
[all …]
DMipmapTest.cpp454 for (uint32_t mip = 0; textureWidth >> mip >= 1 || textureHeight >> mip >= 1; ++mip) in verifyAllMips() local
456 glUniform1f(lodLoc, mip); in verifyAllMips()
461 EXPECT_PIXEL_COLOR_EQ(0, 0, color) << "Failed on mip " << mip; in verifyAllMips()
462 EXPECT_PIXEL_COLOR_EQ(w, 0, color) << "Failed on mip " << mip; in verifyAllMips()
463 EXPECT_PIXEL_COLOR_EQ(0, h, color) << "Failed on mip " << mip; in verifyAllMips()
464 EXPECT_PIXEL_COLOR_EQ(w, h, color) << "Failed on mip " << mip; in verifyAllMips()
1673 for (int mip = 0; mip < 5; ++mip) in TEST_P() local
1675 int scale = 1 << mip; in TEST_P()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DNonzeroTextureCreationTests.cpp148 uint32_t mip = GetParam().mMip; in Run() local
149 uint32_t mipSize = std::max(kSize >> mip, 1u); in Run()
151 ? std::max(GetParam().mDepthOrArrayLayers >> mip, 1u) in Run()
157 GetParam().mSampleCount, 0, mip, in Run()
161 {mipSize, mipSize, depthOrArrayLayers}, mip); in Run()
168 GetParam().mSampleCount, 0, mip, in Run()
172 {mipSize, mipSize, depthOrArrayLayers}, mip); in Run()
180 GetParam().mSampleCount, 0, mip, in Run()
184 {mipSize, mipSize, depthOrArrayLayers}, mip); in Run()
190 {mipSize, mipSize, depthOrArrayLayers}, mip); in Run()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/
Dgen_mipmap.metal62 // ----- First mip level -------
83 // ---- Second mip level --------
100 // If the width of mip is 1, texel2 will equal to texel1:
133 // ---- 3rd mip level --------
143 // If the width of mip is 1, texel2 will equal to texel1:
179 // ---- 4th mip level --------
189 // If the width of mip is 1, texel2 will equal to texel1:
242 // ----- First mip level -------
263 // ---- Second mip level --------
276 // If the width of mip is 1, texel2 will equal to texel1:
[all …]
/third_party/mesa3d/src/intel/common/tests/
Dmi_builder_test.cpp930 emit_cmd(GENX(MI_PREDICATE), mip) { in TEST_F()
931 mip.LoadOperation = LOAD_LOAD; in TEST_F()
932 mip.CombineOperation = COMBINE_SET; in TEST_F()
933 mip.CompareOperation = COMPARE_TRUE; in TEST_F()
940 emit_cmd(GENX(MI_PREDICATE), mip) { in TEST_F()
941 mip.LoadOperation = LOAD_LOAD; in TEST_F()
942 mip.CombineOperation = COMBINE_SET; in TEST_F()
943 mip.CompareOperation = COMPARE_FALSE; in TEST_F()
1055 emit_cmd(GENX(MI_PREDICATE), mip) { in TEST_F()
1056 mip.LoadOperation = LOAD_LOAD; in TEST_F()
[all …]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_resource.c172 struct etna_resource_level *mip = &rsc->levels[level]; in setup_miptree() local
174 mip->width = width; in setup_miptree()
175 mip->height = height; in setup_miptree()
176 mip->depth = depth; in setup_miptree()
177 mip->padded_width = align(width * msaa_xscale, paddingX); in setup_miptree()
178 mip->padded_height = align(height * msaa_yscale, paddingY); in setup_miptree()
179 mip->stride = util_format_get_stride(prsc->format, mip->padded_width); in setup_miptree()
180 mip->offset = size; in setup_miptree()
181 mip->layer_stride = mip->stride * util_format_get_nblocksy(prsc->format, mip->padded_height); in setup_miptree()
182 mip->size = prsc->array_size * mip->layer_stride; in setup_miptree()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/shaders/src/
DGenerateMipmap.comp81 // Use a linear sampler to sample from mip 0 instead of multiple loads and manual averaging.
98 // Loads the 5th mip level, each value is computed by a different thread group
108 void SpdStoreH(ASU2 p, AH4 value, AU1 mip)
110 imageStore(dst[mip], p, AF4(value));
139 // Loads the 5th mip level, each value is computed by a different thread group
149 void SpdStore(ASU2 p, AF4 value, AU1 mip)
151 imageStore(dst[mip], p, value);
/third_party/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/
DTexturesPerf.cpp189 for (size_t mip = 0; mip < params.textureMipCount; mip++) in initTextures() local
191 GLsizei levelSize = static_cast<GLsizei>(textureSize >> mip); in initTextures()
192 glTexImage2D(GL_TEXTURE_2D, static_cast<GLint>(mip), GL_RGBA, levelSize, levelSize, 0, in initTextures()
/third_party/glslang/Test/
Dhlsl.mip.operator.frag8 // test float->uint cast on the mip arg
12 // ....outer operator mip level...... .....outer operator coordinate....
/third_party/mesa3d/src/gallium/drivers/svga/include/
Dsvga3d_surfacedefs.h1053 uint32 mip) in svga3dsurface_get_image_offset() argument
1072 if (i < mip) { in svga3dsurface_get_image_offset()
1091 uint32 mip; in svga3dsurface_get_serialized_size() local
1093 for (mip = 0; mip < num_mip_levels; mip++) { in svga3dsurface_get_serialized_size()
1095 svga3dsurface_get_mip_size(base_level_size, mip); in svga3dsurface_get_serialized_size()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DTexturesPerf.cpp230 for (size_t mip = 0; mip < params.textureMipCount; mip++) in initTextures() local
232 GLsizei levelSize = static_cast<GLsizei>(textureSize >> mip); in initTextures()
233 glTexImage2D(GL_TEXTURE_2D, static_cast<GLint>(mip), GL_RGBA, levelSize, levelSize, 0, in initTextures()
/third_party/skia/third_party/externals/opengl-registry/extensions/OES/
DOES_compressed_paletted_texture.txt63 palette data and texture mip-levels
64 The palette data followed by all necessary mip levels are
71 The level value is used to indicate how many mip levels
74 A level of zero indicates a single mip-level.
110 mip levels defined for the paletted texture.
154 palette data following by the mip-levels where the number of mip-levels
DOES_fbo_render_mipmap.txt44 allowing implementations to support rendering to any mip-level
49 any mip level of a texture image
/third_party/openGLES/extensions/OES/
DOES_compressed_paletted_texture.txt73 palette data and texture mip-levels
74 The palette data followed by all necessary mip levels are
81 The level value is used to indicate how many mip levels
84 A level of zero indicates a single mip-level.
120 mip levels defined for the paletted texture.
164 palette data following by the mip-levels where the number of mip-levels
DOES_fbo_render_mipmap.txt54 allowing implementations to support rendering to any mip-level
59 any mip level of a texture image
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv84_video.c272 struct nv50_miptree mip; in nv84_create_decoder() local
479 surf.base.texture = &mip.base.base; in nv84_create_decoder()
480 mip.level[0].tile_mode = 0; in nv84_create_decoder()
481 mip.level[0].pitch = surf.width * 4; in nv84_create_decoder()
482 mip.base.domain = NOUVEAU_BO_VRAM; in nv84_create_decoder()
483 mip.base.bo = dec->mbring; in nv84_create_decoder()
484 mip.base.address = dec->mbring->offset; in nv84_create_decoder()
489 mip.level[0].pitch = surf.width * 4; in nv84_create_decoder()
490 mip.base.bo = dec->vpring; in nv84_create_decoder()
491 mip.base.address = dec->vpring->offset; in nv84_create_decoder()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
DTextureMtl.mm764 // Only transfer if this mip & slice image has been defined and in correct size &
864 for (mtl::MipmapNativeLevel mip = mtl::kZeroNativeMipLevel;
865 mip.get() < mNativeTexture->mipmapLevels(); ++mip)
867 if (mNativeLevelViews[mip])
873 mTexImageDefs[0][mtl::GetGLMipLevel(mip, baseLevel)].image)
876 mNativeLevelViews[mip] = mTexImageDefs[0][mtl::GetGLMipLevel(mip, baseLevel)].image;
880 mNativeLevelViews[mip] = mNativeTexture->createMipView(mip);
930 // Create image view per cube face, per mip level
933 for (mtl::MipmapNativeLevel mip = mtl::kZeroNativeMipLevel; mip.get() < mips; ++mip)
935 GLuint imageMipLevel = mtl::GetGLMipLevel(mip, mCurrentBaseLevel);
[all …]
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_state_inlines.h262 static inline uint32_t r300_translate_tex_filters(int min, int mag, int mip, in r300_translate_tex_filters() argument
293 switch (mip) { in r300_translate_tex_filters()
304 fprintf(stderr, "r300: Unknown texture filter %d\n", mip); in r300_translate_tex_filters()
/third_party/openGLES/extensions/AMD/
DAMD_compressed_ATC_texture.txt87 OpenGL ES requires that all mip-levels have to be specified when
90 mip-levels. This rule is not followed when loading an ATC texture. The
91 "level" number in this case represents the actual mip-level number,
/third_party/skia/third_party/externals/opengl-registry/extensions/AMD/
DAMD_compressed_ATC_texture.txt87 OpenGL ES requires that all mip-levels have to be specified when
90 mip-levels. This rule is not followed when loading an ATC texture. The
91 "level" number in this case represents the actual mip-level number,

1234567