I've spend a bit of time and leveraged my work on libdrm's Exynos subsystem to write a hardware-accelerated EXA backend for xf86-video-armsoc.
The repository (g2d branch / is default):
Code: Select all
https://github.com/tobiasjakobi/xf86-video-armsoc
The backend makes heavy use of the new command stream submission API. A recent version of libdrm from my repo is needed.
libdrm repository (exynos branch / is default):
Code: Select all
https://github.com/tobiasjakobi/libdrm
Code: Select all
https://github.com/tobiasjakobi/linux-odroid-public/tree/odroid-4.5.y
glmark2-es2 run (display resolution = 1280x1024):
Code: Select all
DISPLAY=:0.0 LD_LIBRARY_PATH=$HOME/local/lib/mali-r5p0-x11/ glmark2-es2
=======================================================
glmark2 2014.03
=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-400 MP
GL_VERSION: OpenGL ES 2.0
=======================================================
[build] use-vbo=false: FPS: 232 FrameTime: 4.310 ms
[build] use-vbo=true: FPS: 278 FrameTime: 3.597 ms
[texture] texture-filter=nearest: FPS: 321 FrameTime: 3.115 ms
[texture] texture-filter=linear: FPS: 311 FrameTime: 3.215 ms
[texture] texture-filter=mipmap: FPS: 337 FrameTime: 2.967 ms
[shading] shading=gouraud: FPS: 203 FrameTime: 4.926 ms
[shading] shading=blinn-phong-inf: FPS: 218 FrameTime: 4.587 ms
[shading] shading=phong: FPS: 179 FrameTime: 5.587 ms
[shading] shading=cel: FPS: 172 FrameTime: 5.814 ms
[bump] bump-render=high-poly: FPS: 100 FrameTime: 10.000 ms
[bump] bump-render=normals: FPS: 373 FrameTime: 2.681 ms
[bump] bump-render=height: FPS: 348 FrameTime: 2.874 ms
libpng warning: iCCP: known incorrect sRGB profile
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 244 FrameTime: 4.098 ms
libpng warning: iCCP: known incorrect sRGB profile
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 131 FrameTime: 7.634 ms
[pulsar] light=false:quads=5:texture=false: FPS: 391 FrameTime: 2.558 ms
libpng warning: iCCP: known incorrect sRGB profile
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 67 FrameTime: 14.925 ms
libpng warning: iCCP: known incorrect sRGB profile
[desktop] effect=shadow:windows=4: FPS: 186 FrameTime: 5.376 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 59 FrameTime: 16.949 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 60 FrameTime: 16.667 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 65 FrameTime: 15.385 ms
[ideas] speed=duration: FPS: 194 FrameTime: 5.155 ms
[jellyfish] <default>: FPS: 213 FrameTime: 4.695 ms
Error: SceneTerrain requires Vertex Texture Fetch support, but GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS is 0
[terrain] <default>: Unsupported
[shadow] <default>: FPS: 145 FrameTime: 6.897 ms
[refract] <default>: FPS: 22 FrameTime: 45.455 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 374 FrameTime: 2.674 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 310 FrameTime: 3.226 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 346 FrameTime: 2.890 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 353 FrameTime: 2.833 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 253 FrameTime: 3.953 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 305 FrameTime: 3.279 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 306 FrameTime: 3.268 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 306 FrameTime: 3.268 ms
=======================================================
glmark2 Score: 231
=======================================================
- complex solid fill operations (should just need translation from X11 ALU to G2D ROP4)
- complex copy operations (same thing)
- composite operations (this should especially help font rendering)
- acceleration for non-GEM pixmaps (tricky -- either via userptr, which could make things slower because of cache invalidation, or by migrating non-GEM to GEM pixmaps)