Searched refs:DstFormat (Results 1 – 6 of 6) sorted by relevance
/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
D | format_conversion.h | 193 template <typename SIMD_T, SWR_FORMAT DstFormat> 197 if ((FormatTraits<DstFormat>::GetType(0) == SWR_TYPE_FLOAT) && in StoreSOA() 198 (FormatTraits<DstFormat>::GetBPC(0) == 32)) in StoreSOA() 200 for (uint32_t comp = 0; comp < FormatTraits<DstFormat>::numComps; ++comp) in StoreSOA() 202 Float<SIMD_T> vComp = src.v[FormatTraits<DstFormat>::swizzle(comp)]; in StoreSOA() 205 if (FormatTraits<DstFormat>::isSRGB) in StoreSOA() 219 Float<SIMD_T> vComp = src.v[FormatTraits<DstFormat>::swizzle(comp)]; in StoreSOA() 222 if (FormatTraits<DstFormat>::isSRGB) in StoreSOA() 231 vComp = Clamp<SIMD_T, DstFormat>(vComp, comp); in StoreSOA() 234 vComp = Normalize<SIMD_T, DstFormat>(vComp, comp); in StoreSOA() [all …]
|
/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/memory/ |
D | StoreTile.h | 337 template<SWR_FORMAT SrcFormat, SWR_FORMAT DstFormat> 356 StoreSOA<DstFormat>(src, soaTile); 359 FormatTraits<DstFormat>::TransposeT::Transpose_simd16(soaTile, aosTile); 362 StorePixels<FormatTraits<DstFormat>::bpp, NumDests>::Store(aosTile, ppDsts); 408 static const SWR_FORMAT DstFormat = B5G6R5_UNORM; 419 dst.x = src[FormatTraits<DstFormat>::swizzle(0)]; 420 dst.y = src[FormatTraits<DstFormat>::swizzle(1)]; 421 dst.z = src[FormatTraits<DstFormat>::swizzle(2)]; 424 dst.x = Clamp<DstFormat>(dst.x, 0); 425 dst.y = Clamp<DstFormat>(dst.y, 1); [all …]
|
D | Convert.h | 230 template<SWR_FORMAT DstFormat> 238 for (UINT comp = 0; comp < FormatTraits<DstFormat>::numComps; ++comp) in ConvertPixelFromFloat() 240 SWR_TYPE type = FormatTraits<DstFormat>::GetType(comp); in ConvertPixelFromFloat() 256 if (FormatTraits<DstFormat>::isSRGB && comp != 3) in ConvertPixelFromFloat() 262 UINT scale = (1 << FormatTraits<DstFormat>::GetBPC(comp)) - 1; in ConvertPixelFromFloat() 270 SWR_ASSERT(!FormatTraits<DstFormat>::isSRGB); in ConvertPixelFromFloat() 280 UINT scale = (1 << (FormatTraits<DstFormat>::GetBPC(comp) - 1)) - 1; in ConvertPixelFromFloat() 297 if (FormatTraits<DstFormat>::GetBPC(comp) == 32) in ConvertPixelFromFloat() 304 UINT max = (1 << FormatTraits<DstFormat>::GetBPC(comp)) - 1; // 2^numBits - 1 in ConvertPixelFromFloat() 312 if (FormatTraits<DstFormat>::GetBPC(comp) == 32) in ConvertPixelFromFloat() [all …]
|
D | ClearTile.cpp | 48 template<SWR_FORMAT SrcFormat, SWR_FORMAT DstFormat> 109 template<SWR_FORMAT SrcFormat, SWR_FORMAT DstFormat> 122 UINT dstBytesPerPixel = (FormatTraits<DstFormat>::bpp / 8); in StoreClear() 128 for (UINT comp = 0; comp < FormatTraits<DstFormat>::numComps; ++comp) in StoreClear() 130 srcColor[comp] = pColor[FormatTraits<DstFormat>::swizzle(comp)]; in StoreClear() 134 ConvertPixelFromFloat<DstFormat>(dstFormattedColor, srcColor); in StoreClear() 143 …StoreRasterTileClear<SrcFormat, DstFormat>::StoreClear(dstFormattedColor, dstBytesPerPixel, pDstSu… in StoreClear()
|
D | LoadTile.h | 57 template<typename TTraits, SWR_FORMAT SrcFormat, SWR_FORMAT DstFormat> 70 typedef SimdTile_16<DstFormat, SrcFormat> SimdT; in SetSwizzledDstColor() 124 template<typename TTraits, SWR_FORMAT SrcFormat, SWR_FORMAT DstFormat> 138 loadRasterTileFn = LoadRasterTile<TTraits, SrcFormat, DstFormat>::Load; in Load() 148 … pDstHotTile += KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * (FormatTraits<DstFormat>::bpp / 8); in Load()
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | CopyTextureForBrowserTests.cpp | 35 using DstFormat = wgpu::TextureFormat; typedef 51 DAWN_TEST_PARAM_STRUCT(FormatTestParams, SrcFormat, DstFormat);
|