/external/deqp/modules/gles2/functional/ |
D | es2fNegativeTextureApiTests.cpp | 395 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/ |
D | test_images_multisample.cpp | 33 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()
|
D | test_images_3D.cpp | 35 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()
|
D | test_images_depth.cpp | 36 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()
|
D | test_images_2Darray.cpp | 32 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()
|
D | test_images_1Darray.cpp | 31 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()
|
D | test_image_methods.cpp | 349 GLint maxTextureSize = 4096, maxTextureRectangleSize = 4096, maxTextureLayers = 16, size; in test_image_methods_depth() local 350 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in test_image_methods_depth() 354 size = min(maxTextureSize, maxTextureRectangleSize); in test_image_methods_depth() 389 GLint maxTextureLayers = 16, maxTextureSize = 4096; in test_image_methods_multisample() local 391 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in test_image_methods_multisample() 397 sizes[i].width = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in test_image_methods_multisample() 398 sizes[i].height = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in test_image_methods_multisample()
|
D | test_images_1D.cpp | 32 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()
|
D | test_images_2D.cpp | 36 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/ |
D | es31fShaderTextureSizeTests.cpp | 176 glw::GLint maxTextureSize = 0; in init() local 180 gl.getIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); in init() 207 << "GL_MAX_TEXTURE_SIZE = " << maxTextureSize << "\n" in init() 215 if (testSizes2D[ndx].x() <= maxTextureSize && testSizes2D[ndx].y() <= maxTextureSize) in init() 217 const int w = (testSizes2D[ndx].x() < 0) ? (maxTextureSize) : (testSizes2D[ndx].x()); in init() 218 const int h = (testSizes2D[ndx].y() < 0) ? (maxTextureSize) : (testSizes2D[ndx].y()); in init() 228 …if (testSizes3D[ndx].x() <= maxTextureSize && testSizes3D[ndx].y() <= maxTextureSize && testSizes3… in init() 230 const int w = (testSizes3D[ndx].x() < 0) ? (maxTextureSize) : (testSizes3D[ndx].x()); in init() 231 const int h = (testSizes3D[ndx].y() < 0) ? (maxTextureSize) : (testSizes3D[ndx].y()); in init()
|
/external/skqp/src/shaders/ |
D | SkPictureShader.cpp | 169 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/ |
D | SkImage_GpuYUVA.cpp | 203 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()
|
D | SkImage_Gpu.cpp | 451 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/ |
D | glsMemoryStressCase.hpp | 51 int maxTextureSize; member 61 …ontext& renderContext, deUint32 objectTypes, int minTextureSize, int maxTextureSize, int minBuffer…
|
D | glsMemoryStressCase.cpp | 483 …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/image/ |
D | SkImage_GpuYUVA.cpp | 277 int maxTextureSize = context->priv().caps()->maxTextureSize(); in MakeFromYUVAPixmaps() local 283 if (maxDim > maxTextureSize) { in MakeFromYUVAPixmaps() 287 float scale = static_cast<float>(maxTextureSize)/maxDim; in MakeFromYUVAPixmaps() 289 std::min(static_cast<int>(pixmaps.yuvaInfo().width() *scale), maxTextureSize), in MakeFromYUVAPixmaps() 290 std::min(static_cast<int>(pixmaps.yuvaInfo().height()*scale), maxTextureSize) in MakeFromYUVAPixmaps()
|
/external/skia/src/gpu/ |
D | GrGpu.cpp | 236 if (dimensions.width() < 1 || dimensions.width() > this->caps()->maxTextureSize() || in createCompressedTexture() 237 dimensions.height() < 1 || dimensions.height() > this->caps()->maxTextureSize()) { in createCompressedTexture() 273 if (backendTex.width() > caps->maxTextureSize() || in wrapBackendTexture() 274 backendTex.height() > caps->maxTextureSize()) { in wrapBackendTexture() 292 if (backendTex.width() > caps->maxTextureSize() || in wrapCompressedBackendTexture() 293 backendTex.height() > caps->maxTextureSize()) { in wrapCompressedBackendTexture() 786 if (dimensions.isEmpty() || dimensions.width() > caps->maxTextureSize() || in createBackendTexture() 787 dimensions.height() > caps->maxTextureSize()) { in createBackendTexture() 829 dimensions.width() > caps->maxTextureSize() || in createCompressedBackendTexture() 830 dimensions.height() > caps->maxTextureSize()) { in createCompressedBackendTexture()
|
/external/skia/src/shaders/ |
D | SkPictureShader.cpp | 180 const int maxTextureSize) { in Make() 202 if (maxTextureSize) { in Make() 203 if (size.width() > maxTextureSize || size.height() > maxTextureSize) { in Make() 204 SkScalar downScale = maxTextureSize / std::max(size.width(), in Make() 379 ctx->priv().caps()->maxTextureSize()); in asFragmentProcessor()
|
/external/skqp/src/core/ |
D | SkGpuBlurUtils.cpp | 58 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/ |
D | es3fNegativeTextureApiTests.cpp | 335 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/ |
D | esextcTextureCubeMapArrayTex3DValidation.cpp | 168 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/ |
D | GrTextureMaker.cpp | 19 if (this->width() > fContext->contextPriv().caps()->maxTextureSize() || in onRefTextureProxyForParams() 20 this->height() > fContext->contextPriv().caps()->maxTextureSize()) { in onRefTextureProxyForParams()
|
D | GrTextureAdjuster.cpp | 87 SkASSERT(this->width() <= fContext->contextPriv().caps()->maxTextureSize() && in onRefTextureProxyForParams() 88 this->height() <= fContext->contextPriv().caps()->maxTextureSize()); in onRefTextureProxyForParams()
|
D | GrSoftwarePathRenderer.cpp | 280 int maxTextureSize = args.fRenderTargetContext->caps()->maxTextureSize(); in onDrawPath() local 281 if (unclippedArea > 2 * clippedArea || unclippedWidth > maxTextureSize || in onDrawPath() 282 unclippedHeight > maxTextureSize) { in onDrawPath()
|
D | GrBlurUtils.cpp | 330 int maxTextureSize = renderTargetContext->caps()->maxTextureSize(); in draw_shape_with_mask_filter() local 331 if (unclippedArea > 2 * clippedArea || unclippedWidth > maxTextureSize || in draw_shape_with_mask_filter() 332 unclippedHeight > maxTextureSize) { in draw_shape_with_mask_filter()
|