Home
last modified time | relevance | path

Searched refs:SrcFormat (Results 1 – 6 of 6) sorted by relevance

/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dformat_conversion.h36 template<SWR_FORMAT SrcFormat>
40 …if ((FormatTraits<SrcFormat>::GetType(0) == SWR_TYPE_FLOAT) && (FormatTraits<SrcFormat>::GetBPC(0)… in LoadSOA()
46 dst.v[FormatTraits<SrcFormat>::swizzle(comp)] = vComp; in LoadSOA()
49 UnrollerL<0, FormatTraits<SrcFormat>::numComps, 1>::step(lambda); in LoadSOA()
56 simdscalar vComp = FormatTraits<SrcFormat>::loadSOA(comp, pSrc); in LoadSOA()
59 vComp = FormatTraits<SrcFormat>::unpack(comp, vComp); in LoadSOA()
62 if (FormatTraits<SrcFormat>::isNormalized(comp)) in LoadSOA()
65 vComp = _simd_mul_ps(vComp, _simd_set1_ps(FormatTraits<SrcFormat>::toFloat(comp))); in LoadSOA()
68 dst.v[FormatTraits<SrcFormat>::swizzle(comp)] = vComp; in LoadSOA()
70 pSrc += (FormatTraits<SrcFormat>::GetBPC(comp) * KNOB_SIMD_WIDTH) / 8; in LoadSOA()
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/memory/
DStoreTile.h344 template<SWR_FORMAT SrcFormat, SWR_FORMAT DstFormat>
363 LoadSOA<SrcFormat>(pSrc, src);
377 LoadSOA<SrcFormat>(pSrc, src);
441 static const SWR_FORMAT SrcFormat = R32G32B32A32_FLOAT;
450 LoadSOA<SrcFormat>(pSrc, src);
485 static const SWR_FORMAT SrcFormat = R32G32B32A32_FLOAT;
493 LoadSOA<SrcFormat>(pSrc, src);
536 static const SWR_FORMAT SrcFormat = R32_FLOAT;
588 LoadSOA<SrcFormat>(pSrc, src);
1064 template<typename TTraits, SWR_FORMAT SrcFormat, SWR_FORMAT DstFormat>
[all …]
DConvert.h392 template<SWR_FORMAT SrcFormat>
400 …typename FormatTraits<SrcFormat>::FormatT* pPixel = (typename FormatTraits<SrcFormat>::FormatT*)pS… in ConvertPixelToFloat()
405 uint32_t def = FormatTraits<SrcFormat>::GetDefault(comp); in ConvertPixelToFloat()
410 switch (FormatTraits<SrcFormat>::numComps) in ConvertPixelToFloat()
426 for (uint32_t comp = 0; comp < FormatTraits<SrcFormat>::numComps; ++comp) in ConvertPixelToFloat()
428 SWR_TYPE type = FormatTraits<SrcFormat>::GetType(comp); in ConvertPixelToFloat()
437 if (FormatTraits<SrcFormat>::isSRGB && comp != 3) in ConvertPixelToFloat()
444 if (FormatTraits<SrcFormat>::GetBPC(comp) > 16) in ConvertPixelToFloat()
446 dst = (float)src / (float)((1 << FormatTraits<SrcFormat>::GetBPC(comp)) - 1); in ConvertPixelToFloat()
450 … const float scale = (1.0f / (float)((1 << FormatTraits<SrcFormat>::GetBPC(comp)) - 1)); in ConvertPixelToFloat()
[all …]
DLoadTile.h57 template<typename TTraits, SWR_FORMAT SrcFormat, SWR_FORMAT DstFormat>
71 typedef SimdTile_16<DstFormat, SrcFormat> SimdT; in SetSwizzledDstColor()
85 typedef SimdTile<DstFormat, SrcFormat> SimdT; in SetSwizzledDstColor()
127 ConvertPixelToFloat<SrcFormat>(srcColor, pSrc); in Load()
140 template<typename TTraits, SWR_FORMAT SrcFormat, SWR_FORMAT DstFormat>
154 loadRasterTileFn = LoadRasterTile<TTraits, SrcFormat, DstFormat>::Load; in Load()
DClearTile.cpp48 template<SWR_FORMAT SrcFormat, SWR_FORMAT DstFormat>
109 template<SWR_FORMAT SrcFormat, SWR_FORMAT DstFormat>
143 …StoreRasterTileClear<SrcFormat, DstFormat>::StoreClear(dstFormattedColor, dstBytesPerPixel, pDstSu… in StoreClear()
/external/skia/src/core/
DSkColorSpaceXform.cpp731 enum SrcFormat { enum
750 template <SrcFormat kSrc,
998 template <SrcFormat kSrc, DstFormat kDst, ColorSpaceMatch kCSM>