gallium: add lima driver

Graphics / Mesa 3D Graphics Library / Mesa - Qiang Yu [gmail.com] - 11 April 2019 01:57 EDT

v2:- use renamed util_dynarray_grow_cap- use DEBUG_GET_ONCE_FLAGS_OPTION for debug flags- remove DRM_FORMAT_MOD_ARM_AGTB_MODE0 usage- compute min/max index in driver

v3:- fix plbu framebuffer state calculation- fix color_16pc assemble- use nir_lower_all_source_mods for lowering neg/abs/sat- use float arrary for static GPU data- add disassemble comment for static shader code- use drm_find_modifier

v4:- use lima_nir_lower_uniform_to_scalar

v5:- remove nir_opt_global_to_local when rebase

Cc: Rob Clark Cc: Alyssa Rosenzweig

92d7ca4b1cd gallium: add lima driver
meson.build | 3 +-
meson_options.txt | 2 +-
.../auxiliary/pipe-loader/pipe_loader_drm.c | 5 +
src/gallium/auxiliary/target-helpers/drm_helper.h | 23 +
.../auxiliary/target-helpers/drm_helper_public.h | 3 +
src/gallium/drivers/lima/ir/gp/codegen.c | 619 ++++++++
src/gallium/drivers/lima/ir/gp/codegen.h | 166 ++
src/gallium/drivers/lima/ir/gp/disasm.c | 568 +++++++
src/gallium/drivers/lima/ir/gp/gpir.h | 392 +++++
src/gallium/drivers/lima/ir/gp/instr.c | 488 ++++++
src/gallium/drivers/lima/ir/gp/lower.c | 529 +++++++
src/gallium/drivers/lima/ir/gp/nir.c | 422 +++++
src/gallium/drivers/lima/ir/gp/node.c | 492 ++++++
src/gallium/drivers/lima/ir/gp/physical_regalloc.c | 135 ++
src/gallium/drivers/lima/ir/gp/reduce_scheduler.c | 220 +++
src/gallium/drivers/lima/ir/gp/scheduler.c | 809 ++++++++++
src/gallium/drivers/lima/ir/gp/value_regalloc.c | 170 ++
src/gallium/drivers/lima/ir/lima_ir.h | 66 +
.../lima/ir/lima_nir_lower_uniform_to_scalar.c | 83 +
src/gallium/drivers/lima/ir/pp/codegen.c | 669 ++++++++
src/gallium/drivers/lima/ir/pp/codegen.h | 359 +++++
src/gallium/drivers/lima/ir/pp/disasm.c | 776 +++++++++
src/gallium/drivers/lima/ir/pp/instr.c | 311 ++++
src/gallium/drivers/lima/ir/pp/lower.c | 421 +++++
src/gallium/drivers/lima/ir/pp/nir.c | 494 ++++++
src/gallium/drivers/lima/ir/pp/node.c | 426 +++++
src/gallium/drivers/lima/ir/pp/node_to_instr.c | 401 +++++
src/gallium/drivers/lima/ir/pp/ppir.h | 512 ++++++
src/gallium/drivers/lima/ir/pp/regalloc.c | 757 +++++++++
src/gallium/drivers/lima/ir/pp/scheduler.c | 197 +++
src/gallium/drivers/lima/lima_bo.c | 337 ++++
src/gallium/drivers/lima/lima_bo.h | 66 +
src/gallium/drivers/lima/lima_context.c | 262 ++++
src/gallium/drivers/lima/lima_context.h | 294 ++++
src/gallium/drivers/lima/lima_draw.c | 1648 ++++++++++++++++++++
src/gallium/drivers/lima/lima_fence.c | 120 ++
src/gallium/drivers/lima/lima_fence.h | 36 +
src/gallium/drivers/lima/lima_program.c | 317 ++++
src/gallium/drivers/lima/lima_program.h | 35 +
src/gallium/drivers/lima/lima_query.c | 96 ++
src/gallium/drivers/lima/lima_resource.c | 589 +++++++
src/gallium/drivers/lima/lima_resource.h | 86 +
src/gallium/drivers/lima/lima_screen.c | 546 +++++++
src/gallium/drivers/lima/lima_screen.h | 93 ++
src/gallium/drivers/lima/lima_state.c | 506 ++++++
src/gallium/drivers/lima/lima_submit.c | 184 +++
src/gallium/drivers/lima/lima_submit.h | 43 +
src/gallium/drivers/lima/lima_texture.c | 278 ++++
src/gallium/drivers/lima/lima_texture.h | 35 +
src/gallium/drivers/lima/lima_tiling.c | 184 +++
src/gallium/drivers/lima/lima_tiling.h | 44 +
src/gallium/drivers/lima/lima_util.c | 80 +
src/gallium/drivers/lima/lima_util.h | 37 +
src/gallium/drivers/lima/meson.build | 89 ++
src/gallium/meson.build | 6 +
src/gallium/targets/dri/meson.build | 5 +-
src/gallium/targets/dri/target.c | 3 +
src/gallium/winsys/lima/drm/lima_drm_public.h | 35 +
src/gallium/winsys/lima/drm/lima_drm_winsys.c | 124 ++
src/gallium/winsys/lima/drm/meson.build | 29 +
60 files changed, 16721 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share