Home
last modified time | relevance | path

Searched refs:mip (Results 1 - 21 of 21) sorted by relevance

/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DImageIndexIterator_unittest.cpp29 for (GLint mip = minMip; mip < maxMip; mip++) in TEST()
37 EXPECT_EQ(mip, nextIndex.getLevelIndex()); in TEST()
56 for (GLint mip = minMip; mip < maxMip; mip++) in TEST()
65 EXPECT_EQ(mip, nextIndex.getLevelIndex()); in TEST()
80 for (GLint mip = minMip; mip < maxMi in TEST()
[all...]
H A DImage.cpp34 GLint mip = static_cast<GLint>(attribs.get(EGL_GL_TEXTURE_LEVEL_KHR, 0)); in GetImageIndex() local
39 return gl::ImageIndex::Make3D(mip, layer); in GetImageIndex()
44 return gl::ImageIndex::MakeFromTarget(target, mip, 1); in GetImageIndex()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/shaders/src/third_party/ffx_spd/
H A Dffx_spd.h29 // // number of mip levels to be computed (maximum is 12)
128 // // to make sure the borders of the mip level look as you want it
154 // // Loads the 5th mip level, each value is computed by a different thread group
160 // GLSL: void SpdStore(ASU2 p, AF4 value, AU1 mip){imageStore(imgDst[mip], p, value);}
200 // // Loads the 5th mip level, each value is computed by a different thread group
206 // GLSL: void SpdStoreH(ASU2 p, AH4 value, AU1 mip){imageStore(imgDst[mip], p, AF4(value));}
274 void SpdStore(ASU2 p, AF4 value, AU1 mip){} in SpdStore() argument
401 void SpdDownsampleMips_0_1_Intrinsics(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) in SpdDownsampleMips_0_1_Intrinsics() argument
457 SpdDownsampleMips_0_1_LDS(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) SpdDownsampleMips_0_1_LDS() argument
510 SpdDownsampleMips_0_1(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) SpdDownsampleMips_0_1() argument
520 SpdDownsampleMip_2(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) SpdDownsampleMip_2() argument
554 SpdDownsampleMip_3(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) SpdDownsampleMip_3() argument
598 SpdDownsampleMip_4(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) SpdDownsampleMip_4() argument
633 SpdDownsampleMip_5(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) SpdDownsampleMip_5() argument
646 SpdStore(ASU2(workGroupID.xy), v, mip); SpdDownsampleMip_5() local
949 SpdDownsampleMip_2H(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) SpdDownsampleMip_2H() argument
983 SpdDownsampleMip_3H(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) SpdDownsampleMip_3H() argument
1027 SpdDownsampleMip_4H(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) SpdDownsampleMip_4H() argument
1062 SpdDownsampleMip_5H(AU1 x, AU1 y, AU2 workGroupID, AU1 localInvocationIndex, AU1 mip) SpdDownsampleMip_5H() argument
1075 SpdStoreH(ASU2(workGroupID.xy), v, mip); SpdDownsampleMip_5H() local
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DIncompleteTextureTest.cpp139 // Make texture complete by defining the second mip. in TEST_P()
145 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::red) << "mip-complete texture should be red"; in TEST_P()
160 for (GLint mip = 0; mip < 7; ++mip) in TEST_P()
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()
[all...]
H A 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()
498 totalCount += getMipDataSize(mip0Size, mip); in getTotalMipDataSize()
503 static constexpr size_t getMipDataOffset(size_t mip0Size, size_t mip) in getMipDataOffset() argument
507 // mip == 0: 0 in getMipDataOffset()
508 // o.w.: sum(0, mip-1) getMipDataSize(i) in getMipDataOffset()
512 // (mip0 >> (kMipCount-1))^2 * (0x55555555 & ((1 << (2*mip)) in getMipDataOffset()
[all...]
H A DMipmapTest.cpp451 // Verify that every mip is correct. in verifyAllMips()
454 for (uint32_t mip = 0; textureWidth >> mip >= 1 || textureHeight >> mip >= 1; ++mip) in verifyAllMips()
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()
[all...]
H A DStateChangeTest.cpp7223 for (uint32_t mip = 0; mip < 2; ++mip)
7225 const uint32_t size = 4 >> mip;
7226 glTexImage2D(GL_TEXTURE_2D, mip, GL_RGBA8, size, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE,
7227 mip == 0 ? kMip0Data.data() : kMip1Data.data());
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A 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/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_resource.c167 struct etna_resource_level *mip = &rsc->levels[level]; in setup_miptree() local
169 mip->width = width; in setup_miptree()
170 mip->height = height; in setup_miptree()
171 mip->depth = depth; in setup_miptree()
172 mip->padded_width = align(width * msaa_xscale, paddingX); in setup_miptree()
173 mip->padded_height = align(height * msaa_yscale, paddingY); in setup_miptree()
174 mip->stride = util_format_get_stride(prsc->format, mip->padded_width); in setup_miptree()
175 mip->offset = size; in setup_miptree()
176 mip in setup_miptree()
[all...]
/third_party/mesa3d/src/intel/common/tests/
H A Dmi_builder_test.cpp932 emit_cmd(GENX(MI_PREDICATE), mip) {
933 mip.LoadOperation = LOAD_LOAD;
934 mip.CombineOperation = COMBINE_SET;
935 mip.CompareOperation = COMPARE_TRUE;
942 emit_cmd(GENX(MI_PREDICATE), mip) {
943 mip.LoadOperation = LOAD_LOAD;
944 mip.CombineOperation = COMBINE_SET;
945 mip.CompareOperation = COMPARE_FALSE;
1057 emit_cmd(GENX(MI_PREDICATE), mip) {
1058 mip
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
H A DTexturesPerf.cpp230 for (size_t mip = 0; mip < params.textureMipCount; mip++) in initTextures()
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()
H A DTextureUploadPerf.cpp280 GLint mip = 0; in drawBenchmark() local
283 glTexImage2D(GL_TEXTURE_2D, mip++, GL_RGBA, levelSize, levelSize, 0, GL_RGBA, in drawBenchmark()
/third_party/mesa3d/src/gallium/drivers/svga/include/
H A Dsvga3d_surfacedefs.h1171 * Given a base level size and the mip level, compute the size of
1172 * the mip level.
1282 uint32 mip) in svga3dsurface_get_image_offset()
1301 if (i < mip) { in svga3dsurface_get_image_offset()
1320 uint32 mip; in svga3dsurface_get_serialized_size() local
1322 for (mip = 0; mip < num_mip_levels; mip++) { in svga3dsurface_get_serialized_size()
1324 svga3dsurface_get_mip_size(base_level_size, mip); in svga3dsurface_get_serialized_size()
1278 svga3dsurface_get_image_offset(SVGA3dSurfaceFormat format, SVGA3dSize baseLevelSize, uint32 numMipLevels, uint32 layer, uint32 mip) svga3dsurface_get_image_offset() argument
/third_party/mesa3d/src/gallium/drivers/r300/
H A 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/mesa3d/src/gallium/drivers/nouveau/nv50/
H A 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 in nv84_create_decoder()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
H A DTextureD3D.h92 virtual gl::ImageIndex getImageIndex(GLint mip, GLint layer) const = 0;
317 gl::ImageIndex getImageIndex(GLint mip, GLint layer) const override;
447 gl::ImageIndex getImageIndex(GLint mip, GLint layer) const override;
580 gl::ImageIndex getImageIndex(GLint mip, GLint layer) const override;
710 gl::ImageIndex getImageIndex(GLint mip, GLint layer) const override;
742 // most sense for the Image class to not have to worry about layer subresource as well as mip
827 gl::ImageIndex getImageIndex(GLint mip, GLint layer) const override;
869 gl::ImageIndex getImageIndex(GLint mip, GLint layer) const override;
914 gl::ImageIndex getImageIndex(GLint mip, GLint layer) const override;
H A DTextureD3D.cpp499 // Copy from the storage mip 0 to Image mip 0 in generateMipmapUsingImages()
526 for (GLuint mip = mBaseLevel + 1; mip <= maxLevel; ++mip) in generateMipmapUsingImages()
528 ASSERT(getLayerCount(mip) == layerCount); in generateMipmapUsingImages()
530 gl::ImageIndex sourceIndex = getImageIndex(mip - 1, layer); in generateMipmapUsingImages()
531 gl::ImageIndex destIndex = getImageIndex(mip, layer); in generateMipmapUsingImages()
741 // 3D texture, so force the clear to the entire mip. There shouldn't ever be a case where we in initializeContents()
1079 // so clear the mip leve in copyImage()
1650 getImageIndex(GLint mip, GLint ) const getImageIndex() argument
[all...]
/third_party/mesa3d/src/intel/vulkan/
H A DgenX_cmd_buffer.c917 anv_batch_emit(&cmd_buffer->batch, GENX(MI_PREDICATE), mip) { in anv_cmd_compute_resolve_predicate()
918 mip.LoadOperation = LOAD_LOADINV; in anv_cmd_compute_resolve_predicate()
919 mip.CombineOperation = COMBINE_SET; in anv_cmd_compute_resolve_predicate()
920 mip.CompareOperation = COMPARE_SRCS_EQUAL; in anv_cmd_compute_resolve_predicate()
960 anv_batch_emit(&cmd_buffer->batch, GENX(MI_PREDICATE), mip) { in anv_cmd_simple_resolve_predicate()
961 mip.LoadOperation = LOAD_LOADINV; in anv_cmd_simple_resolve_predicate()
962 mip.CombineOperation = COMBINE_SET; in anv_cmd_simple_resolve_predicate()
963 mip.CompareOperation = COMPARE_SRCS_EQUAL; in anv_cmd_simple_resolve_predicate()
4721 anv_batch_emit(&cmd_buffer->batch, GENX(MI_PREDICATE), mip) { in emit_draw_count_predicate()
4722 mip in emit_draw_count_predicate()
[all...]
H A DgenX_query.c1355 anv_batch_emit(&cmd_buffer->batch, GENX(MI_PREDICATE), mip) { in gpu_write_query_result_cond()
1356 mip.LoadOperation = LOAD_LOAD; in gpu_write_query_result_cond()
1357 mip.CombineOperation = COMBINE_SET; in gpu_write_query_result_cond()
1358 mip.CompareOperation = COMPARE_SRCS_EQUAL; in gpu_write_query_result_cond()
/third_party/mesa3d/src/amd/addrlib/src/gfx9/
H A Dgfx9addrlib.cpp404 * Get meta mip info
411 UINT_32 numMipLevels, ///< [in] number of mip levels in GetMetaMipInfo()
414 ADDR2_META_MIP_INFO* pInfo, ///< [out] meta mip info in GetMetaMipInfo()
500 for (UINT_32 mip = 0; mip < numMipLevels; mip++) in GetMetaMipInfo()
504 GetMetaMiptailInfo(&pInfo[mip], mipCoord, numMipLevels - mip, in GetMetaMipInfo()
514 pInfo[mip].inMiptail = FALSE; in GetMetaMipInfo()
515 pInfo[mip] in GetMetaMipInfo()
[all...]
/third_party/mesa3d/src/gallium/drivers/crocus/
H A Dcrocus_state.c7489 * mip-mapping. However, we can fake it by offsetting to the
7513 * mip-mapping. However, we can fake it by offsetting to the
8216 crocus_emit_cmd(batch, GENX(MI_PREDICATE), mip) {
8217 mip.LoadOperation = LOAD_LOAD;
8218 mip.CombineOperation = COMBINE_SET;
8219 mip.CompareOperation = COMPARE_SRCS_EQUAL;
8226 crocus_emit_cmd(batch, GENX(MI_PREDICATE), mip) {
8227 mip.LoadOperation = LOAD_LOAD;
8228 mip.CombineOperation = COMBINE_OR;
8229 mip
[all...]

Completed in 48 milliseconds