Home
last modified time | relevance | path

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

/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()
Dvk_helpers.cpp2484 ASSERT(gl::isPow2(prevAlignment)); in requireAlignment()
2491 if (gl::isPow2(prevAlignment * alignment)) in requireAlignment()
2499 ASSERT(prevAlignment % 3 != 0 || gl::isPow2(prevAlignment / 3)); in requireAlignment()
2500 ASSERT(alignment % 3 != 0 || gl::isPow2(alignment / 3)); in requireAlignment()
DContextVk.cpp916 ASSERT(gl::isPow2(mRenderer->getPhysicalDeviceProperties().limits.nonCoherentAtomSize)); in initialize()
917 ASSERT(gl::isPow2( in initialize()
/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/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()
DvalidationES2.cpp1644 if (!isPow2(width) || !isPow2(height)) in ValidateES2TexStorageParametersBase()
Dformatutils.cpp1669 ASSERT(alignment > 0 && isPow2(alignment)); in computeRowPitch()
/third_party/vk-gl-cts/external/amber/src/src/
Dpipeline.cc180 const bool isPow2 = in SetShaderRequiredSubgroupSize() local
182 if (subgroupSize == 0 || subgroupSize > 128 || !isPow2) { in SetShaderRequiredSubgroupSize()
/third_party/mesa3d/src/nouveau/codegen/
Dnv50_ir.h841 bool isPow2() const;
Dnv50_ir.cpp421 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/skia/third_party/externals/angle2/src/libANGLE/renderer/
Drenderer_utils.cpp987 ASSERT(gl::isPow2(sampleCount)); in GetSamplePosition()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/common/
DImage.cpp517 ASSERT(alignment > 0 && sw::isPow2(alignment)); in ComputePitch()