Home
last modified time | relevance | path

Searched refs:maxTextureSize (Results 1 – 25 of 83) sorted by relevance

1234

/external/deqp/modules/gles2/functional/
Des2fNegativeTextureApiTests.cpp395 int maxTextureSize = m_context.getContextInfo().getInt(GL_MAX_TEXTURE_SIZE) + 1; in init()
396 glCompressedTexImage2D(GL_TEXTURE_2D, 0, compressedFormats[0], maxTextureSize, 0, 0, 0, 0); in init()
398 glCompressedTexImage2D(GL_TEXTURE_2D, 0, compressedFormats[0], 0, maxTextureSize, 0, 0, 0); in init()
400 …glCompressedTexImage2D(GL_TEXTURE_2D, 0, compressedFormats[0], maxTextureSize, maxTextureSize, 0, … in init()
412 int maxTextureSize = m_context.getContextInfo().getInt(GL_MAX_CUBE_MAP_TEXTURE_SIZE) + 1; in init()
413 …glCompressedTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, compressedFormats[0], maxTextureSize, 0,… in init()
415 …sedTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, compressedFormats[0], 0, maxTextureSize, 0, 0, 0); in init()
417 …e2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, compressedFormats[0], maxTextureSize, maxTextureSize, 0, 0,… in init()
429 int maxTextureSize = m_context.getContextInfo().getInt(GL_MAX_CUBE_MAP_TEXTURE_SIZE) + 1; in init()
430 …glCompressedTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, 0, compressedFormats[0], maxTextureSize, 0,… in init()
[all …]
/external/OpenCL-CTS/test_conformance/gl/
Dtest_images_multisample.cpp33 GLint maxTextureSize = 4096; in calc_2D_multisample_size_descriptors() local
34 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in calc_2D_multisample_size_descriptors()
40 sizes[i].width = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_2D_multisample_size_descriptors()
41 sizes[i].height = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_2D_multisample_size_descriptors()
49 GLint maxTextureLayers = 16, maxTextureSize = 4096; in calc_2D_array_multisample_size_descriptors() local
51 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in calc_2D_array_multisample_size_descriptors()
57 sizes[i].width = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_2D_array_multisample_size_descriptors()
58 sizes[i].height = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_2D_array_multisample_size_descriptors()
Dtest_images_3D.cpp35 GLint maxTextureSize = 2048; in calc_3D_size_descriptors() local
36 glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &maxTextureSize); in calc_3D_size_descriptors()
42 sizes[i].width = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_3D_size_descriptors()
43 sizes[i].height = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_3D_size_descriptors()
44 sizes[i].depth = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_3D_size_descriptors()
Dtest_images_depth.cpp36 GLint maxTextureSize = 4096, maxTextureRectangleSize = 4096, size; in calc_depth_size_descriptors() local
37 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in calc_depth_size_descriptors()
40 size = min(maxTextureSize, maxTextureRectangleSize); in calc_depth_size_descriptors()
55 GLint maxTextureSize = 4096, maxTextureRectangleSize = 4096, maxTextureLayers = 16, size; in calc_depth_array_size_descriptors() local
56 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in calc_depth_array_size_descriptors()
60 size = min(maxTextureSize, maxTextureRectangleSize); in calc_depth_array_size_descriptors()
Dtest_images_2Darray.cpp32 GLint maxTextureLayers = 16, maxTextureSize = 4096; in calc_2D_array_size_descriptors() local
34 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in calc_2D_array_size_descriptors()
40 sizes[i].width = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_2D_array_size_descriptors()
41 sizes[i].height = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_2D_array_size_descriptors()
Dtest_image_methods.cpp348 GLint maxTextureSize = 4096, maxTextureRectangleSize = 4096, maxTextureLayers = 16, size; in test_image_methods_depth() local
349 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in test_image_methods_depth()
353 size = min(maxTextureSize, maxTextureRectangleSize); in test_image_methods_depth()
388 GLint maxTextureLayers = 16, maxTextureSize = 4096; in test_image_methods_multisample() local
390 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in test_image_methods_multisample()
396 sizes[i].width = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in test_image_methods_multisample()
397 sizes[i].height = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in test_image_methods_multisample()
Dtest_images_1Darray.cpp31 GLint maxTextureLayers = 16, maxTextureSize = 4096; in calc_1D_array_size_descriptors() local
33 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in calc_1D_array_size_descriptors()
39 sizes[i].width = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_1D_array_size_descriptors()
Dtest_images_1D.cpp32 GLint maxTextureSize = 4096, maxTextureBufferSize = 4096, size; in calc_test_size_descriptors() local
33 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in calc_test_size_descriptors()
36 size = min(maxTextureSize, maxTextureBufferSize); in calc_test_size_descriptors()
Dtest_images_2D.cpp36 GLint maxTextureSize = 4096, maxTextureRectangleSize = 4096, size; in calc_2D_test_size_descriptors() local
37 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in calc_2D_test_size_descriptors()
40 size = min(maxTextureSize, maxTextureRectangleSize); in calc_2D_test_size_descriptors()
/external/deqp/modules/gles31/functional/
Des31fShaderTextureSizeTests.cpp172 glw::GLint maxTextureSize = 0; in init() local
176 gl.getIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in init()
200 << "GL_MAX_TEXTURE_SIZE = " << maxTextureSize << "\n" in init()
208 if (testSizes2D[ndx].x() <= maxTextureSize && testSizes2D[ndx].y() <= maxTextureSize) in init()
210 const int w = (testSizes2D[ndx].x() < 0) ? (maxTextureSize) : (testSizes2D[ndx].x()); in init()
211 const int h = (testSizes2D[ndx].y() < 0) ? (maxTextureSize) : (testSizes2D[ndx].y()); in init()
221 …if (testSizes3D[ndx].x() <= maxTextureSize && testSizes3D[ndx].y() <= maxTextureSize && testSizes3… in init()
223 const int w = (testSizes3D[ndx].x() < 0) ? (maxTextureSize) : (testSizes3D[ndx].x()); in init()
224 const int h = (testSizes3D[ndx].y() < 0) ? (maxTextureSize) : (testSizes3D[ndx].y()); in init()
/external/skia/src/shaders/
DSkPictureShader.cpp194 const int maxTextureSize) const { in refBitmapShader()
222 if (maxTextureSize) { in refBitmapShader()
223 if (scaledSize.width() > maxTextureSize || scaledSize.height() > maxTextureSize) { in refBitmapShader()
224 SkScalar downScale = maxTextureSize / std::max(scaledSize.width(), scaledSize.height()); in refBitmapShader()
342 int maxTextureSize = 0; in asFragmentProcessor() local
344 maxTextureSize = args.fContext->priv().caps()->maxTextureSize(); in asFragmentProcessor()
354 maxTextureSize)); in asFragmentProcessor()
/external/skqp/src/shaders/
DSkPictureShader.cpp169 const int maxTextureSize) const { in refBitmapShader()
197 if (maxTextureSize) { in refBitmapShader()
198 if (scaledSize.width() > maxTextureSize || scaledSize.height() > maxTextureSize) { in refBitmapShader()
199 … SkScalar downScale = maxTextureSize / SkMaxScalar(scaledSize.width(), scaledSize.height()); in refBitmapShader()
333 int maxTextureSize = 0; in asFragmentProcessor() local
335 maxTextureSize = args.fContext->contextPriv().caps()->maxTextureSize(); in asFragmentProcessor()
343 maxTextureSize)); in asFragmentProcessor()
/external/skqp/src/image/
DSkImage_GpuYUVA.cpp203 int maxTextureSize = context->contextPriv().caps()->maxTextureSize(); in MakeFromYUVAPixmaps() local
205 if (limitToMaxTextureSize && maxDim > maxTextureSize) { in MakeFromYUVAPixmaps()
206 float scale = static_cast<float>(maxTextureSize) / maxDim; in MakeFromYUVAPixmaps()
208 maxTextureSize); in MakeFromYUVAPixmaps()
210 maxTextureSize); in MakeFromYUVAPixmaps()
DSkImage_Gpu.cpp451 auto maxTextureSize = context->contextPriv().caps()->maxTextureSize(); in MakeCrossContextFromEncoded() local
453 (codecImage->width() > maxTextureSize || codecImage->height() > maxTextureSize)) { in MakeCrossContextFromEncoded()
512 int maxTextureSize = context->contextPriv().caps()->maxTextureSize(); in MakeCrossContextFromPixmap() local
514 if (limitToMaxTextureSize && maxDim > maxTextureSize) { in MakeCrossContextFromPixmap()
515 float scale = static_cast<float>(maxTextureSize) / maxDim; in MakeCrossContextFromPixmap()
516 int newWidth = SkTMin(static_cast<int>(originalPixmap.width() * scale), maxTextureSize); in MakeCrossContextFromPixmap()
517 int newHeight = SkTMin(static_cast<int>(originalPixmap.height() * scale), maxTextureSize); in MakeCrossContextFromPixmap()
/external/deqp/modules/glshared/
DglsMemoryStressCase.hpp51 int maxTextureSize; member
61 …ontext& renderContext, deUint32 objectTypes, int minTextureSize, int maxTextureSize, int minBuffer…
DglsMemoryStressCase.cpp483 …int dummySize = deMax32(m_config.maxBufferSize, m_config.maxTextureSize*m_config.maxTextureSize*4); in MemObjectAllocator()
585 int width = rnd.getInt(m_config.minTextureSize, m_config.maxTextureSize); in allocateTexture()
586 int height = rnd.getInt(m_config.minTextureSize, m_config.maxTextureSize); in allocateTexture()
819 …ontext& renderContext, deUint32 objectTypes, int minTextureSize, int maxTextureSize, int minBuffer… in MemoryStressCase() argument
829 m_config.maxTextureSize = maxTextureSize; in MemoryStressCase()
/external/skia/src/gpu/
DGrGpu.cpp286 if (dimensions.width() < 1 || dimensions.width() > this->caps()->maxTextureSize() || in createCompressedTexture()
287 dimensions.height() < 1 || dimensions.height() > this->caps()->maxTextureSize()) { in createCompressedTexture()
323 if (backendTex.width() > caps->maxTextureSize() || in wrapBackendTexture()
324 backendTex.height() > caps->maxTextureSize()) { in wrapBackendTexture()
342 if (backendTex.width() > caps->maxTextureSize() || in wrapCompressedBackendTexture()
343 backendTex.height() > caps->maxTextureSize()) { in wrapCompressedBackendTexture()
404 int maxSize = caps->maxTextureSize(); in wrapBackendTextureAsRenderTarget()
851 if (dimensions.isEmpty() || dimensions.width() > caps->maxTextureSize() || in createBackendTexture()
852 dimensions.height() > caps->maxTextureSize()) { in createBackendTexture()
886 dimensions.width() > caps->maxTextureSize() || in createCompressedBackendTexture()
[all …]
DGrTextureMaker.cpp19 if (this->width() > this->context()->priv().caps()->maxTextureSize() || in onRefTextureProxyViewForParams()
20 this->height() > this->context()->priv().caps()->maxTextureSize()) { in onRefTextureProxyViewForParams()
/external/skia/src/image/
DSkImage_GpuYUVA.cpp279 int maxTextureSize = context->priv().caps()->maxTextureSize(); in MakeFromYUVAPixmaps() local
281 if (limitToMaxTextureSize && maxDim > maxTextureSize) { in MakeFromYUVAPixmaps()
282 float scale = static_cast<float>(maxTextureSize) / maxDim; in MakeFromYUVAPixmaps()
283 … int newWidth = std::min(static_cast<int>(yuvaPixmaps[i].width() * scale), maxTextureSize); in MakeFromYUVAPixmaps()
285 std::min(static_cast<int>(yuvaPixmaps[i].height() * scale), maxTextureSize); in MakeFromYUVAPixmaps()
/external/skia/src/core/
DSkGpuBlurUtils.cpp59 static float adjust_sigma(float sigma, int maxTextureSize, int *scaleFactor, int *radius) { in adjust_sigma() argument
64 if (*scaleFactor > maxTextureSize) { in adjust_sigma()
65 *scaleFactor = maxTextureSize; in adjust_sigma()
461 int maxTextureSize = context->priv().caps()->maxTextureSize(); in GaussianBlur() local
462 sigmaX = adjust_sigma(sigmaX, maxTextureSize, &scaleFactorX, &radiusX); in GaussianBlur()
463 sigmaY = adjust_sigma(sigmaY, maxTextureSize, &scaleFactorY, &radiusY); in GaussianBlur()
/external/skqp/src/core/
DSkGpuBlurUtils.cpp58 static float adjust_sigma(float sigma, int maxTextureSize, int *scaleFactor, int *radius) { in adjust_sigma() argument
63 if (*scaleFactor > maxTextureSize) { in adjust_sigma()
64 *scaleFactor = maxTextureSize; in adjust_sigma()
475 int maxTextureSize = context->contextPriv().caps()->maxTextureSize(); in GaussianBlur() local
476 sigmaX = adjust_sigma(sigmaX, maxTextureSize, &scaleFactorX, &radiusX); in GaussianBlur()
477 sigmaY = adjust_sigma(sigmaY, maxTextureSize, &scaleFactorY, &radiusY); in GaussianBlur()
/external/deqp/modules/gles3/functional/
Des3fNegativeTextureApiTests.cpp335 int maxTextureSize = m_context.getContextInfo().getInt(GL_MAX_TEXTURE_SIZE) + 1; in init()
340 …D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA8_ETC2_EAC, maxTextureSize, 1, 0, etc2EacDataSize(maxTexture… in init()
342 …L_TEXTURE_2D, 0, GL_COMPRESSED_RGBA8_ETC2_EAC, 1, maxTextureSize, 0, etc2EacDataSize(1, maxTexture… in init()
344 …D, 0, GL_COMPRESSED_RGBA8_ETC2_EAC, maxTextureSize, maxTextureSize, 0, etc2EacDataSize(maxTextureS… in init()
690 int maxTextureSize = m_context.getContextInfo().getInt(GL_MAX_TEXTURE_SIZE) + 1; in init()
696 glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, maxTextureSize, 1, 0); in init()
698 glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, 1, maxTextureSize, 0); in init()
700 glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, maxTextureSize, maxTextureSize, 0); in init()
1290 int maxTextureSize = m_context.getContextInfo().getInt(GL_MAX_TEXTURE_SIZE) + 1; in init()
1294 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, maxTextureSize, 1, 0, GL_RGB, GL_UNSIGNED_BYTE, 0); in init()
[all …]
/external/deqp/external/openglcts/modules/glesext/texture_cube_map_array/
DesextcTextureCubeMapArrayTex3DValidation.cpp168 const glw::GLfloat maxTextureSize = (glw::GLfloat)de::max(correctWidth, correctHeight); in iterate() local
169 const glw::GLint maxLevels = (glw::GLint)floor(log(maxTextureSize) / log(2.0f)) + 1; in iterate()
/external/skqp/src/gpu/
DGrTextureMaker.cpp19 if (this->width() > fContext->contextPriv().caps()->maxTextureSize() || in onRefTextureProxyForParams()
20 this->height() > fContext->contextPriv().caps()->maxTextureSize()) { in onRefTextureProxyForParams()
DGrSoftwarePathRenderer.cpp280 int maxTextureSize = args.fRenderTargetContext->caps()->maxTextureSize(); in onDrawPath() local
281 if (unclippedArea > 2 * clippedArea || unclippedWidth > maxTextureSize || in onDrawPath()
282 unclippedHeight > maxTextureSize) { in onDrawPath()

1234