panfrost: Implement pan_tiler for non-hierarchy GPUs

Graphics / Mesa 3D Graphics Library / Mesa - Alyssa Rosenzweig [collabora.com] - 3 December 2019 04:25 EST

The algorithm is as described. Nothing fancy here, just need to add some new code paths depending on which model we're running on.

Tomeu:- Also disable tiling when !hierarchy and !vertex_count- Avoid creating polygon lists smaller than the minimum when
vertex_count > 0 but tile size smaller than 16 byte- Take into account tile size when calculating polygon list size for !hierarchy- Allow 0-sized tiles in a single dimension

9fb0904712a panfrost: Implement pan_tiler for non-hierarchy GPUs
src/gallium/drivers/panfrost/pan_context.c | 20 ++--
src/gallium/drivers/panfrost/pan_scoreboard.c | 3 +-
src/panfrost/encoder/pan_encoder.h | 6 +-
src/panfrost/encoder/pan_tiler.c | 148 +++++++++++++-------------
src/panfrost/include/panfrost-job.h | 10 +-
src/panfrost/pandecode/decode.c | 55 ++--------
6 files changed, 106 insertions(+), 136 deletions(-)

Upstream: cgit.freedesktop.org


  • Share