/third_party/vk-gl-cts/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 …]
|
/third_party/vk-gl-cts/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()
|
/third_party/flutter/skia/src/shaders/ |
D | SkPictureShader.cpp | 194 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 / SkMaxScalar(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()
|
/third_party/vk-gl-cts/modules/glshared/ |
D | glsMemoryStressCase.hpp | 51 int maxTextureSize; member 61 …ontext& renderContext, deUint32 objectTypes, int minTextureSize, int maxTextureSize, int minBuffer…
|
D | glsMemoryStressCase.cpp | 476 …int dummySize = deMax32(m_config.maxBufferSize, m_config.maxTextureSize*m_config.maxTextureSize*4); in MemObjectAllocator() 578 int width = rnd.getInt(m_config.minTextureSize, m_config.maxTextureSize); in allocateTexture() 579 int height = rnd.getInt(m_config.minTextureSize, m_config.maxTextureSize); in allocateTexture() 800 …ontext& renderContext, deUint32 objectTypes, int minTextureSize, int maxTextureSize, int minBuffer… in MemoryStressCase() argument 810 m_config.maxTextureSize = maxTextureSize; in MemoryStressCase()
|
/third_party/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()
|
D | SkImage_GpuBase.cpp | 61 if (tex.width() > caps->maxTextureSize() || tex.height() > caps->maxTextureSize()) { in ValidateCompressedBackendTexture()
|
D | SkImage_Gpu.cpp | 644 int maxTextureSize = dContext->priv().caps()->maxTextureSize(); in MakeCrossContextFromPixmap() local 646 if (limitToMaxTextureSize && maxDim > maxTextureSize) { in MakeCrossContextFromPixmap() 647 float scale = static_cast<float>(maxTextureSize) / maxDim; in MakeCrossContextFromPixmap() 648 int newWidth = std::min(static_cast<int>(originalPixmap.width() * scale), maxTextureSize); in MakeCrossContextFromPixmap() 649 int newHeight = std::min(static_cast<int>(originalPixmap.height() * scale), maxTextureSize); in MakeCrossContextFromPixmap()
|
/third_party/flutter/skia/src/image/ |
D | SkImage_GpuYUVA.cpp | 265 int maxTextureSize = context->priv().caps()->maxTextureSize(); in MakeFromYUVAPixmaps() local 267 if (limitToMaxTextureSize && maxDim > maxTextureSize) { in MakeFromYUVAPixmaps() 268 float scale = static_cast<float>(maxTextureSize) / maxDim; in MakeFromYUVAPixmaps() 270 maxTextureSize); in MakeFromYUVAPixmaps() 272 maxTextureSize); in MakeFromYUVAPixmaps()
|
D | SkImage_Gpu.cpp | 487 int maxTextureSize = context->priv().caps()->maxTextureSize(); in MakeCrossContextFromPixmap() local 489 if (limitToMaxTextureSize && maxDim > maxTextureSize) { in MakeCrossContextFromPixmap() 490 float scale = static_cast<float>(maxTextureSize) / maxDim; in MakeCrossContextFromPixmap() 491 int newWidth = SkTMin(static_cast<int>(originalPixmap.width() * scale), maxTextureSize); in MakeCrossContextFromPixmap() 492 int newHeight = SkTMin(static_cast<int>(originalPixmap.height() * scale), maxTextureSize); in MakeCrossContextFromPixmap()
|
/third_party/skia/src/gpu/ |
D | GrGpu.cpp | 259 if (dimensions.width() < 1 || dimensions.width() > this->caps()->maxTextureSize() || in createCompressedTexture() 260 dimensions.height() < 1 || dimensions.height() > this->caps()->maxTextureSize()) { in createCompressedTexture() 300 if (backendTex.width() > caps->maxTextureSize() || in wrapBackendTexture() 301 backendTex.height() > caps->maxTextureSize()) { in wrapBackendTexture() 319 if (backendTex.width() > caps->maxTextureSize() || in wrapCompressedBackendTexture() 320 backendTex.height() > caps->maxTextureSize()) { in wrapCompressedBackendTexture() 833 if (dimensions.isEmpty() || dimensions.width() > caps->maxTextureSize() || in createBackendTexture() 834 dimensions.height() > caps->maxTextureSize()) { in createBackendTexture() 876 dimensions.width() > caps->maxTextureSize() || in createCompressedBackendTexture() 877 dimensions.height() > caps->maxTextureSize()) { in createCompressedBackendTexture()
|
D | GrRecordingContext.cpp | 169 int GrRecordingContext::maxTextureSize() const { return this->caps()->maxTextureSize(); } in maxTextureSize() function in GrRecordingContext
|
D | GrBlurUtils.cpp | 318 int maxTextureSize = caps->maxTextureSize(); in compute_key_and_clip_bounds() local 319 if (unclippedArea > 2 * clippedArea || unclippedWidth > maxTextureSize || in compute_key_and_clip_bounds() 320 unclippedHeight > maxTextureSize) { in compute_key_and_clip_bounds()
|
D | GrDrawOpAtlas.cpp | 648 GrDrawOpAtlasConfig::GrDrawOpAtlasConfig(int maxTextureSize, size_t maxBytes) { in GrDrawOpAtlasConfig() argument 667 fARGBDimensions.set(std::min<int>(kARGBDimensions[index].width(), maxTextureSize), in GrDrawOpAtlasConfig() 668 std::min<int>(kARGBDimensions[index].height(), maxTextureSize)); in GrDrawOpAtlasConfig() 669 fMaxTextureSize = std::min<int>(maxTextureSize, kMaxAtlasDim); in GrDrawOpAtlasConfig()
|
/third_party/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()
|
/third_party/flutter/skia/src/core/ |
D | SkGpuBlurUtils.cpp | 59 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() 499 int maxTextureSize = context->priv().caps()->maxTextureSize(); in GaussianBlur() local 500 sigmaX = adjust_sigma(sigmaX, maxTextureSize, &scaleFactorX, &radiusX); in GaussianBlur() 501 sigmaY = adjust_sigma(sigmaY, maxTextureSize, &scaleFactorY, &radiusY); in GaussianBlur()
|
/third_party/vk-gl-cts/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 …]
|
/third_party/flutter/skia/src/gpu/ |
D | GrTextureMaker.cpp | 19 if (this->width() > this->context()->priv().caps()->maxTextureSize() || in onRefTextureProxyForParams() 20 this->height() > this->context()->priv().caps()->maxTextureSize()) { in onRefTextureProxyForParams()
|
D | GrSoftwarePathRenderer.cpp | 279 int maxTextureSize = args.fRenderTargetContext->caps()->maxTextureSize(); in onDrawPath() local 280 if (unclippedArea > 2 * clippedArea || unclippedWidth > maxTextureSize || in onDrawPath() 281 unclippedHeight > maxTextureSize) { in onDrawPath()
|
D | GrBlurUtils.cpp | 327 int maxTextureSize = renderTargetContext->caps()->maxTextureSize(); in draw_shape_with_mask_filter() local 328 if (unclippedArea > 2 * clippedArea || unclippedWidth > maxTextureSize || in draw_shape_with_mask_filter() 329 unclippedHeight > maxTextureSize) { in draw_shape_with_mask_filter()
|
D | GrTextureAdjuster.cpp | 89 SkASSERT(this->width() <= this->context()->priv().caps()->maxTextureSize() && in onRefTextureProxyForParams() 90 this->height() <= this->context()->priv().caps()->maxTextureSize()); in onRefTextureProxyForParams()
|
D | GrGpu.cpp | 226 if (width < 1 || width > this->caps()->maxTextureSize() || in createCompressedTexture() 227 height < 1 || height > this->caps()->maxTextureSize()) { in createCompressedTexture() 257 if (backendTex.width() > caps->maxTextureSize() || in wrapBackendTexture() 258 backendTex.height() > caps->maxTextureSize()) { in wrapBackendTexture() 311 int maxSize = caps->maxTextureSize(); in wrapBackendTextureAsRenderTarget()
|
D | GrDrawOpAtlas.cpp | 658 GrDrawOpAtlasConfig::GrDrawOpAtlasConfig(int maxTextureSize, size_t maxBytes) { in GrDrawOpAtlasConfig() argument 677 fARGBDimensions.set(SkTMin<int>(kARGBDimensions[index].width(), maxTextureSize), in GrDrawOpAtlasConfig() 678 SkTMin<int>(kARGBDimensions[index].height(), maxTextureSize)); in GrDrawOpAtlasConfig() 679 fMaxTextureSize = SkTMin<int>(maxTextureSize, kMaxAtlasDim); in GrDrawOpAtlasConfig()
|
/third_party/vk-gl-cts/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()
|
/third_party/skia/src/gpu/ops/ |
D | SoftwarePathRenderer.cpp | 272 int maxTextureSize = args.fSurfaceDrawContext->caps()->maxTextureSize(); in onDrawPath() local 273 if (unclippedArea > 2 * clippedArea || unclippedWidth > maxTextureSize || in onDrawPath() 274 unclippedHeight > maxTextureSize) { in onDrawPath()
|