/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | gpu_image_gles.cpp | 97 plat.swizzle.x = MapSwizzle(desc.componentMapping.r, plat.swizzle.x); in DoSwizzle() 98 plat.swizzle.y = MapSwizzle(desc.componentMapping.g, plat.swizzle.y); in DoSwizzle() 99 plat.swizzle.z = MapSwizzle(desc.componentMapping.b, plat.swizzle.z); in DoSwizzle() 100 plat.swizzle.w = MapSwizzle(desc.componentMapping.a, plat.swizzle.w); in DoSwizzle() 108 if (plat.image) { in GenerateImageStorage() 120 …device.TexStorage2DMultisample(plat.image, plat.type, sampleCount, plat.internalFormat, size2D, tr… in GenerateImageStorage() 123 … device.TexStorage2D(plat.image, plat.type, desc.mipCount, plat.internalFormat, size2D); in GenerateImageStorage() 130 device.TexStorage2D(plat.image, plat.type, desc.mipCount, plat.internalFormat, size2D); in GenerateImageStorage() 136 device.TexStorage3D(plat.image, plat.type, desc.mipCount, plat.internalFormat, in GenerateImageStorage() 143 …plat.image, plat.type, desc.mipCount, plat.internalFormat, { desc.width, desc.height, desc.depth }… in GenerateImageStorage() [all …]
|
H A D | gpu_resource_util_gles.cpp | 47 GpuBufferPlatformDataGL& plat = const_cast<GpuBufferPlatformDataGL&>(cplat); in DebugBufferNameGLES() local 48 if (plat.buffer) { in DebugBufferNameGLES() 49 glObjectLabel(GL_BUFFER, plat.buffer, (GLsizei)name.length(), name.data()); in DebugBufferNameGLES() 55 … const GpuImagePlatformDataGL& plat = (static_cast<const GpuImageGLES&>(image)).GetPlatformData(); in DebugImageNameGLES() local 56 if (plat.image) { in DebugImageNameGLES() 57 glObjectLabel(GL_TEXTURE, plat.image, (GLsizei)name.length(), name.data()); in DebugImageNameGLES() 63 …const GpuSamplerPlatformDataGL& plat = (static_cast<const GpuSamplerGLES&>(sampler)).GetPlatformDa… in DebugSamplerNameGLES() local 64 if (plat.sampler) { in DebugSamplerNameGLES() 65 glObjectLabel(GL_SAMPLER, plat.sampler, (GLsizei)name.length(), name.data()); in DebugSamplerNameGLES()
|
H A D | swapchain_gles.cpp | 214 …ceGLES& device, uint32_t count, GLenum colorf, uint32_t sampleCount, SwapchainPlatformDataGL& plat) in GenerateTextures() argument 223 Math::UVec2 size { plat.swapchainImages.width, plat.swapchainImages.height }; in GenerateTextures() 224 plat.swapchainImages.images.resize(1); // Supports multiple images, see if it helps performance. in GenerateTextures() 226 …glGenTextures(static_cast<GLsizei>(plat.swapchainImages.images.size()), plat.swapchainImages.image… in GenerateTextures() 227 for (size_t i = 0; i < plat.swapchainImages.images.size(); i++) { in GenerateTextures() 228 GLuint tid = plat.swapchainImages.images[i]; in GenerateTextures() 246 void GenerateFBO(DeviceGLES& device, SwapchainPlatformDataGL& plat, bool msaa) in GenerateFBO() argument 249 plat.fbos.resize(plat.swapchainImages.images.size()); in GenerateFBO() 250 glGenFramebuffers(static_cast<GLsizei>(plat.fbos.size()), plat.fbos.data()); in GenerateFBO() 251 for (size_t i = 0; i < plat.fbos.size(); i++) { in GenerateFBO() [all …]
|
H A D | node_context_pool_manager_gles.cpp | 216 const GpuImagePlatformDataGL& plat = in IsDefaultResolve() local 218 if ((plat.image == 0) && (plat.renderBuffer == 0)) { in IsDefaultResolve() 230 if ((plat.image == 0) && (plat.renderBuffer == 0)) { in IsDefaultResolve() 298 if (plat.renderBuffer) { in BindToFbo() 302 if ((plat.type == GL_TEXTURE_2D_ARRAY) || (plat.type == GL_TEXTURE_2D_MULTISAMPLE_ARRAY)) { in BindToFbo() 311 … glFramebufferTexture2D(GL_FRAMEBUFFER, attachType, plat.type, plat.image, (GLint)image.mipLevel); in BindToFbo() 319 const GpuImagePlatformDataGL& plat = in BindToFboMultisampled() local 351 if (plat.renderBuffer) { in BindToFboMultisampled() 354 … } else if ((plat.type == GL_TEXTURE_2D_ARRAY) || (plat.type == GL_TEXTURE_2D_MULTISAMPLE_ARRAY)) { in BindToFboMultisampled() 380 GL_FRAMEBUFFER, attachType, plat.type, plat.image, (GLint)image.mipLevel, samples); in BindToFboMultisampled() [all …]
|
H A D | gpu_program_gles.cpp | 66 for (auto& info : plat.infos) { in ProcessPushConstants() 91 for (const auto& t : plat.sbSets) { in ProcessStorageBlocks() 112 for (const auto& t : plat.ubSets) { in ProcessUniformBlocks() 156 for (const auto& t : plat.ciSets) { in ProcessImageTextures() 179 for (const auto& t : plat.combSets) { in ProcessCombinedSamplers() 215 for (const auto& t : plat.siSets) { in ProcessSubPassInputs() 238 for (const auto& t : plat.cbSets) { in ProcessSamplers() 267 ProcessPushConstants(program, plat, flag, map); in ProcessProgram() 269 ProcessStorageBlocks(program, plat, flag, map); in ProcessProgram() 271 ProcessImageTextures(program, plat, flag, map); in ProcessProgram() [all …]
|
H A D | egl_state.cpp | 464 bool IsSrgbSurfaceSupported(const DevicePlatformDataGLES& plat) in IsSrgbSurfaceSupported() argument 467 if (plat.majorVersion > 1u || (plat.majorVersion == 1u && plat.minorVersion >= 5u)) { in IsSrgbSurfaceSupported() 472 return plat.hasColorSpaceExt; in IsSrgbSurfaceSupported() 840 const auto& plat = swapchain->GetPlatformData(); in SetContext() local 843 newContext.drawSurface = (EGLSurface)plat.surface; in SetContext() 844 newContext.readSurface = (EGLSurface)plat.surface; in SetContext() 847 if (vSync_ != plat.vsync) { in SetContext() 848 vSync_ = plat.vsync; in SetContext() 849 SetSwapInterval(plat.vsync ? 1u : 0u); in SetContext() 988 EGLDisplay display = plat.display; in GetSurfaceInformation() [all …]
|
H A D | gpu_query_gles.cpp | 40 for (const auto& plat : plats_) { in ~GpuQueryGLES() local 41 glDeleteQueries(1, &plat.queryObject); in ~GpuQueryGLES()
|
H A D | wgl_state.cpp | 384 auto& plat = swapChain.GetPlatformData(); in SwapBuffers() local 385 ::SwapBuffers(reinterpret_cast<HDC>(plat.surface)); in SwapBuffers() 555 const auto& plat = swapChain->GetPlatformData(); in SetContext() local 556 if (plat.surface == 0) { in SetContext() 565 auto display = reinterpret_cast<HDC>(plat.surface); in SetContext() 573 if (vSync_ != plat.vsync) { in SetContext() 574 vSync_ = plat.vsync; in SetContext() 575 SetSwapInterval(plat.vsync ? 1u : 0u); in SetContext()
|
H A D | render_backend_gles.cpp | 534 const auto& plat = srcGpuBuffer.GetPlatformData(); in SetupBlit() local 1147 const auto& plat = gpuBuffer->GetPlatformData(); in RenderCommandDrawIndirect() local 1205 const auto& plat = gpuBuffer->GetPlatformData(); in RenderCommandDispatchIndirect() local 1649 offset += plat.currentByteOffset; in RenderCommandBindVertexBuffers() 1650 vertexAttribBindSlots_[i].id = plat.buffer; in RenderCommandBindVertexBuffers() 1665 const auto& plat = gpuBuffer->GetPlatformData(); in RenderCommandBindIndexBuffer() local 1667 boundIndexBuffer_.offset += plat.currentByteOffset; in RenderCommandBindIndexBuffer() 1669 boundIndexBuffer_.id = plat.buffer; in RenderCommandBindIndexBuffer() 1987 const auto& plat = gpuSampler->GetPlatformData(); in BindSampler() local 2027 const auto& plat = gpuBuffer->GetPlatformData(); in BindBuffer() local [all …]
|
H A D | egl_state.h | 61 …const DevicePlatformDataGLES& plat, EGLSurface surface, GlesImplementation::SurfaceInfo& res) cons…
|
H A D | device_gles.cpp | 1315 const auto& plat = static_cast<const DevicePlatformDataGL&>(device->GetPlatformData()); in CreateDeviceGL() local 1316 if (plat.context != nullptr) { in CreateDeviceGL() 1327 const auto& plat = static_cast<const DevicePlatformDataGLES&>(device->GetPlatformData()); in CreateDeviceGLES() local 1328 if (plat.context != EGL_NO_CONTEXT) { in CreateDeviceGLES()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/ |
H A D | gpu_resource_util_vk.cpp | 62 … const GpuBufferPlatformDataVk& plat = (static_cast<const GpuBufferVk&>(buffer)).GetPlatformData(); in DebugBufferNameVk() local 63 if (plat.buffer) { in DebugBufferNameVk() 65 VK_OBJECT_TYPE_BUFFER, VulkanHandleCast<uint64_t>(plat.buffer), name.data() }; in DebugBufferNameVk() 77 if (plat.image) { in DebugImageNameVk() 79 VK_OBJECT_TYPE_IMAGE, VulkanHandleCast<uint64_t>(plat.image), name.data() }; in DebugImageNameVk() 82 if (plat.imageView) { in DebugImageNameVk() 84 … VK_OBJECT_TYPE_IMAGE_VIEW, VulkanHandleCast<uint64_t>(plat.imageView), name.data() }; in DebugImageNameVk() 87 if (plat.imageViewBase) { in DebugImageNameVk() 89 … VK_OBJECT_TYPE_IMAGE_VIEW, VulkanHandleCast<uint64_t>(plat.imageViewBase), name.data() }; in DebugImageNameVk() 101 if (plat.sampler) { in DebugSamplerNameVk() [all …]
|
H A D | gpu_image_vk.cpp | 135 void FillImageDescVk(const GpuImageDesc& desc, GpuImagePlatformDataVk& plat) in FillImageDescVk() argument 137 plat.format = static_cast<VkFormat>(desc.format); in FillImageDescVk() 138 plat.aspectFlags = GpuImageUtilsVk::GetImageAspectFlagsFromFormat(plat.format); in FillImageDescVk() 139 plat.usage = static_cast<VkImageUsageFlags>(desc.usageFlags); in FillImageDescVk() 140 plat.extent = { desc.width, desc.height, desc.depth }; in FillImageDescVk() 141 plat.tiling = static_cast<VkImageTiling>(desc.imageTiling); in FillImageDescVk() 142 plat.type = static_cast<VkImageType>(desc.imageType); in FillImageDescVk() 143 plat.samples = static_cast<VkSampleCountFlagBits>(desc.sampleCountFlags); in FillImageDescVk() 144 plat.mipLevels = desc.mipCount; in FillImageDescVk() 145 plat.arrayLayers = desc.layerCount; in FillImageDescVk()
|
H A D | device_vk.cpp | 479 if (plat.deviceApiMinor >= 1) { // enable only for 1.1+ in GetPreferredDeviceExtensions() 482 if (plat.deviceApiMinor >= 2) { // enable only for 1.2+ in GetPreferredDeviceExtensions() 538 plat.enabledPhysicalDeviceFeatures = plat.physicalDeviceProperties.physicalDeviceFeatures; in PreparePhysicalDeviceFeaturesForEnabling() 540 plat.enabledPhysicalDeviceFeatures.geometryShader = VK_FALSE; in PreparePhysicalDeviceFeaturesForEnabling() 541 plat.enabledPhysicalDeviceFeatures.tessellationShader = VK_FALSE; in PreparePhysicalDeviceFeaturesForEnabling() 542 plat.enabledPhysicalDeviceFeatures.sampleRateShading = VK_FALSE; in PreparePhysicalDeviceFeaturesForEnabling() 543 plat.enabledPhysicalDeviceFeatures.occlusionQueryPrecise = VK_FALSE; in PreparePhysicalDeviceFeaturesForEnabling() 544 plat.enabledPhysicalDeviceFeatures.pipelineStatisticsQuery = VK_FALSE; in PreparePhysicalDeviceFeaturesForEnabling() 545 plat.enabledPhysicalDeviceFeatures.shaderTessellationAndGeometryPointSize = VK_FALSE; in PreparePhysicalDeviceFeaturesForEnabling() 546 plat.enabledPhysicalDeviceFeatures.inheritedQueries = VK_FALSE; in PreparePhysicalDeviceFeaturesForEnabling() [all …]
|
H A D | node_context_pool_manager_vk.cpp | 169 const GpuImagePlatformDataVk& plat = image->GetPlatformData(); in CreateFramebuffer() local 171 imageViews[viewIndex] = plat.imageViewBase; in CreateFramebuffer() 172 if ((renderPassData.viewMask > 1u) && (plat.arrayLayers > 1u)) { in CreateFramebuffer() 178 imageViews[viewIndex] = plat.imageView; in CreateFramebuffer()
|
H A D | render_backend_vk.cpp | 1182 pipeline = plat.pipeline; in RenderCommand() 1183 pipelineLayout = plat.pipelineLayout; in RenderCommand() 1199 pipeline = plat.pipeline; in RenderCommand() 1200 pipelineLayout = plat.pipelineLayout; in RenderCommand() 1260 const GpuBufferPlatformDataVk& plat = gpuBuffer->GetPlatformData(); in RenderCommand() local 1261 const VkBuffer buffer = plat.buffer; in RenderCommand() 1303 const GpuBufferPlatformDataVk& plat = gpuBuffer->GetPlatformData(); in RenderCommand() local 1304 const VkBuffer buffer = plat.buffer; in RenderCommand() 1474 vertexBuffers[idx] = plat.buffer; in RenderCommand() 1494 const GpuBufferPlatformDataVk& plat = gpuBuffer->GetPlatformData(); in RenderCommand() local [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/model/network/wifi/vendor/hi3881/ |
H A D | Makefile | 75 plat-objs = $(oal-objs) $(oam-objs) $(board-objs) $(frw-objs) $(adapter-objs) 120 $(MODULE_NAME)-objs += $(wifi-objs) $(plat-objs)
|
/ohos5.0/docs/zh-cn/device-dev/porting/ |
H A D | Readme-CN.md | 47 - [平台驱动移植](porting-smallchip-driver-plat.md)
|
/ohos5.0/docs/en/device-dev/porting/ |
H A D | Readme-EN.md | 48 - [Platform Driver Porting](porting-smallchip-driver-plat.md)
|
/ohos5.0/docs/en/device-dev/ |
H A D | website.md | 89 - [Platform Driver Porting](porting/porting-smallchip-driver-plat.md)
|
/ohos5.0/docs/zh-cn/device-dev/ |
H A D | website.md | 90 - [平台驱动移植](porting/porting-smallchip-driver-plat.md)
|
/ohos5.0/base/update/updater/test/unittest/test_data/applypatch/ |
H A D | TestGZipModeImagePatch.old.gz | 1console:/ # init: Service 'adbd' (pid 112) exited with status 1
2init ... |