/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
D | format_conversion.h | 40 if ((FormatTraits<SrcFormat>::GetType(0) == SWR_TYPE_FLOAT) && in LoadSOA() 41 (FormatTraits<SrcFormat>::GetBPC(0) == 32)) in LoadSOA() 48 dst.v[FormatTraits<SrcFormat>::swizzle(comp)] = vComp; in LoadSOA() 51 UnrollerL<0, FormatTraits<SrcFormat>::numComps, 1>::step(lambda); in LoadSOA() 59 FormatTraits<SrcFormat>::loadSOA(comp, pSrc, vComp); in LoadSOA() 62 vComp = FormatTraits<SrcFormat>::unpack(comp, vComp); in LoadSOA() 65 if (FormatTraits<SrcFormat>::isNormalized(comp)) in LoadSOA() 68 vComp = SIMD_T::mul_ps(vComp, SIMD_T::set1_ps(FormatTraits<SrcFormat>::toFloat(comp))); in LoadSOA() 71 dst.v[FormatTraits<SrcFormat>::swizzle(comp)] = vComp; in LoadSOA() 76 pSrc += (FormatTraits<SrcFormat>::GetBPC(comp) * SIMD_WIDTH) / 8; in LoadSOA() [all …]
|
D | format_traits.h | 53 struct FormatTraits : ComponentTraits<SWR_TYPE_UNKNOWN, 0>, FormatSwizzle<0>, Defaults<0, 0, 0, 0> struct 71 struct FormatTraits<R32G32B32A32_FLOAT> : ComponentTraits<SWR_TYPE_FLOAT, 100 struct FormatTraits<R32G32B32A32_SINT> 123 struct FormatTraits<R32G32B32A32_UINT> 146 struct FormatTraits<R64G64_FLOAT> : ComponentTraits<SWR_TYPE_FLOAT, 64, SWR_TYPE_FLOAT, 64>, 168 struct FormatTraits<R32G32B32X32_FLOAT> : ComponentTraits<SWR_TYPE_FLOAT, 197 struct FormatTraits<R32G32B32A32_SSCALED> : ComponentTraits<SWR_TYPE_SSCALED, 226 struct FormatTraits<R32G32B32A32_USCALED> : ComponentTraits<SWR_TYPE_USCALED, 255 struct FormatTraits<R32G32B32A32_SFIXED> : ComponentTraits<SWR_TYPE_SFIXED, 284 struct FormatTraits<R32G32B32_FLOAT> [all …]
|
D | backend_impl.h | 91 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8), in RasterTileColorOffset() 92 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 2, in RasterTileColorOffset() 93 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 3, in RasterTileColorOffset() 94 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 4, in RasterTileColorOffset() 95 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 5, in RasterTileColorOffset() 96 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 6, in RasterTileColorOffset() 97 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 7, in RasterTileColorOffset() 98 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 8, in RasterTileColorOffset() 99 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * 9, in RasterTileColorOffset() 100 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8) * in RasterTileColorOffset() [all …]
|
D | backend_clear.cpp | 45 FormatTraits<format>::storeSOA(comp, pTileBuffer, value.v[comp]); in ClearRasterTile() 47 pTileBuffer += (KNOB_SIMD16_WIDTH * FormatTraits<format>::GetBPC(comp) / 8); in ClearRasterTile() 55 UnrollerL<0, FormatTraits<format>::numComps, 1>::step(lambda); in ClearRasterTile() 72 for (uint32_t comp = 0; comp < FormatTraits<format>::numComps; ++comp) in ClearMacroTile() 76 if (FormatTraits<format>::isNormalized(comp)) in ClearMacroTile() 78 vComp = _simd16_mul_ps(vComp, _simd16_set1_ps(FormatTraits<format>::fromFloat(comp))); in ClearMacroTile() 81 vComp = FormatTraits<format>::pack(comp, vComp); in ClearMacroTile() 83 vClear.v[FormatTraits<format>::swizzle(comp)] = vComp; in ClearMacroTile() 117 KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * FormatTraits<format>::bpp / 8; in ClearMacroTile() 119 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * (FormatTraits<format>::bpp / 8)) * numSamples; in ClearMacroTile() [all …]
|
D | rasterizer.h | 207 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * (FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8)) * 210 (KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * (FormatTraits<KNOB_DEPTH_HOT_TILE_FORMAT>::bpp / 8)) * 213 (FormatTraits<KNOB_STENCIL_HOT_TILE_FORMAT>::bpp / 8)) *
|
D | tilemgr.h | 278 FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8; in HotTileMgr() 281 FormatTraits<KNOB_DEPTH_HOT_TILE_FORMAT>::bpp / 8; in HotTileMgr() 283 FormatTraits<KNOB_STENCIL_HOT_TILE_FORMAT>::bpp / 8; in HotTileMgr()
|
D | backend_singlesample.cpp | 294 (2 * KNOB_SIMD_WIDTH * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp) / 8; in BackendSingleSample() 298 pDepthBuffer += (KNOB_SIMD_WIDTH * FormatTraits<KNOB_DEPTH_HOT_TILE_FORMAT>::bpp) / 8; in BackendSingleSample() 300 (KNOB_SIMD_WIDTH * FormatTraits<KNOB_STENCIL_HOT_TILE_FORMAT>::bpp) / 8; in BackendSingleSample()
|
D | backend_sample.cpp | 311 (2 * KNOB_SIMD_WIDTH * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp) / 8; in BackendSampleRate() 315 pDepthBuffer += (KNOB_SIMD_WIDTH * FormatTraits<KNOB_DEPTH_HOT_TILE_FORMAT>::bpp) / 8; in BackendSampleRate() 317 (KNOB_SIMD_WIDTH * FormatTraits<KNOB_STENCIL_HOT_TILE_FORMAT>::bpp) / 8; in BackendSampleRate()
|
D | depthstencil.h | 89 SWR_TYPE depthType = FormatTraits<depthFormatT>::GetType(0); in QuantizeDepth() 90 uint32_t depthBpc = FormatTraits<depthFormatT>::GetBPC(0); in QuantizeDepth()
|
D | backend.cpp | 381 pDepthBuffer += (KNOB_SIMD_WIDTH * FormatTraits<KNOB_DEPTH_HOT_TILE_FORMAT>::bpp) / 8; in BackendNullPS() 383 (KNOB_SIMD_WIDTH * FormatTraits<KNOB_STENCIL_HOT_TILE_FORMAT>::bpp) / 8; in BackendNullPS()
|
D | rasterizer_impl.h | 1443 const uint32_t pitch = KNOB_MACROTILE_X_DIM * FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp / 8; 1445 TilingTraits<SWR_TILE_SWRZ, FormatTraits<KNOB_COLOR_HOT_TILE_FORMAT>::bpp>>( 1470 KNOB_MACROTILE_X_DIM * FormatTraits<KNOB_DEPTH_HOT_TILE_FORMAT>::bpp / 8; 1472 TilingTraits<SWR_TILE_SWRZ, FormatTraits<KNOB_DEPTH_HOT_TILE_FORMAT>::bpp>>( 1491 KNOB_MACROTILE_X_DIM * FormatTraits<KNOB_STENCIL_HOT_TILE_FORMAT>::bpp / 8; 1493 TilingTraits<SWR_TILE_SWRZ, FormatTraits<KNOB_STENCIL_HOT_TILE_FORMAT>::bpp>>(
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/memory/ |
D | Convert.h | 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() 319 INT max = (1 << (FormatTraits<DstFormat>::GetBPC(comp) - 1)) - 1; in ConvertPixelFromFloat() [all …]
|
D | StoreTile.h | 359 FormatTraits<DstFormat>::TransposeT::Transpose_simd16(soaTile, aosTile); 362 StorePixels<FormatTraits<DstFormat>::bpp, NumDests>::Store(aosTile, ppDsts); 386 FormatTraits<Format>::TransposeT::Transpose_simd16(pSrc, aosTile); 389 StorePixels<FormatTraits<Format>::bpp, NumDests>::Store(aosTile, ppDsts); 419 dst.x = src[FormatTraits<DstFormat>::swizzle(0)]; 420 dst.y = src[FormatTraits<DstFormat>::swizzle(1)]; 421 dst.z = src[FormatTraits<DstFormat>::swizzle(2)]; 436 SWR_ASSERT(FormatTraits<DstFormat>::GetBPC(0) == 5); 437 SWR_ASSERT(FormatTraits<DstFormat>::GetBPC(1) == 6); 451 StorePixels<FormatTraits<DstFormat>::bpp, NumDests>::Store(aosTile, ppDsts); [all …]
|
D | TilingFunctions.h | 48 float color[FormatTraits<HotTileFormat>::numComps][KNOB_SIMD_WIDTH]; 68 for (uint32_t i = 0; i < FormatTraits<SrcOrDstFormat>::numComps; ++i) in GetSwizzledColor() 70 outputColor[i] = this->color[FormatTraits<SrcOrDstFormat>::swizzle(i)][offset[index]]; in GetSwizzledColor() 93 for (uint32_t i = 0; i < FormatTraits<SrcOrDstFormat>::numComps; ++i) in SetSwizzledColor() 104 uint8_t color[FormatTraits<R8_UINT>::numComps][KNOB_SIMD_WIDTH]; 124 for (uint32_t i = 0; i < FormatTraits<R8_UINT>::numComps; ++i) 126 uint32_t src = this->color[FormatTraits<R8_UINT>::swizzle(i)][offset[index]]; 150 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 …]
|
D | ClearTile.cpp | 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()
|
D | LoadTile.h | 148 … pDstHotTile += KNOB_TILE_X_DIM * KNOB_TILE_Y_DIM * (FormatTraits<DstFormat>::bpp / 8); in Load()
|