Home
last modified time | relevance | path

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

123

/third_party/vk-gl-cts/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 …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fShaderTextureSizeTests.cpp176 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/
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 / 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/
DglsMemoryStressCase.hpp51 int maxTextureSize; member
61 …ontext& renderContext, deUint32 objectTypes, int minTextureSize, int maxTextureSize, int minBuffer…
DglsMemoryStressCase.cpp476 …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/
DSkImage_GpuYUVA.cpp277 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()
DSkImage_GpuBase.cpp61 if (tex.width() > caps->maxTextureSize() || tex.height() > caps->maxTextureSize()) { in ValidateCompressedBackendTexture()
DSkImage_Gpu.cpp644 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/
DSkImage_GpuYUVA.cpp265 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()
DSkImage_Gpu.cpp487 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/
DGrGpu.cpp259 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()
DGrRecordingContext.cpp169 int GrRecordingContext::maxTextureSize() const { return this->caps()->maxTextureSize(); } in maxTextureSize() function in GrRecordingContext
DGrBlurUtils.cpp318 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()
DGrDrawOpAtlas.cpp648 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/
DSkPictureShader.cpp180 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/
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()
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/
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 …]
/third_party/flutter/skia/src/gpu/
DGrTextureMaker.cpp19 if (this->width() > this->context()->priv().caps()->maxTextureSize() || in onRefTextureProxyForParams()
20 this->height() > this->context()->priv().caps()->maxTextureSize()) { in onRefTextureProxyForParams()
DGrSoftwarePathRenderer.cpp279 int maxTextureSize = args.fRenderTargetContext->caps()->maxTextureSize(); in onDrawPath() local
280 if (unclippedArea > 2 * clippedArea || unclippedWidth > maxTextureSize || in onDrawPath()
281 unclippedHeight > maxTextureSize) { in onDrawPath()
DGrBlurUtils.cpp327 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()
DGrTextureAdjuster.cpp89 SkASSERT(this->width() <= this->context()->priv().caps()->maxTextureSize() && in onRefTextureProxyForParams()
90 this->height() <= this->context()->priv().caps()->maxTextureSize()); in onRefTextureProxyForParams()
DGrGpu.cpp226 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()
DGrDrawOpAtlas.cpp658 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/
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()
/third_party/skia/src/gpu/ops/
DSoftwarePathRenderer.cpp272 int maxTextureSize = args.fSurfaceDrawContext->caps()->maxTextureSize(); in onDrawPath() local
273 if (unclippedArea > 2 * clippedArea || unclippedWidth > maxTextureSize || in onDrawPath()
274 unclippedHeight > maxTextureSize) { in onDrawPath()

123