Home
last modified time | relevance | path

Searched refs:texSize (Results 1 – 25 of 37) sorted by relevance

12

/third_party/flutter/skia/gm/
Dlightingshader.cpp29 static SkBitmap make_hemi_normalmap(int texSize) { in make_hemi_normalmap() argument
31 hemi.allocN32Pixels(texSize, texSize); in make_hemi_normalmap()
33 ToolUtils::create_hemi_normal_map(&hemi, SkIRect::MakeWH(texSize, texSize)); in make_hemi_normalmap()
38 static SkBitmap make_frustum_normalmap(int texSize) { in make_frustum_normalmap() argument
40 frustum.allocN32Pixels(texSize, texSize); in make_frustum_normalmap()
42 ToolUtils::create_frustum_normal_map(&frustum, SkIRect::MakeWH(texSize, texSize)); in make_frustum_normalmap()
47 static SkBitmap make_tetra_normalmap(int texSize) { in make_tetra_normalmap() argument
49 tetra.allocN32Pixels(texSize, texSize); in make_tetra_normalmap()
51 ToolUtils::create_tetra_normal_map(&tetra, SkIRect::MakeWH(texSize, texSize)); in make_tetra_normalmap()
Dlightingshader2.cpp33 static SkBitmap make_frustum_normalmap(int texSize) { in make_frustum_normalmap() argument
35 frustum.allocN32Pixels(texSize, texSize); in make_frustum_normalmap()
37 ToolUtils::create_frustum_normal_map(&frustum, SkIRect::MakeWH(texSize, texSize)); in make_frustum_normalmap()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_pixeltransfer.c53 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()
Dst_texture.c416 const uint texSize = 256; /* simple, and usually perfect */ in st_create_color_map_texture() local
425 texSize, texSize, 1, 1, 0, PIPE_BIND_SAMPLER_VIEW); in st_create_color_map_texture()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DExternalWrapTest.cpp66 constexpr GLsizei texSize = 32; in testSetUp() local
67 GLubyte data[texSize * texSize * 4]; in testSetUp()
69 for (int y = 0; y < texSize; y++) in testSetUp()
71 float green = static_cast<float>(y) / texSize; in testSetUp()
72 for (int x = 0; x < texSize; x++) in testSetUp()
74 float red = static_cast<float>(x) / texSize; in testSetUp()
76 data[(y * texSize + x) * 4 + 0] = static_cast<GLubyte>(red * 255); in testSetUp()
77 data[(y * texSize + x) * 4 + 1] = static_cast<GLubyte>(green * 255); in testSetUp()
79 data[(y * texSize + x) * 4 + 2] = 0; in testSetUp()
80 data[(y * texSize + x) * 4 + 3] = 255; in testSetUp()
[all …]
DUnpackRowLength.cpp47 void testRowLength(int texSize, int rowLength) in testRowLength() argument
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()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DUnpackRowLength.cpp47 void testRowLength(int texSize, int rowLength) in testRowLength() argument
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()
/third_party/vk-gl-cts/modules/gles2/performance/
Des2pTextureUploadTests.cpp79 …nst char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize);
104 …onst char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize) in TextureUploadCase() argument
109 , m_texSize (texSize) in TextureUploadCase()
295 …nst char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize);
302 …onst 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 …nst char* description, UploadFunction uploadFunction, deUint32 format, deUint32 type, int texSize);
396 …onst 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, textureSizes, in init()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cSparseTexture2Tests.cpp1049 GLint texSize = width * height * depth * mState.format.getPixelSize(); in writeDataToTexture() local
1052 vecData.resize(texSize); in writeDataToTexture()
1055 deMemset(data, 255, texSize); in writeDataToTexture()
1149 GLint texSize = width * height * depth * mState.format.getPixelSize(); in verifyTextureData() local
1153 vecExpData.resize(texSize); in verifyTextureData()
1154 vecOutData.resize(texSize); in verifyTextureData()
1158 deMemset(exp_data, 255, texSize); in verifyTextureData()
1159 deMemset(out_data, 127, texSize); in verifyTextureData()
1187 GLint texSize = width * height * mState.format.getPixelSize(); in verifyTextureData() local
1191 vecExpData.resize(texSize); in verifyTextureData()
[all …]
Dgl4cSparseTextureClampTests.cpp308 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()
391 deMemset(out_data, 0, texSize); in verifyLookupTextureData()
717 GLint texSize = width * height * depth * mState.format.getPixelSize(); in writeDataToTexture() local
720 vecData.resize(texSize); in writeDataToTexture()
723 deMemset(data, 255, texSize); in writeDataToTexture()
810 GLint texSize = width * height; in verifyLookupTextureData() local
814 vecExpData.resize(texSize); in verifyLookupTextureData()
[all …]
Dgl4cSparseTextureTests.cpp1926 GLint texSize = width * height * depth * mState.format.getPixelSize(); in writeDataToTexture() local
1929 vecData.resize(texSize); in writeDataToTexture()
1932 deMemset(data, 16 + 16 * level, texSize); in writeDataToTexture()
1980 GLint texSize = width * height * depth * mState.format.getPixelSize(); in verifyTextureData() local
1984 vecExpData.resize(texSize); in verifyTextureData()
1985 vecOutData.resize(texSize); in verifyTextureData()
1989 deMemset(exp_data, 16 + 16 * level, texSize); in verifyTextureData()
1990 deMemset(out_data, 255, texSize); in verifyTextureData()
2018 GLint texSize = width * height * mState.format.getPixelSize(); in verifyTextureData() local
2022 vecExpData.resize(texSize); in verifyTextureData()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/vulkan/shaders/
Dupsample_yuy2.glsl20 vec3 upsample_YUY2(in sampler2D tex, in vec2 texCoord, in vec2 texSize, in ivec4 inReorderIdx)
22 vec2 dx = vec2(-1.0 / texSize.x, 0.0);
23 if (mod (texCoord.x * texSize.x, 2.0) < 1.0) {
Drgb_to_yuy2.frag30 ivec2 texSize;
39 float inorder = mod (inTexCoord.x * texSize.x, 2.0);
41 float dx = -1.0 / texSize.x;
Dyuy2_to_rgb.frag31 ivec2 texSize;
40 vec3 yuv = upsample_YUY2 (inTexture0, inTexCoord, texSize, in_reorder_idx);
Dayuv_to_rgb.frag31 ivec2 texSize;
Dnv12_to_rgb.frag31 ivec2 texSize;
Drgb_to_ayuv.frag30 ivec2 texSize;
Drgb_to_nv12.frag30 ivec2 texSize;
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcTextureFilterAnisotropicTests.cpp577 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, transF… in fillTexture()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fFboColorbufferTests.cpp117 …Context& context, const char* name, const char* description, deUint32 texFmt, const IVec2& texSize) in FboColorTex2DCase() argument
120 , m_texSize (texSize) in FboColorTex2DCase()
202 …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()
Des31fGeometryShaderTests.cpp2967 const tcu::IVec3 texSize = getTargetDimensions(m_target); in initTexture() local
2977 …u::TestLog::Message << "Creating cubemap texture, size = " << texSize.x() << "x" << texSize.y() <<… in initTexture()
2979 …gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFo… in initTexture()
2980 …gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFo… in initTexture()
2981 …gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFo… in initTexture()
2982 …gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFo… in initTexture()
2983 …gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Z, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFo… in initTexture()
2984 …gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, 0, GL_RGBA8, texSize.x(), texSize.y(), 0, transferFo… in initTexture()
2988 …tLog::Message << "Creating 3d texture, size = " << texSize.x() << "x" << texSize.y() << "x" << tex… in initTexture()
2990 …gl.texImage3D(GL_TEXTURE_3D, 0, GL_RGBA8, texSize.x(), texSize.y(), texSize.z(), 0, transferFormat… in initTexture()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRender.cpp1249 const tcu::UVec3 texSize) in uploadSparseImage() argument
1271 if (isImageSizeSupported(imageCreateInfo.imageType, texSize, deviceProperties.limits) == false) in uploadSparseImage()
1365 tcu::UVec3 texSize; in useSampler() local
1373 texSize = tcu::UVec3(texture.getWidth(), texture.getHeight(), 1u); in useSampler()
1392 texSize = tcu::UVec3(texture.getSize(), texture.getSize(), 1u); in useSampler()
1426 texSize = tcu::UVec3(texture.getWidth(), texture.getHeight(), 1u); in useSampler()
1453 texSize = tcu::UVec3(texture.getWidth(), texture.getHeight(), texture.getDepth()); in useSampler()
1472 texSize = tcu::UVec3(texture.getWidth(), 1, 1); in useSampler()
1491 texSize = tcu::UVec3(texture.getWidth(), 1, 1); in useSampler()
1517 texSize = tcu::UVec3(texture.getSize(), texture.getSize(), 1); in useSampler()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fFboColorbufferTests.cpp328 …Context& context, const char* name, const char* description, deUint32 texFmt, const IVec2& texSize) in FboColorTexCubeCase() argument
330 , m_texSize (texSize) in FboColorTexCubeCase()
477 …Context& context, const char* name, const char* description, deUint32 texFmt, const IVec3& texSize) in FboColorTex2DArrayCase() argument
479 , m_texSize (texSize) in FboColorTex2DArrayCase()
603 …Context& context, const char* name, const char* description, deUint32 texFmt, const IVec3& texSize) in FboColorTex3DCase() argument
605 , m_texSize (texSize) in FboColorTex3DCase()
/third_party/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_screen.h130 int texSize[RADEON_NR_TEX_HEAPS]; member
/third_party/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_screen.h130 int texSize[RADEON_NR_TEX_HEAPS]; member

12