Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux上G2D支持有些不优雅 #101

Open
tracewong opened this issue Mar 9, 2023 · 0 comments
Open

Linux上G2D支持有些不优雅 #101

tracewong opened this issue Mar 9, 2023 · 0 comments

Comments

@tracewong
Copy link

当前G2D类似的2D加速模块AWTK在Linux上支持有一些麻烦

因为当前awtk上G2D支持都是基于裸机实现的,内存地址直接是物理内存地址,给G2D是没有任何问题的。

但是Linux的适配中,无论是gb还是fb,用户层操作的都是虚拟内存。实际给G2D的时候需要转换成物理内存,
这里转换时有两种主要的操作方式:

  1. G2D单独申请一块物理连续的内存,然后将gb拷贝到这款内存,转换后送给fb
  2. 绘制gb的buffer申请时就使用物理连续内存,G2D使用时直接使用这块内存,转换后送给fb

上述第1种实现对当前awtk代码框架没有修改,但是会多一次拷贝,实现起来不优雅
上述第2中实现需要awtk上绘制相关的实现做一些不太大的修改,希望官方可以考虑一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant