Home
last modified time | relevance | path

Searched refs:textureSize (Results 1 – 18 of 18) sorted by relevance

/external/skia/src/gpu/
DGrTexture.cpp34 size_t textureSize; in onGpuMemorySize() local
37 textureSize = GrCompressedFormatDataSize(fDesc.fConfig, fDesc.fWidth, fDesc.fHeight); in onGpuMemorySize()
39 textureSize = (size_t) fDesc.fWidth * fDesc.fHeight * GrBytesPerPixel(fDesc.fConfig); in onGpuMemorySize()
45 textureSize += textureSize/3; in onGpuMemorySize()
49 SkASSERT(textureSize <= WorseCaseSize(fDesc)); in onGpuMemorySize()
51 return textureSize; in onGpuMemorySize()
DGrLayerCache.cpp108 SkISize textureSize = SkISize::Make(kAtlasTextureWidth, kAtlasTextureHeight); in initAtlas() local
110 kRenderTarget_GrSurfaceFlag, textureSize, in initAtlas()
/external/mesa3d/src/glsl/builtins/profiles/
D140.glsl475 /* textureSize */
476 int textureSize( sampler1D sampler, int lod);
477 int textureSize(isampler1D sampler, int lod);
478 int textureSize(usampler1D sampler, int lod);
480 ivec2 textureSize( sampler2D sampler, int lod);
481 ivec2 textureSize(isampler2D sampler, int lod);
482 ivec2 textureSize(usampler2D sampler, int lod);
484 ivec3 textureSize( sampler3D sampler, int lod);
485 ivec3 textureSize(isampler3D sampler, int lod);
486 ivec3 textureSize(usampler3D sampler, int lod);
[all …]
D130.glsl471 /* textureSize */
472 int textureSize( sampler1D sampler, int lod);
473 int textureSize(isampler1D sampler, int lod);
474 int textureSize(usampler1D sampler, int lod);
476 ivec2 textureSize( sampler2D sampler, int lod);
477 ivec2 textureSize(isampler2D sampler, int lod);
478 ivec2 textureSize(usampler2D sampler, int lod);
480 ivec3 textureSize( sampler3D sampler, int lod);
481 ivec3 textureSize(isampler3D sampler, int lod);
482 ivec3 textureSize(usampler3D sampler, int lod);
[all …]
/external/deqp/modules/gles3/functional/
Des3fTextureUnitTests.cpp299 …dMax(const tcu::Vector<tcu::Vec2, 3>& derivateParts, const tcu::IVec3& textureSize, const Vec2& sc… in calculateLodMax() argument
301 float dudx = derivateParts[0].x() * (float)textureSize.x() * screenDerivate.x(); in calculateLodMax()
302 float dudy = derivateParts[0].y() * (float)textureSize.x() * screenDerivate.y(); in calculateLodMax()
303 float dvdx = derivateParts[1].x() * (float)textureSize.y() * screenDerivate.x(); in calculateLodMax()
304 float dvdy = derivateParts[1].y() * (float)textureSize.y() * screenDerivate.y(); in calculateLodMax()
305 float dwdx = derivateParts[2].x() * (float)textureSize.z() * screenDerivate.x(); in calculateLodMax()
306 float dwdy = derivateParts[2].y() * (float)textureSize.z() * screenDerivate.y(); in calculateLodMax()
315 …dMin(const tcu::Vector<tcu::Vec2, 3>& derivateParts, const tcu::IVec3& textureSize, const Vec2& sc… in calculateLodMin() argument
317 float dudx = derivateParts[0].x() * (float)textureSize.x() * screenDerivate.x(); in calculateLodMin()
318 float dudy = derivateParts[0].y() * (float)textureSize.x() * screenDerivate.y(); in calculateLodMin()
[all …]
Des3fVertexTextureTests.cpp124 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize) in safe2DTexCoords() argument
126 return safeCoords(raw, textureSize, Vec2(0.5f)); in safe2DTexCoords()
129 static inline Vec3 safe2DArrayTexCoords (const Vec3& raw, const IVec3& textureSize) in safe2DArrayTexCoords() argument
131 return safeCoords(raw, textureSize, Vec3(0.5f, 0.5f, 0.0f)); in safe2DArrayTexCoords()
134 static inline Vec3 safe3DTexCoords (const Vec3& raw, const IVec3& textureSize) in safe3DTexCoords() argument
136 return safeCoords(raw, textureSize, Vec3(0.5f)); in safe3DTexCoords()
237 …PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const…
249 …void initializeTexCoords (const TexSizeIVec& textureSize, const TexCoordParams& texCoordParam…
276 …ordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoord… in PosTexCoordQuadGrid() argument
311 initializeTexCoords(textureSize, texCoordParams, useSafeTexCoords); in PosTexCoordQuadGrid()
[all …]
Des3fShaderTextureFunctionTests.cpp966 tcu::IVec3 textureSize; member
1123 const bool isSquare = testSize.textureSize.x() == testSize.textureSize.y(); in testTextureSize()
1124 …t bool is2DLodValid = (testSize.textureSize.x() >> (testSize.lod + testSize.lodBase)) != 0 || (… in testTextureSize()
1164 …< "Testing image size " << testSize.textureSize.x() << "x" << testSize.textureSize.y() << "x" << t… in testTextureSize()
1171 …rget, levels, m_textureSpec.format, testSize.textureSize.x(), testSize.textureSize.y(), testSize.t… in testTextureSize()
1178 …estLog::Message << "Testing image size " << testSize.textureSize.x() << "x" << testSize.textureSiz… in testTextureSize()
1185 …e2D(textureTarget, levels, m_textureSpec.format, testSize.textureSize.x(), testSize.textureSize.y(… in testTextureSize()
1191 …IVec3 expectedSize(testSize.expectedSize.x(), testSize.expectedSize.y(), testSize.textureSize.z()); in testTextureSize()
1193 …Testing image size " << testSize.textureSize.x() << "x" << testSize.textureSize.y() << " with " <<… in testTextureSize()
1195 …tedSize.x() << "x" << testSize.expectedSize.y() << " and " << testSize.textureSize.z() << " layer(… in testTextureSize()
[all …]
/external/deqp/modules/gles2/functional/
Des2fTextureUnitTests.cpp219 static float calculateLodMax(const Vec4& derivateParts, const tcu::IVec2& textureSize, const Vec2& … in calculateLodMax() argument
221 float dudx = derivateParts.x() * (float)textureSize.x() * screenDerivate.x(); in calculateLodMax()
222 float dudy = derivateParts.y() * (float)textureSize.x() * screenDerivate.y(); in calculateLodMax()
223 float dvdx = derivateParts.z() * (float)textureSize.y() * screenDerivate.x(); in calculateLodMax()
224 float dvdy = derivateParts.w() * (float)textureSize.y() * screenDerivate.y(); in calculateLodMax()
230 static float calculateLodMin(const Vec4& derivateParts, const tcu::IVec2& textureSize, const Vec2& … in calculateLodMin() argument
232 float dudx = derivateParts.x() * (float)textureSize.x() * screenDerivate.x(); in calculateLodMin()
233 float dudy = derivateParts.y() * (float)textureSize.x() * screenDerivate.y(); in calculateLodMin()
234 float dvdx = derivateParts.z() * (float)textureSize.y() * screenDerivate.x(); in calculateLodMin()
235 float dvdy = derivateParts.w() * (float)textureSize.y() * screenDerivate.y(); in calculateLodMin()
Des2fVertexTextureTests.cpp106 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize) in safe2DTexCoords() argument
108 return safeCoords(raw, textureSize, Vec2(0.5f)); in safe2DTexCoords()
187 …PosTexCoordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const…
199 …void initializeTexCoords (const TexSizeIVec& textureSize, const TexCoordParams& texCoordParam…
226 …ordQuadGrid (int gridSize, const IVec2& renderSize, const TexSizeIVec& textureSize, const TexCoord… in PosTexCoordQuadGrid() argument
261 initializeTexCoords(textureSize, texCoordParams, useSafeTexCoords); in PosTexCoordQuadGrid()
269 void PosTexCoordQuadGrid<TEXTURETYPE_2D>::initializeTexCoords (const IVec2& textureSize, const TexC… in initializeTexCoords() argument
281 m_texCoords.push_back(useSafeTexCoords ? safe2DTexCoords(rawCoord, textureSize) : rawCoord); in initializeTexCoords()
286 void PosTexCoordQuadGrid<TEXTURETYPE_CUBE>::initializeTexCoords (const IVec2& textureSize, const Te… in initializeTexCoords() argument
303 …const Vec2 safeFaceCoord = useSafeTexCoords ? safe2DTexCoords(rawFaceCoord, textureSize) : rawFace… in initializeTexCoords()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineImageUtil.cpp548 deUint32 textureSize = 0; in getSize() local
558 textureSize = getNextMultiple(offsetMultiples, textureSize); in getSize()
559textureSize += level.getWidth() * level.getHeight() * level.getDepth() * level.getFormat().getPixe… in getSize()
563 return textureSize; in getSize()
572 deUint32 textureSize = 0; in getCompressedSize() local
581 textureSize = getNextMultiple(offsetMultiples, textureSize); in getCompressedSize()
582 textureSize += getCompressedLevel(levelNdx, layerNdx).getDataSize(); in getCompressedSize()
586 return textureSize; in getCompressedSize()
/external/mesa3d/src/mesa/drivers/dri/radeon/server/
Dradeon_dri.h82 int textureSize; /**< \brief size of texture date */ member
/external/mesa3d/src/mesa/drivers/dri/r200/server/
Dradeon_dri.h82 int textureSize; /**< \brief size of texture date */ member
/external/deqp/modules/gles31/functional/
Des31fShaderImageLoadStoreTests.cpp826 const IVec3& textureSize, in readIntegerTextureViaFBOAndVerify() argument
836 const int numSlicesOrFaces = textureType == TEXTURETYPE_CUBE ? 6 : textureSize.z(); in readIntegerTextureViaFBOAndVerify()
839 tcu::TextureLevel resultSlice (textureFormat, textureSize.x(), textureSize.y()); in readIntegerTextureViaFBOAndVerify()
883 const IVec3& textureSize, in readFloatOrNormTextureWithLookupsAndVerify() argument
899 " vec4 color[" + toString(textureSize.x()*textureSize.y()) + "];\n" in readFloatOrNormTextureWithLookupsAndVerify()
914 " highp float s = (float(gx) + 0.5) / float(" + toString(textureSize.x()) + ");\n" in readFloatOrNormTextureWithLookupsAndVerify()
915 …+ 0.5) / float(" + toString(textureType == TEXTURETYPE_CUBE ? textureSize.x() : textureSize.y()) +… in readFloatOrNormTextureWithLookupsAndVerify()
920 " int ndx = gy*" + toString(textureSize.x()) + " + gx;\n" in readFloatOrNormTextureWithLookupsAndVerify()
963 const int numSlicesOrFaces = textureType == TEXTURETYPE_CUBE ? 6 : textureSize.z(); in readFloatOrNormTextureWithLookupsAndVerify()
964 tcu::TextureLevel resultSlice (textureFormat, textureSize.x(), textureSize.y()); in readFloatOrNormTextureWithLookupsAndVerify()
[all …]
Des31fTextureGatherTests.cpp1633 const IVec2& textureSize) in TextureGather2DCase() argument
1635 , m_textureSize (textureSize) in TextureGather2DCase()
1723 const IVec3& textureSize) in TextureGather2DArrayCase() argument
1725 , m_textureSize (textureSize) in TextureGather2DArrayCase()
1855 int textureSize) in TextureGatherCubeCase() argument
1857 , m_textureSize (textureSize) in TextureGatherCubeCase()
1994 const IVec3& textureSize, in makeTextureGatherCase() argument
2001 … wrapS, wrapT, texSwizzle, minFilter, magFilter, baseLevel, flags, textureSize.swizzle(0, 1)); in makeTextureGatherCase()
2005 wrapS, wrapT, texSwizzle, minFilter, magFilter, baseLevel, flags, textureSize); in makeTextureGatherCase()
2011 wrapS, wrapT, texSwizzle, minFilter, magFilter, baseLevel, flags, textureSize.x()); in makeTextureGatherCase()
[all …]
/external/deqp/modules/gles2/stress/
Des2sSpecialFloatTests.cpp263 const int textureSize = 32; in drawTestPattern() local
264 std::vector<tcu::Vector<deUint8, 4> > buffer(textureSize*textureSize); in drawTestPattern()
266 for (int x = 0; x < textureSize; ++x) in drawTestPattern()
267 for (int y = 0; y < textureSize; ++y) in drawTestPattern()
271 …Uint8)de::clamp(de::abs((float)x / (float)textureSize - 0.5f) * 255.0f + de::abs((float)y / (float… in drawTestPattern()
273 buffer[x * textureSize + y] = tcu::Vector<deUint8, 4>(redComponent, 255, 255, 255); in drawTestPattern()
278 …gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureSize, textureSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, b… in drawTestPattern()
/external/deqp/modules/gles3/stress/
Des3sSpecialFloatTests.cpp271 const int textureSize = 32; in drawTestPattern() local
272 std::vector<tcu::Vector<deUint8, 4> > buffer(textureSize*textureSize); in drawTestPattern()
274 for (int x = 0; x < textureSize; ++x) in drawTestPattern()
275 for (int y = 0; y < textureSize; ++y) in drawTestPattern()
279 …Uint8)de::clamp(de::abs((float)x / (float)textureSize - 0.5f) * 255.0f + de::abs((float)y / (float… in drawTestPattern()
281 buffer[x * textureSize + y] = tcu::Vector<deUint8, 4>(redComponent, 255, 255, 255); in drawTestPattern()
286 …gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, textureSize, textureSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, … in drawTestPattern()
/external/deqp/data/gles31/shaders/
Dandroid_extension_pack.test414 if (textureSize(u_sampler) > 10)
444 if (textureSize(u_sampler, 3).y > 10)
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderExecutor.cpp3152 deUint32 textureSize = texSize.x() * texSize.y() * texSize.z() * texFormat.getPixelSize(); in uploadImage() local
3162 bufferSize = arraySize * textureSize; in uploadImage()
3308 layerDataOffset += textureSize; in uploadImage()
3323 levelOffset += textureSize; in uploadImage()