| /third_party/mesa3d/src/mesa/state_tracker/ |
| H A D | st_atom_pixeltransfer.c | 53 const uint texSize = pt->width0; in load_color_map_texture() local 59 0, 0, texSize, texSize, &transfer); in load_color_map_texture() 67 for (i = 0; i < texSize; i++) { in load_color_map_texture() 68 for (j = 0; j < texSize; j++) { in load_color_map_texture() 70 int k = (i * texSize + j); in load_color_map_texture() 72 rgba[0] = ctx->PixelMaps.RtoR.Map[j * rSize / texSize]; in load_color_map_texture() 73 rgba[1] = ctx->PixelMaps.GtoG.Map[i * gSize / texSize]; in load_color_map_texture() 74 rgba[2] = ctx->PixelMaps.BtoB.Map[j * bSize / texSize]; in load_color_map_texture() 75 rgba[3] = ctx->PixelMaps.AtoA.Map[i * aSize / texSize]; in load_color_map_texture() [all...] |
| H A D | st_texture.c | 414 const uint texSize = 256; /* simple, and usually perfect */ in st_create_color_map_texture() local 423 texSize, texSize, 1, 1, 0, PIPE_BIND_SAMPLER_VIEW, false); in st_create_color_map_texture()
|
| /third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
| H A D | ExternalWrapTest.cpp | 66 constexpr GLsizei texSize = 32; variable 67 GLubyte data[texSize * texSize * 4]; 69 for (int y = 0; y < texSize; y++) 71 float green = static_cast<float>(y) / texSize; 72 for (int x = 0; x < texSize; x++) 74 float red = static_cast<float>(x) / texSize; 76 data[(y * texSize + x) * 4 + 0] = static_cast<GLubyte>(red * 255); 77 data[(y * texSize + x) * 4 + 1] = static_cast<GLubyte>(green * 255); 79 data[(y * texSize [all...] |
| H A D | UnpackRowLength.cpp | 47 void testRowLength(int texSize, int rowLength) in testRowLength() argument 53 // Only texSize * texSize region is filled as WHITE, other parts are BLACK. in testRowLength() 56 std::vector<GLubyte> buf(rowLength * texSize * 4); in testRowLength() 57 for (int y = 0; y < texSize; y++) in testRowLength() 60 std::fill(rowIter, rowIter + texSize * 4, static_cast<GLubyte>(255u)); in testRowLength() 61 std::fill(rowIter + texSize * 4, rowIter + rowLength * 4, static_cast<GLubyte>(0u)); in testRowLength() 68 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texSize, texSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in testRowLength()
|
| H A D | RobustResourceInitTest.cpp | 1756 const int texSize = 512; in copyTexSubImage2DCustomFBOTest() local 1761 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texSize, texSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in copyTexSubImage2DCustomFBOTest() 1781 glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, offsetX, offsetY, texSize, texSize); in copyTexSubImage2DCustomFBOTest() 1788 checkCustomFramebufferNonZeroPixels(texSize, texSize, -offsetX, -offsetY, fboSize, fboSize, in copyTexSubImage2DCustomFBOTest()
|
| /third_party/vk-gl-cts/modules/gles2/performance/ |
| H A D | es2pTextureUploadTests.cpp | 79 TextureUploadCase (Context& context, const char* name, const char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize); 104 TextureUploadCase::TextureUploadCase (Context& context, const char* name, const char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize) in TextureUploadCase() argument 109 , m_texSize (texSize) in TextureUploadCase() 295 TextureUploadCallCase (Context& context, const char* name, const char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize); 302 TextureUploadCallCase::TextureUploadCallCase (Context& context, const char* name, const char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize) in TextureUploadCallCase() argument 303 : TextureUploadCase (context, name, description, uploadFunction, format, type, texSize) in TextureUploadCallCase() 385 TextureUploadAndDrawCase (Context& context, const char* name, const char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize); 396 TextureUploadAndDrawCase::TextureUploadAndDrawCase (Context& context, const char* name, const char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize) in TextureUploadAndDrawCase() argument 397 : TextureUploadCase (context, name, description, uploadFunction, format, type, texSize) in TextureUploadAndDrawCase() 541 FOR_EACH(texSize, textureSize in init() [all...] |
| /third_party/vk-gl-cts/external/openglcts/modules/gl/ |
| H A D | gl4cSparseTexture2Tests.cpp | 215 " <ICOORD_TYPE> texSize = <ICOORD_TYPE>(<SIZE_DEF>);\n" 217 " <COORD_TYPE> coord = <COORD_TYPE>(<COORD_DEF>) / <COORD_TYPE>(texSize);\n" 229 " ivec2 corner2 = ivec2(texSize.x - 1, texSize.y - 1);\n" 1066 GLint texSize = width * height * depth * mState.format.getPixelSize(); in writeDataToTexture() local 1069 vecData.resize(texSize); in writeDataToTexture() 1072 deMemset(data, 255, texSize); in writeDataToTexture() 1171 GLint texSize = width * height * depth * mState.format.getPixelSize(); in verifyTextureData() local 1175 vecExpData.resize(texSize); in verifyTextureData() 1176 vecOutData.resize(texSize); in verifyTextureData() 1209 GLint texSize = width * height * mState.format.getPixelSize(); verifyTextureData() local 1250 GLint texSize = width * height * depth; verifyTextureData() local 1766 GLint texSize = width * height * depth * mState.format.getPixelSize(); verifyTextureDataExtended() local 1816 GLint texSize = width * height * mState.format.getPixelSize(); verifyTextureDataExtended() local 1879 GLint texSize = width * height * depth; verifyTextureDataExtended() local 2031 GLint texSize = width * height * depth; verifyAtomicOperations() local 2769 GLint texSize = width * height * depth * mState.format.getPixelSize(); writeDataToTexture() local 2881 GLint texSize = width * height * depth; verifyLookupTextureData() local [all...] |
| H A D | gl4cSparseTextureClampTests.cpp | 91 " <ICOORD_TYPE> texSize = <ICOORD_TYPE>(<SIZE_DEF>);\n" 92 " <POINT_TYPE> point = <POINT_TYPE>(coord * texSize);\n" 104 " ivec2 corner2 = ivec2(texSize.x - 1, texSize.y - 1);\n" 148 " <ICOORD_TYPE> texSize = <ICOORD_TYPE>(<SIZE_DEF>);\n" 149 " <POINT_TYPE> point = <POINT_TYPE>(coord * texSize);\n" 308 GLint texSize = width * height; in verifyLookupTextureData() local 312 vecExpData.resize(texSize); in verifyLookupTextureData() 313 vecOutData.resize(texSize); in verifyLookupTextureData() 318 deMemset(exp_data, 255, texSize); in verifyLookupTextureData() 725 GLint texSize = width * height * depth * mState.format.getPixelSize(); writeDataToTexture() local 823 GLint texSize = width * height; verifyLookupTextureData() local [all...] |
| H A D | gl4cSparseTextureTests.cpp | 1918 GLint texSize = width * height * depth * mState.format.getPixelSize(); in writeDataToTexture() local 1921 vecData.resize(texSize); in writeDataToTexture() 1924 deMemset(data, 16 + 16 * level, texSize); in writeDataToTexture() 1972 GLint texSize = width * height * depth * mState.format.getPixelSize(); in verifyTextureData() local 1976 vecExpData.resize(texSize); in verifyTextureData() 1977 vecOutData.resize(texSize); in verifyTextureData() 1981 deMemset(exp_data, 16 + 16 * level, texSize); in verifyTextureData() 1982 deMemset(out_data, 255, texSize); in verifyTextureData() 2010 GLint texSize = width * height * mState.format.getPixelSize(); in verifyTextureData() local 2014 vecExpData.resize(texSize); in verifyTextureData() [all...] |
| /third_party/vk-gl-cts/external/openglcts/modules/common/ |
| H A D | glcTextureFilterAnisotropicTests.cpp | 577 GLuint texSize = 32 / (l + 1); in fillTexture() local 580 vecData.resize(texSize * texSize * texFormat.getPixelSize() * 2); in fillTexture() 582 tcu::PixelBufferAccess bufferAccess(texFormat, texSize, texSize, 1, vecData.data()); in fillTexture() 584 for (GLuint x = 0; x < texSize; ++x) in fillTexture() 586 for (GLuint y = 0; y < texSize; ++y) in fillTexture() 595 TextureFilterAnisotropicUtils::texImage(gl, target, l, internalFormat, texSize, texSize, 1, transFormat.format, in fillTexture()
|
| /third_party/vk-gl-cts/modules/gles31/functional/ |
| H A D | es31fFboColorbufferTests.cpp | 117 FboColorTex2DCase (Context& context, const char* name, const char* description, deUint32 texFmt, const IVec2& texSize) in FboColorTex2DCase() argument 120 , m_texSize (texSize) in FboColorTex2DCase() 202 FboColorTexCubeArrayCase (Context& context, const char* name, const char* description, deUint32 texFmt, const IVec3& texSize) in FboColorTexCubeArrayCase() argument 204 , m_texSize (texSize) in FboColorTexCubeArrayCase() 206 DE_ASSERT(texSize.z() % 6 == 0); in FboColorTexCubeArrayCase()
|
| H A D | es31fGeometryShaderTests.cpp | 2967 const tcu::IVec3 texSize = getTargetDimensions(m_target); in initTexture() local 2977 m_testCtx.getLog() << tcu::TestLog::Message << "Creating cubemap texture, size = " << texSize.x() << "x" << texSize.y() << tcu::TestLog::EndMessage; in initTexture() 2979 gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFormat.format, transferFormat.dataType, DE_NULL); in initTexture() 2980 gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFormat.format, transferFormat.dataType, DE_NULL); in initTexture() 2981 gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFormat.format, transferFormat.dataType, DE_NULL); in initTexture() 2982 gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, GL_RGBA8, texSize in initTexture() 3407 const tcu::IVec3 texSize = getTargetDimensions(m_target); renderToTexture() local [all...] |
| /third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/ |
| H A D | vktShaderRender.cpp | 1268 const tcu::UVec3 texSize) 1290 if (isImageSizeSupported(imageCreateInfo.imageType, texSize, deviceProperties.limits) == false) 1385 tcu::UVec3 texSize; 1393 texSize = tcu::UVec3(texture.getWidth(), texture.getHeight(), 1u); 1412 texSize = tcu::UVec3(texture.getSize(), texture.getSize(), 1u); 1446 texSize = tcu::UVec3(texture.getWidth(), texture.getHeight(), 1u); 1473 texSize = tcu::UVec3(texture.getWidth(), texture.getHeight(), texture.getDepth()); 1492 texSize = tcu::UVec3(texture.getWidth(), 1, 1); 1511 texSize = tcu::UVec3(texture.getWidth(), 1, 1); 1537 texSize [all...] |
| H A D | vktShaderRender.hpp | 578 const tcu::UVec3 texSize); 584 const tcu::UVec3 texSize,
|
| /third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/ |
| H A D | vktShaderRender.cpp | 1270 const tcu::UVec3 texSize) 1292 if (isImageSizeSupported(imageCreateInfo.imageType, texSize, deviceProperties.limits) == false) 1387 tcu::UVec3 texSize; 1395 texSize = tcu::UVec3(texture.getWidth(), texture.getHeight(), 1u); 1414 texSize = tcu::UVec3(texture.getSize(), texture.getSize(), 1u); 1448 texSize = tcu::UVec3(texture.getWidth(), texture.getHeight(), 1u); 1475 texSize = tcu::UVec3(texture.getWidth(), texture.getHeight(), texture.getDepth()); 1494 texSize = tcu::UVec3(texture.getWidth(), 1, 1); 1513 texSize = tcu::UVec3(texture.getWidth(), 1, 1); 1539 texSize [all...] |
| H A D | vktShaderRender.hpp | 580 const tcu::UVec3 texSize); 586 const tcu::UVec3 texSize,
|
| /third_party/vk-gl-cts/modules/gles3/functional/ |
| H A D | es3fFboColorbufferTests.cpp | 328 FboColorTexCubeCase (Context& context, const char* name, const char* description, deUint32 texFmt, const IVec2& texSize) in FboColorTexCubeCase() argument 330 , m_texSize (texSize) in FboColorTexCubeCase() 477 FboColorTex2DArrayCase (Context& context, const char* name, const char* description, deUint32 texFmt, const IVec3& texSize) in FboColorTex2DArrayCase() argument 479 , m_texSize (texSize) in FboColorTex2DArrayCase() 603 FboColorTex3DCase (Context& context, const char* name, const char* description, deUint32 texFmt, const IVec3& texSize) in FboColorTex3DCase() argument 605 , m_texSize (texSize) in FboColorTex3DCase()
|
| /third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
| H A D | Renderer11.cpp | 3423 const gl::Extents &texSize = textureHelper.getExtents(); in readFromAttachment() local 3429 actualArea.y = texSize.height - actualArea.y - actualArea.height; in readFromAttachment() 3436 safeArea.x = gl::clamp(actualArea.x, 0, texSize.width); in readFromAttachment() 3437 safeArea.y = gl::clamp(actualArea.y, 0, texSize.height); in readFromAttachment() 3439 gl::clamp(actualArea.width + std::min(actualArea.x, 0), 0, texSize.width - safeArea.x); in readFromAttachment() 3441 gl::clamp(actualArea.height + std::min(actualArea.y, 0), 0, texSize.height - safeArea.y); in readFromAttachment() 3444 ASSERT(safeArea.x + safeArea.width <= texSize.width); in readFromAttachment() 3445 ASSERT(safeArea.y + safeArea.height <= texSize.height); in readFromAttachment() 3469 resolveDesc.Width = static_cast<UINT>(texSize.width); in readFromAttachment() 3470 resolveDesc.Height = static_cast<UINT>(texSize in readFromAttachment() [all...] |
| H A D | TextureStorage11.cpp | 536 gl::Extents texSize(getLevelWidth(level), getLevelHeight(level), getLevelDepth(level)); in updateSubresourceLevel() 538 bool fullCopy = copyArea.coversSameExtent(texSize); in updateSubresourceLevel() 564 return blitter->copyDepthStencil(context, srcTexture, sourceSubresource, copyArea, texSize, in updateSubresourceLevel() 565 *dstTexture, dstSubresource, copyArea, texSize, nullptr); in updateSubresourceLevel()
|