/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
H A D | Sampler.cpp | 42 Mipmap &mipmap = texture.mipmap[level]; in Sampler() local 44 memset(&mipmap, 0, sizeof(Mipmap)); in Sampler() 48 mipmap.buffer[face] = &zero; in Sampler() 119 Mipmap &mipmap = texture.mipmap[level]; in setTextureLevel() local 122 mipmap.buffer[face] = surface->lockInternal(-border, -border, 0, LOCK_UNLOCKED, PRIVATE); in setTextureLevel() 160 mipmap.fWidth[0] = (float)width / 65536.0f; in setTextureLevel() 161 mipmap.fWidth[1] = (float)width / 65536.0f; in setTextureLevel() 162 mipmap in setTextureLevel() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkDescriptorSetLayout.cpp | 329 sw::Mipmap &mipmap = sampledImage[i].texture.mipmap[0]; 330 mipmap.buffer = bufferView->getPointer(); 331 mipmap.width[0] = mipmap.width[1] = mipmap.width[2] = mipmap.width[3] = numElements; 332 mipmap.height[0] = mipmap.height[1] = mipmap 415 sw::Mipmap &mipmap = texture->mipmap[mipmapLevel]; global() local [all...] |
/third_party/skia/tests/ |
H A D | SkResourceCacheTest.cpp | 49 const SkMipmap* mipmap = SkMipmapCache::FindAndRef(desc, cache); in test_mipmapcache() local 50 REPORTER_ASSERT(reporter, nullptr == mipmap); in test_mipmapcache() 52 mipmap = SkMipmapCache::AddAndRef(as_IB(img.get()), cache); in test_mipmapcache() 53 REPORTER_ASSERT(reporter, mipmap); in test_mipmapcache() 58 REPORTER_ASSERT(reporter, mm == mipmap); in test_mipmapcache() 62 check_data(reporter, mipmap, 2, kInCache, kLocked); in test_mipmapcache() 64 mipmap->unref(); in test_mipmapcache() 67 check_data(reporter, mipmap, 1, kInCache, kNotLocked); in test_mipmapcache() 70 mipmap = SkMipmapCache::FindAndRef(desc, cache); in test_mipmapcache() 71 check_data(reporter, mipmap, in test_mipmapcache() 94 const SkMipmap* mipmap = SkMipmapCache::FindAndRef(desc[i], cache); test_mipmap_notify() local [all...] |
/third_party/skia/include/core/ |
H A D | SkSamplingOptions.h | 22 kNone, // ignore mipmap levels, sample from the "base" 58 const SkMipmapMode mipmap = SkMipmapMode::kNone; member 71 , mipmap(mm) {} in SkSamplingOptions() 76 , mipmap(SkMipmapMode::kNone) {} in SkSamplingOptions() 87 && mipmap == other.mipmap; in operator ==()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | SamplerCore.hpp | 68 Short4 offsetSample(Short4 &uvw, Pointer<Byte> &mipmap, int halfOffset, bool wrap, int count, Float &lod); 85 void computeIndices(UInt index[4], Short4 uuuu, Short4 vvvv, Short4 wwww, const Short4 &cubeArrayLayer, Vector4i &offset, const Int4 &sample, const Pointer<Byte> &mipmap, SamplerFunction function); 86 void computeIndices(UInt index[4], Int4 uuuu, Int4 vvvv, Int4 wwww, const Int4 &sample, Int4 valid, const Pointer<Byte> &mipmap, SamplerFunction function); 87 Vector4s sampleTexel(Short4 &u, Short4 &v, Short4 &w, const Short4 &cubeArrayLayer, Vector4i &offset, const Int4 &sample, Pointer<Byte> &mipmap, Pointer<Byte> buffer, SamplerFunction function); 89 Vector4f sampleTexel(Int4 &u, Int4 &v, Int4 &w, Float4 &dRef, const Int4 &sample, Pointer<Byte> &mipmap, Pointer<Byte> buffer, SamplerFunction function); 91 void selectMipmap(const Pointer<Byte> &texture, Pointer<Byte> &mipmap, Pointer<Byte> &buffer, const Float &lod, bool secondLOD); 92 Short4 address(const Float4 &uvw, AddressingMode addressingMode, Pointer<Byte> &mipmap); 93 Short4 computeLayerIndex(const Float4 &a, Pointer<Byte> &mipmap); 94 void address(const Float4 &uvw, Int4 &xyz0, Int4 &xyz1, Float4 &f, Pointer<Byte> &mipmap, Int4 &offset, Int4 &filter, int whd, AddressingMode addressingMode, SamplerFunction function); 95 Int4 computeLayerIndex(const Float4 &a, Pointer<Byte> &mipmap, SamplerFunctio [all...] |
H A D | SamplerCore.cpp | 57 // Determine if we can skip the LOD computation. This is the case when the mipmap has only one level, except for LOD query, in sampleTexture() 58 // where we have to return the computed value. Anisotropic filtering requires computing the anisotropy factor even for a single mipmap level. in sampleTexture() 247 Short4 SamplerCore::offsetSample(Short4 &uvw, Pointer<Byte> &mipmap, int halfOffset, bool wrap, int count, Float &lod) in offsetSample() argument 249 Short4 offset = *Pointer<Short4>(mipmap + halfOffset); in offsetSample() 456 Pointer<Byte> mipmap; in sampleQuad2D() local 458 selectMipmap(texture, mipmap, buffer, lod, secondLOD); in sampleQuad2D() 460 Short4 uuuu = address(u, state.addressingModeU, mipmap); in sampleQuad2D() 461 Short4 vvvv = address(v, state.addressingModeV, mipmap); in sampleQuad2D() 462 Short4 wwww = address(w, state.addressingModeW, mipmap); in sampleQuad2D() 463 Short4 layerIndex = computeLayerIndex(a, mipmap); in sampleQuad2D() 658 Pointer<Byte> mipmap; sample3D() local 902 Pointer<Byte> mipmap; sampleFloat2D() local 995 Pointer<Byte> mipmap; sampleFloat3D() local 1320 computeIndices(UInt index[4], Short4 uuuu, Short4 vvvv, Short4 wwww, const Short4 &layerIndex, Vector4i &offset, const Int4 &sample, const Pointer<Byte> &mipmap, SamplerFunction function) computeIndices() argument 1387 computeIndices(UInt index[4], Int4 uuuu, Int4 vvvv, Int4 wwww, const Int4 &sample, Int4 valid, const Pointer<Byte> &mipmap, SamplerFunction function) computeIndices() argument 1725 sampleTexel(Short4 &uuuu, Short4 &vvvv, Short4 &wwww, const Short4 &layerIndex, Vector4i &offset, const Int4 &sample, Pointer<Byte> &mipmap, Pointer<Byte> buffer, SamplerFunction function) sampleTexel() argument 1874 sampleTexel(Int4 &uuuu, Int4 &vvvv, Int4 &wwww, Float4 &dRef, const Int4 &sample, Pointer<Byte> &mipmap, Pointer<Byte> buffer, SamplerFunction function) sampleTexel() argument 2138 selectMipmap(const Pointer<Byte> &texture, Pointer<Byte> &mipmap, Pointer<Byte> &buffer, const Float &lod, bool secondLOD) selectMipmap() argument 2184 address(const Float4 &uw, AddressingMode addressingMode, Pointer<Byte> &mipmap) address() argument 2222 computeLayerIndex(const Float4 &a, Pointer<Byte> &mipmap) computeLayerIndex() argument 2248 address(const Float4 &uvw, Int4 &xyz0, Int4 &xyz1, Float4 &f, Pointer<Byte> &mipmap, Int4 &offset, Int4 &filter, int whd, AddressingMode addressingMode, SamplerFunction function) address() argument 2463 computeLayerIndex(const Float4 &a, Pointer<Byte> &mipmap, SamplerFunction function) computeLayerIndex() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
H A D | SamplerCore.hpp | 55 static Vector4f textureSize(Pointer<Byte> &mipmap, Float4 &lod); 62 Short4 offsetSample(Short4 &uvw, Pointer<Byte> &mipmap, int halfOffset, bool wrap, int count, Float &lod); 80 void computeIndices(UInt index[4], Short4 uuuu, Short4 vvvv, Short4 wwww, Vector4f &offset, const Pointer<Byte> &mipmap, SamplerFunction function); 81 void computeIndices(UInt index[4], Int4& uuuu, Int4& vvvv, Int4& wwww, const Pointer<Byte> &mipmap, SamplerFunction function); 82 Vector4s sampleTexel(Short4 &u, Short4 &v, Short4 &s, Vector4f &offset, Pointer<Byte> &mipmap, Pointer<Byte> buffer[4], SamplerFunction function); 84 Vector4f sampleTexel(Int4 &u, Int4 &v, Int4 &s, Float4 &z, Pointer<Byte> &mipmap, Pointer<Byte> buffer[4], SamplerFunction function); 85 void selectMipmap(Pointer<Byte> &texture, Pointer<Byte> buffer[4], Pointer<Byte> &mipmap, Float &lod, Int face[4], bool secondLOD); 86 Short4 address(Float4 &uw, AddressingMode addressingMode, Pointer<Byte>& mipmap); 87 void address(Float4 &uw, Int4& xyz0, Int4& xyz1, Float4& f, Pointer<Byte>& mipmap, Float4 &texOffset, Int4 &filter, int whd, AddressingMode addressingMode, SamplerFunction function);
|
H A D | SamplerCore.cpp | 510 Pointer<Byte> mipmap = texture + OFFSET(Texture, mipmap) + index * sizeof(Mipmap); in textureSize() local 511 size.x = Insert(size.x, As<Float>(Int(*Pointer<Short>(mipmap + OFFSET(Mipmap, width)))), i); in textureSize() 512 size.y = Insert(size.y, As<Float>(Int(*Pointer<Short>(mipmap + OFFSET(Mipmap, height)))), i); in textureSize() 513 size.z = Insert(size.z, As<Float>(Int(*Pointer<Short>(mipmap + OFFSET(Mipmap, depth)))), i); in textureSize() 530 Short4 SamplerCore::offsetSample(Short4 &uvw, Pointer<Byte> &mipmap, int halfOffset, bool wrap, int count, Float &lod) in offsetSample() argument 532 Short4 offset = *Pointer<Short4>(mipmap + halfOffset); in offsetSample() 747 Pointer<Byte> mipmap; in sampleQuad2D() local 750 selectMipmap(texture, buffer, mipmap, lod, face, secondLOD); in sampleQuad2D() 754 Short4 uuuu = texelFetch ? Short4(As<Int4>(u)) : address(u, state.addressingModeU, mipmap); in sampleQuad2D() 941 Pointer<Byte> mipmap; sample3D() local 1217 Pointer<Byte> mipmap; sampleFloat2D() local 1285 Pointer<Byte> mipmap; sampleFloat3D() local 1656 computeIndices(UInt index[4], Short4 uuuu, Short4 vvvv, Short4 wwww, Vector4f &offset, const Pointer<Byte> &mipmap, SamplerFunction function) computeIndices() argument 1730 computeIndices(UInt index[4], Int4& uuuu, Int4& vvvv, Int4& wwww, const Pointer<Byte> &mipmap, SamplerFunction function) computeIndices() argument 2006 sampleTexel(Short4 &uuuu, Short4 &vvvv, Short4 &wwww, Vector4f &offset, Pointer<Byte> &mipmap, Pointer<Byte> buffer[4], SamplerFunction function) sampleTexel() argument 2115 sampleTexel(Int4 &uuuu, Int4 &vvvv, Int4 &wwww, Float4 &z, Pointer<Byte> &mipmap, Pointer<Byte> buffer[4], SamplerFunction function) sampleTexel() argument 2235 selectMipmap(Pointer<Byte> &texture, Pointer<Byte> buffer[4], Pointer<Byte> &mipmap, Float &lod, Int face[4], bool secondLOD) selectMipmap() argument 2296 address(Float4 &uw, AddressingMode addressingMode, Pointer<Byte> &mipmap) address() argument 2338 address(Float4 &uvw, Int4 &xyz0, Int4 &xyz1, Float4 &f, Pointer<Byte> &mipmap, Float4 &texOffset, Int4 &filter, int whd, AddressingMode addressingMode, SamplerFunction function) address() argument [all...] |
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fTextureSizeTests.cpp | 396 for (int mipmap = 0; mipmap < (isPOT ? 2 : 1); mipmap++) in init() 399 name << width << "x" << height << "_" << formats[formatNdx].name << (mipmap ? "_mipmap" : ""); in init() 403 width, height, mipmap != 0)); in init() 419 for (int mipmap = 0; mipmap < (isPOT ? 2 : 1); mipmap++) in init() 422 name << width << "x" << height << "_" << formats[formatNdx].name << (mipmap ? "_mipmap" : ""); in init() 426 width, height, mipmap ! in init() [all...] |
/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | es2fTextureSizeTests.cpp | 395 for (int mipmap = 0; mipmap < (isPOT ? 2 : 1); mipmap++) in init() 398 name << width << "x" << height << "_" << formats[formatNdx].name << (mipmap ? "_mipmap" : ""); in init() 402 width, height, mipmap != 0)); in init() 418 for (int mipmap = 0; mipmap < (isPOT ? 2 : 1); mipmap++) in init() 421 name << width << "x" << height << "_" << formats[formatNdx].name << (mipmap ? "_mipmap" : ""); in init() 425 width, height, mipmap ! in init() [all...] |
/third_party/skia/src/core/ |
H A D | SkMipmap.cpp | 194 // OpenGL expects a full mipmap stack to contain anisotropic space as well. 567 SkMipmap* mipmap; in Build() local 573 mipmap = new SkMipmap(storageSize, dm); in Build() 575 mipmap = new SkMipmap(sk_malloc_throw(storageSize), storageSize); in Build() 579 mipmap->fCS = sk_ref_sp(src.info().colorSpace()); in Build() 580 mipmap->fCount = countLevels; in Build() 581 mipmap->fLevels = (Level*)mipmap->writable_data(); in Build() 582 SkASSERT(mipmap->fLevels); in Build() 584 Level* levels = mipmap in Build() [all...] |
H A D | SkBitmapCache.cpp | 246 const char* getCategory() const override { return "mipmap"; } 293 SkMipmap* mipmap = SkMipmap::Build(src, get_fact(localCache)); in AddAndRef() local 294 if (mipmap) { in AddAndRef() 295 MipMapRec* rec = new MipMapRec(SkBitmapCacheDesc::Make(image), mipmap); in AddAndRef() 299 return mipmap; in AddAndRef()
|
H A D | SkMipmapAccessor.cpp | 102 const SkMatrix& inv, SkMipmapMode mipmap) { in Make() 103 auto* access = alloc->make<SkMipmapAccessor>(as_IB(image), inv, mipmap); in Make() 101 Make(SkArenaAlloc* alloc, const SkImage* image, const SkMatrix& inv, SkMipmapMode mipmap) Make() argument
|
/third_party/skia/modules/canvaskit/ |
H A D | interface.js | 518 // 3. sampling.filter [and sampling.mipmap] --> FilterOptions 527 let mipmap = CanvasKit.MipmapMode.None; 530 if ('mipmap' in sampling) { // 'mipmap' is optional 531 mipmap = sampling['mipmap']; 535 filter, mipmap, paint); 604 CanvasKit.Canvas.prototype.drawImageOptions = function(img, x, y, filter, mipmap, paint) { 606 this._drawImageOptions(img, x, y, filter, mipmap, paint || null); 631 CanvasKit.Canvas.prototype.drawImageRectOptions = function(img, src, dest, filter, mipmap, pain [all...] |
/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_cmd.c | 70 id->mipmap = s->real_level; in surface_to_surfaceid() 75 id->mipmap = 0; in surface_to_surfaceid() 238 * - Each face has a list of mipmap levels 240 * - Each mipmap image may have multiple volume 470 cmd->host.mipmap = st->base.level; in SVGA3D_SurfaceDMA() 532 cmd->host.mipmap = 0; in SVGA3D_BufferDMA() 1729 cmd->image.mipmap = mipLevel; in SVGA3D_UpdateGBImage() 1787 cmd->image.mipmap = mipLevel; in SVGA3D_ReadbackGBImage() 1841 cmd->image.mipmap = mipLevel; in SVGA3D_ReadbackGBImagePartial() 1870 cmd->image.mipmap in SVGA3D_InvalidateGBImagePartial() [all...] |
/third_party/mesa3d/src/gallium/drivers/svga/svgadump/ |
H A D | svga_dump.c | 419 _debug_printf("\t\t.target.mipmap = %u\n", (*cmd).target.mipmap); in dump_SVGA3dCmdSetRenderTarget() 433 _debug_printf("\t\t.src.mipmap = %u\n", (*cmd).src.mipmap); in dump_SVGA3dCmdSurfaceCopy() 436 _debug_printf("\t\t.dest.mipmap = %u\n", (*cmd).dest.mipmap); in dump_SVGA3dCmdSurfaceCopy() 1140 _debug_printf("\t\t.src.mipmap = %u\n", (*cmd).src.mipmap); in dump_SVGA3dCmdSurfaceStretchBlt() 1143 _debug_printf("\t\t.dest.mipmap = %u\n", (*cmd).dest.mipmap); in dump_SVGA3dCmdSurfaceStretchBlt() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | dds.c | 573 int mipmap; in dds_decode() local 609 mipmap = bytestream2_get_le32(gbc); in dds_decode() 610 if (mipmap != 0) in dds_decode() 611 av_log(avctx, AV_LOG_VERBOSE, "Found %d mipmaps (ignored).\n", mipmap); in dds_decode()
|
/third_party/skia/src/shaders/ |
H A D | SkImageShader.cpp | 198 if (sampling.filter == f && sampling.mipmap == m) { in onMakeContext() 361 return SkSamplingOptions(filter, sampling.mipmap); in tweak_sampling() 386 } else if (sampling.mipmap == SkMipmapMode::kLinear) { in doStages() 391 if (updater && (sampling.mipmap != SkMipmapMode::kNone)) { in doStages() 405 SkASSERT(!sampling.useCubic || sampling.mipmap == SkMipmapMode::kNone); in doStages() 406 auto* access = SkMipmapAccessor::Make(alloc, fImage.get(), matrix, sampling.mipmap); in doStages() 686 auto* access = SkMipmapAccessor::Make(alloc, fImage.get(), baseInv, sampling.mipmap); in makeProgram() 734 // pixmap (level of a mipmap). in makeProgram()
|
/third_party/skia/src/image/ |
H A D | SkImage.cpp | 325 if (sampling.mipmap != SkMipmapMode::kNone && in asFragmentProcessor() 383 GrSamplerState sampler(wmx, wmy, sampling.filter, sampling.mipmap); in MakeFragmentProcessorFromView() 752 auto mipmap = buffer.read32LE<SkMipmapMode>(SkMipmapMode::kLinear); in Read() local 753 return SkSamplingOptions(filter, mipmap); in Read() 764 buffer.writeUInt((unsigned)sampling.mipmap); in Write()
|
/third_party/mesa3d/src/microsoft/vulkan/ |
H A D | dzn_util.c | 213 VkSamplerMipmapMode mipmap; member 220 .mipmap = VK_SAMPLER_MIPMAP_MODE_ ## __mipmap, \ 244 create_info->mipmapMode == filter_table[i].mipmap) { in dzn_translate_sampler_filter()
|
/third_party/skia/include/c/ |
H A D | sk_types.h | 239 sk_mipmap_mode_t mipmap; member
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
H A D | etnaviv_texture_state.c | 92 const bool mipmap = ss->min_mip_filter != PIPE_TEX_MIPFILTER_NONE; in etna_create_sampler_state_state() local 117 COND(ss->lod_bias != 0.0 && mipmap, VIVS_TE_SAMPLER_LOD_CONFIG_BIAS_ENABLE) | in etna_create_sampler_state_state() 123 if (mipmap) { in etna_create_sampler_state_state()
|
/third_party/skia/third_party/externals/swiftshader/src/Device/ |
H A D | Sampler.hpp | 47 Mipmap mipmap[MIPMAP_LEVELS]; member
|
/third_party/skia/src/gpu/v1/ |
H A D | Device_drawTexture.cpp | 431 can_use_draw_texture(paint, sampling.useCubic, sampling.mipmap)) { in draw_image() 483 sampling.mipmap == SkMipmapMode::kNone && in draw_image() 677 if (sampling.useCubic || sampling.mipmap != SkMipmapMode::kNone) { in downgrade_to_filter() 788 if (sampling.mipmap != SkMipmapMode::kNone && can_disable_mipmap(ctm, srcToDst, sharpenMM)) { in drawImageQuad() 861 if (!can_use_draw_texture(paint, sampling.useCubic, sampling.mipmap)) { in drawEdgeAAImageSet()
|
/third_party/mesa3d/src/gallium/frontends/glx/xlib/ |
H A D | xm_api.h | 274 int format, int target, int mipmap);
|