Home
last modified time | relevance | path

Searched refs:isPow2 (Results 1 – 25 of 34) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
Dmathutil.h26 inline bool isPow2(int x) in isPow2() function
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DBufferVk.cpp31 static_assert(gl::isPow2(kBufferSizeGranularity), "use as alignment, must be power of two");
119 ASSERT(gl::isPow2(limitsVk.minUniformBufferOffsetAlignment)); in GetPreferredDynamicBufferInitialSize()
120 ASSERT(gl::isPow2(limitsVk.minStorageBufferOffsetAlignment)); in GetPreferredDynamicBufferInitialSize()
121 ASSERT(gl::isPow2(limitsVk.minTexelBufferOffsetAlignment)); in GetPreferredDynamicBufferInitialSize()
122 ASSERT(gl::isPow2(limitsVk.minMemoryMapAlignment)); in GetPreferredDynamicBufferInitialSize()
Dvk_utils.cpp1236 ASSERT(gl::isPow2(sampleCount)); in PackSampleCount()
/third_party/skia/third_party/externals/swiftshader/src/System/
DMath.hpp147 inline bool isPow2(int x) in isPow2() function
/third_party/skia/third_party/externals/swiftshader/src/Common/
DMath.hpp180 inline bool isPow2(int x) in isPow2() function
/third_party/skia/third_party/externals/angle2/src/common/
Dmathutil.h37 inline constexpr bool isPow2(T x) in isPow2() function
1377 ASSERT(gl::isPow2(alignment));
1384 ASSERT(gl::isPow2(alignment));
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
DTextureMtl.mm717 mIsPow2 = gl::isPow2(size.width) && gl::isPow2(size.height) && gl::isPow2(size.depth);
1257 mIsPow2 = gl::isPow2(size.width) && gl::isPow2(size.height) && gl::isPow2(size.depth);
1397 mIsPow2 = gl::isPow2(size.width) && gl::isPow2(size.height) && gl::isPow2(size.depth);
Dmtl_render_utils.mm2645 bool isPow2 = gl::isPow2(size.width) && gl::isPow2(size.height) && gl::isPow2(size.depth);
2648 if (isPow2)
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DTexture.cpp308 samplerState.getWrapS() != GL_CLAMP_TO_BORDER && !isPow2(baseImageDesc.size.width)) || in computeSamplerCompleteness()
310 samplerState.getWrapT() != GL_CLAMP_TO_BORDER && !isPow2(baseImageDesc.size.height))) in computeSamplerCompleteness()
320 if (!isPow2(baseImageDesc.size.width) || !isPow2(baseImageDesc.size.height)) in computeSamplerCompleteness()
DvalidationEGL.cpp1472 (!gl::isPow2(width) || !gl::isPow2(height))) in ValidateCreatePbufferSurface()
1672 (!gl::isPow2(width) || !gl::isPow2(height))) in ValidateCreatePbufferFromClientBuffer()
DvalidationES2.cpp1861 if (!gl::isPow2(width) || !gl::isPow2(height)) in ValidateES2TexStorageParameters()
3988 if (!isPow2(mask + 1)) in ValidateStencilFillPathCHROMIUM()
4158 if (!isPow2(mask + 1)) in ValidateStencilFillPathInstancedCHROMIUM()
4221 if (!isPow2(mask + 1)) in ValidateStencilThenCoverFillPathInstancedCHROMIUM()
6565 (!isPow2(static_cast<int>(texture->getWidth(baseTarget, 0))) || in ValidateGenerateMipmap()
6566 !isPow2(static_cast<int>(texture->getHeight(baseTarget, 0))))) in ValidateGenerateMipmap()
DvalidationES.cpp814 (level != 0 && (!isPow2(width) || !isPow2(height) || !isPow2(depth)))) in ValidImageSizeParameters()
1043 ASSERT(isPow2(typeSize) && typeSize > 0); in ValidateWebGLVertexAttribPointer()
DvalidationES.h840 ASSERT(isPow2(GetDrawElementsTypeSize(type)) && GetDrawElementsTypeSize(type) > 0); in ValidateDrawElementsCommon()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DBufferVk.cpp29 static_assert(gl::isPow2(kBufferSizeGranularity), "use as alignment, must be power of two");
/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dmathutil.h37 inline constexpr bool isPow2(T x) in isPow2() function
1254 ASSERT(gl::isPow2(alignment));
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DTexture.cpp365 samplerState.getWrapS() != GL_CLAMP_TO_BORDER && !isPow2(baseImageDesc.size.width)) || in computeSamplerCompleteness()
367 samplerState.getWrapT() != GL_CLAMP_TO_BORDER && !isPow2(baseImageDesc.size.height))) in computeSamplerCompleteness()
377 if (!isPow2(baseImageDesc.size.width) || !isPow2(baseImageDesc.size.height)) in computeSamplerCompleteness()
DvalidationES.cpp1018 (level != 0 && (!isPow2(width) || !isPow2(height) || !isPow2(depth)))) in ValidImageSizeParameters()
1068 if (!isPow2(width) || !isPow2(height)) in ValidCompressedImageSize()
1287 ASSERT(isPow2(typeSize) && typeSize > 0); in ValidateWebGLVertexAttribPointer()
1959 (!isPow2(static_cast<int>(texture->getWidth(baseTarget, 0))) || in ValidateGenerateMipmapBase()
1960 !isPow2(static_cast<int>(texture->getHeight(baseTarget, 0))))) in ValidateGenerateMipmapBase()
DvalidationEGL.cpp2579 (!gl::isPow2(width) || !gl::isPow2(height))) in ValidateCreatePbufferSurface()
2858 (!gl::isPow2(width) || !gl::isPow2(height))) in ValidateCreatePbufferFromClientBuffer()
DvalidationES.h1075 ASSERT(isPow2(GetDrawElementsTypeSize(type)) && GetDrawElementsTypeSize(type) > 0); in ValidateDrawElementsCommon()
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/
Dturbojpeg.c53 #define isPow2(x) (((x) & (x - 1)) == 0) macro
866 if (width <= 0 || height <= 0 || dstBuf == NULL || pad < 0 || !isPow2(pad) || in tjEncodeYUV3()
1514 if (srcBuf == NULL || pad < 0 || !isPow2(pad) || subsamp < 0 || in tjDecodeYUV()
1726 pad < 1 || !isPow2(pad) || height < 0) in tjDecompressToYUV2()
/third_party/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir.h839 bool isPow2() const;
Dnv50_ir.cpp425 ImmediateValue::isPow2() const in isPow2() function in nv50_ir::ImmediateValue
Dnv50_ir_peephole.cpp1101 } else if (!imm0.isNegative() && imm0.isPow2()) { in opnd()
1226 if (i->dType == TYPE_U32 && imm0.isPow2()) { in opnd()
1298 if (s == 1 && imm0.isPow2()) { in opnd()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DTextureD3D.cpp405 if ((gl::isPow2(width) && gl::isPow2(height) && gl::isPow2(depth)) || in creationLevels()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DTextureD3D.cpp397 if ((gl::isPow2(width) && gl::isPow2(height) && gl::isPow2(depth)) || in creationLevels()

12