OSDN Git Service

panfrost: Use tiler fast path (performance boost)
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 21 Feb 2019 05:57:29 +0000 (05:57 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 25 Feb 2019 02:25:50 +0000 (02:25 +0000)
commit77fea552f69d02497fad8aa4e3a49c424c4b95c0
treec403a82bccee61417537fe60a6f0bb5f31d504b4
parent743700be1f583db28ff84104754f38bc6852668e
panfrost: Use tiler fast path (performance boost)

For reasons that are still unclear (speculation included in the comment
added in this patch), the tiler? metadata has a fast path that we were
not enabling; there looks to be a possible time/memory tradeoff, but the
details remain unclear.

Regardless, this patch improves performance dramatically. Particular
wins are for geometry-heavy scenes. For instance, glmark2-es2's
Phong-shaded bunny, rendering at fullscreen (2400x1600) via GBM, jumped
from ~20fps to hitting vsync cap at 60fps. Gains are even more obvious
when vsync is disabled, as in glmark2-es2-wayland.

With this patch, on GLES 2.0 samples not involving FBOs, it appears
performance is converging with (and sometimes surpassing) the blob.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_context.c