HomeSort by relevance Sort by last modified time
    Searched refs:FormatTraits (Results 1 - 15 of 15) sorted by null

  /external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
format_conversion.h 40 if ((FormatTraits<SrcFormat>::GetType(0) == SWR_TYPE_FLOAT) && (FormatTraits<SrcFormat>::GetBPC(0) == 32))
46 dst.v[FormatTraits<SrcFormat>::swizzle(comp)] = vComp;
49 UnrollerL<0, FormatTraits<SrcFormat>::numComps, 1>::step(lambda);
56 simdscalar vComp = FormatTraits<SrcFormat>::loadSOA(comp, pSrc);
59 vComp = FormatTraits<SrcFormat>::unpack(comp, vComp);
62 if (FormatTraits<SrcFormat>::isNormalized(comp))
65 vComp = _simd_mul_ps(vComp, _simd_set1_ps(FormatTraits<SrcFormat>::toFloat(comp)));
68 dst.v[FormatTraits<SrcFormat>::swizzle(comp)] = vComp;
70 pSrc += (FormatTraits<SrcFormat>::GetBPC(comp) * KNOB_SIMD_WIDTH) / 8
    [all...]
format_traits.h 50 /// FormatTraits - Format traits
53 struct FormatTraits :
71 /// FormatTraits<R32G32B32A32_FLOAT> - Format traits specialization for R32G32B32A32_FLOAT
73 template<> struct FormatTraits<R32G32B32A32_FLOAT> :
93 /// FormatTraits<R32G32B32A32_SINT> - Format traits specialization for R32G32B32A32_SINT
95 template<> struct FormatTraits<R32G32B32A32_SINT> :
115 /// FormatTraits<R32G32B32A32_UINT> - Format traits specialization for R32G32B32A32_UINT
117 template<> struct FormatTraits<R32G32B32A32_UINT> :
137 /// FormatTraits<R64G64_FLOAT> - Format traits specialization for R64G64_FLOAT
139 template<> struct FormatTraits<R64G64_FLOAT>
    [all...]
backend.h 69 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8),
70 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 2,
71 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 3,
72 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 4,
73 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 5,
74 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 6,
75 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 7,
76 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 8,
77 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 9,
78 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 10
    [all...]
rasterizer.h 131 static const int colorRasterTileStep{(KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * (FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8)) * MT::numSamples};
132 static const int depthRasterTileStep{(KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * (FormatTraits<KNOB_DEPTH_HOT_TILE_FORMAT>::bpp / 8)) * MT::numSamples};
133 static const int stencilRasterTileStep{(KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * (FormatTraits<KNOB_STENCIL_HOT_TILE_FORMAT>::bpp / 8)) * MT::numSamples};
backend.cpp 103 FormatTraits<format>::storeSOA(comp, pTileBuffer, value.v[comp]);
105 pTileBuffer += (KNOB_SIMD_WIDTH * FormatTraits<format>::GetBPC(comp) / 8);
112 UnrollerL<0, FormatTraits<format>::numComps, 1>::step(lambda);
122 FormatTraits<format>::storeSOA(comp, pTileBuffer, value.v[comp]);
124 pTileBuffer += (KNOB_SIMD16_WIDTH * FormatTraits<format>::GetBPC(comp) / 8);
131 UnrollerL<0, FormatTraits<format>::numComps, 1>::step(lambda);
143 for (uint32_t comp = 0; comp < FormatTraits<format>::numComps; ++comp)
147 if (FormatTraits<format>::isNormalized(comp))
149 vComp = _simd16_mul_ps(vComp, _simd16_set1_ps(FormatTraits<format>::fromFloat(comp)));
152 vComp = FormatTraits<format>::pack(comp, vComp)
    [all...]
tilemgr.h 286 mHotTileSize[i] = KNOB_MACROTILE_X_DIM * KNOB_MACROTILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8;
288 mHotTileSize[SWR_ATTACHMENT_DEPTH] = KNOB_MACROTILE_X_DIM * KNOB_MACROTILE_Y_DIM * FormatTraits<KNOB_DEPTH_HOT_TILE_FORMAT>::bpp / 8;
289 mHotTileSize[SWR_ATTACHMENT_STENCIL] = KNOB_MACROTILE_X_DIM * KNOB_MACROTILE_Y_DIM * FormatTraits<KNOB_STENCIL_HOT_TILE_FORMAT>::bpp / 8;
depthstencil.h 86 SWR_TYPE depthType = FormatTraits<depthFormatT>::GetType(0);
87 uint32_t depthBpc = FormatTraits<depthFormatT>::GetBPC(0);
rasterizer.cpp     [all...]
  /external/mesa3d/src/gallium/drivers/swr/rasterizer/memory/
Convert.h 238 for (UINT comp = 0; comp < FormatTraits<DstFormat>::numComps; ++comp)
240 SWR_TYPE type = FormatTraits<DstFormat>::GetType(comp);
256 if (FormatTraits<DstFormat>::isSRGB && comp != 3)
262 UINT scale = (1 << FormatTraits<DstFormat>::GetBPC(comp)) - 1;
270 SWR_ASSERT(!FormatTraits<DstFormat>::isSRGB);
280 UINT scale = (1 << (FormatTraits<DstFormat>::GetBPC(comp) - 1)) - 1;
297 if (FormatTraits<DstFormat>::GetBPC(comp) == 32)
304 UINT max = (1 << FormatTraits<DstFormat>::GetBPC(comp)) - 1; // 2^numBits - 1
312 if (FormatTraits<DstFormat>::GetBPC(comp) == 32)
319 INT max = (1 << (FormatTraits<DstFormat>::GetBPC(comp) - 1)) - 1
    [all...]
TilingFunctions.h 47 float color[FormatTraits<HotTileFormat>::numComps][KNOB_SIMD_WIDTH];
67 for (uint32_t i = 0; i < FormatTraits<SrcOrDstFormat>::numComps; ++i)
69 outputColor[i] = this->color[FormatTraits<SrcOrDstFormat>::swizzle(i)][offset[index]];
92 for (uint32_t i = 0; i < FormatTraits<SrcOrDstFormat>::numComps; ++i)
103 uint8_t color[FormatTraits<R8_UINT>::numComps][KNOB_SIMD_WIDTH];
123 for (uint32_t i = 0; i < FormatTraits<R8_UINT>::numComps; ++i)
125 uint32_t src = this->color[FormatTraits<R8_UINT>::swizzle(i)][offset[index]];
149 for (uint32_t i = 0; i < FormatTraits<R8_UINT>::numComps; ++i)
165 float color[FormatTraits<HotTileFormat>::numComps][KNOB_SIMD16_WIDTH];
181 for (uint32_t i = 0; i < FormatTraits<SrcOrDstFormat>::numComps; ++i
    [all...]
StoreTile.h 367 FormatTraits<DstFormat>::TransposeT::Transpose_16(soaTile, aosTile);
381 FormatTraits<DstFormat>::TransposeT::Transpose(soaTile, aosTile);
385 StorePixels<FormatTraits<DstFormat>::bpp, NumDests>::Store(aosTile, ppDsts);
410 FormatTraits<Format>::TransposeT::Transpose_16(pSrc, aosTile);
418 FormatTraits<Format>::TransposeT::Transpose(pSrc, aosTile);
422 StorePixels<FormatTraits<Format>::bpp, NumDests>::Store(aosTile, ppDsts);
453 dst.x = src[FormatTraits<DstFormat>::swizzle(0)];
454 dst.y = src[FormatTraits<DstFormat>::swizzle(1)];
455 dst.z = src[FormatTraits<DstFormat>::swizzle(2)];
470 SWR_ASSERT(FormatTraits<DstFormat>::GetBPC(0) == 5)
    [all...]
ClearTile.cpp 122 UINT dstBytesPerPixel = (FormatTraits<DstFormat>::bpp / 8);
128 for (UINT comp = 0; comp < FormatTraits<DstFormat>::numComps; ++comp)
130 srcColor[comp] = pColor[FormatTraits<DstFormat>::swizzle(comp)];
LoadTile.h 164 pDstHotTile += KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * (FormatTraits<DstFormat>::bpp / 8);
  /frameworks/av/media/libmedia/include/media/
TypeConverter.h 55 struct FormatTraits
222 typedef TypeConverter<FormatTraits> FormatConverter;
253 FormatTraits::Collection formatsFromString(
  /frameworks/av/media/libmedia/
TypeConverter.cpp 326 template class TypeConverter<FormatTraits>;
357 FormatTraits::Collection formatsFromString(
360 FormatTraits::Collection formatCollection;

Completed in 1036 milliseconds