yuq / mesa-lima

Deprecated, new place: https://gitlab.freedesktop.org/lima
https://github.com/yuq/mesa-lima/wiki
165 stars 17 forks source link

Implement texture support #12

Closed anarsoul closed 6 years ago

anarsoul commented 6 years ago

As per wiki, both PP compiler and command stream need be changed

yuq commented 6 years ago

Thanks for the dump. After comparing the gl_Position result, it's confirmed that mesa-lima is different than the mali binary using same draw_cube_tex(0): 305.655640 472.256653 0.501393 1.000000 / mesa lima / 288.898315 479.424042 0.501506 0.133233 / mali binary /

So there should be some bug in the vertex shader stage. I'll try to find out.

yuq commented 6 years ago

Following two commits fix the problem: https://github.com/yuq/mesa-lima/commit/cd970666e9ecbce1eccfd5dfc519cb71ffe48337 https://github.com/yuq/mesa-lima/commit/b93b19f0456f84a99b8627966e00266f0adf3970

Icenowy commented 6 years ago

@anarsoul I have tried out your textures branch (rebased on newest lima-17.3).

When trying to run glmark2-es2-drm, the following error appears:

  =======================================================
    glmark2 2017.07
=======================================================
    OpenGL Information
    GL_VENDOR:     lima
    GL_RENDERER:   Mali400
    GL_VERSION:    OpenGL ES 2.0 Mesa 17.3.0 (git-8efab51765)
=======================================================
[build] use-vbo=false:[  849.960285] lima 1c40000.gpu: gp error irq state=4 status=2b
[  849.966339] [drm] lima worker wait task error
[  850.964623] [drm] lima worker wait dep fence error -110
 FPS: 1 FrameTime: 1000.000 ms
[  860.762346] lima 1c40000.gpu: lima vm map va overlap 42000-83fff 42000-47fff
Error: eglCreateContext() failed with error: 0x3003
Error: CanvasGeneric: Invalid EGL state
[build] use-vbo=true:[  861.925034] lima 1c40000.gpu: lima vm map va overlap 42000-81fff 42000-47fff
[  861.932458] lima 1c40000.gpu: lima vm map va overlap 42000-81fff 42000-47fff
[  863.650313] lima 1c40000.gpu: still active bo inside vm
Segmentation fault (core dumped)
anarsoul commented 6 years ago

@Icenowy I think it's not ready for glmark2 yet.

anarsoul commented 6 years ago

Merged in #21