[Mesa-dev] [PATCH 0/8] Push down gl_vertex_array into drivers.

Mathias.Froehlich at gmx.net Mathias.Froehlich at gmx.net
Sun Mar 25 18:41:54 UTC 2018


From: Mathias Fröhlich <Mathias.Froehlich at gmx.net>

Hi,

This series pushes the inputs array down into the driver backends.
Also the draw code paths get cleaned up to use the higher level
function entry points from the driver functions struct.
And finally vbo_split* can now be moved into the tnl module.

This step is meant ot be an intermediate step for gallium and i965 that
serves as a starting point to get rid of gl_vertex_array in those drivers.

The patch was run through piglit on radeonsi and clasic swrast as well as
on intels CI systems without regressions.

please review!
Thanks in advance and best

Mathias


Mathias Fröhlich (8):
  gallium: Push down the gl_vertex_array inputs into gallium.
  i965: Push down the gl_vertex_array inputs into i965.
  vbo: Remove vbo_indirect_draw_func.
  tnl: Push down the gl_vertex_array inputs into tnl drivers.
  vbo: Remove the now unused vbo draw path.
  vbo: Readd the arrays argument to the legacy draw methods.
  vbo: Move vbo_split into the tnl module.
  vbo: Remove unused includes to vbo_private.h

 src/mesa/Makefile.sources                          |  10 +-
 src/mesa/drivers/common/driverfuncs.c              |   2 +-
 src/mesa/drivers/dri/i915/intel_context.c          |   1 +
 src/mesa/drivers/dri/i965/brw_context.c            |   1 +
 src/mesa/drivers/dri/i965/brw_context.h            |   4 +
 src/mesa/drivers/dri/i965/brw_draw.c               |  27 ++--
 src/mesa/drivers/dri/i965/brw_draw.h               |   1 +
 src/mesa/drivers/dri/nouveau/nouveau_context.c     |   1 +
 src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c       |  34 ++++-
 src/mesa/drivers/dri/r200/r200_context.c           |   1 +
 src/mesa/drivers/dri/radeon/radeon_context.c       |   1 +
 src/mesa/drivers/dri/swrast/swrast.c               |   1 +
 src/mesa/drivers/osmesa/osmesa.c                   |   1 +
 src/mesa/drivers/x11/xm_api.c                      |   1 +
 src/mesa/main/state.c                              |  12 +-
 src/mesa/meson.build                               |   8 +-
 src/mesa/state_tracker/st_cb_feedback.c            |  35 ++++-
 src/mesa/state_tracker/st_context.c                |   9 +-
 src/mesa/state_tracker/st_context.h                |   4 +
 src/mesa/state_tracker/st_draw.c                   |  16 ++-
 src/mesa/state_tracker/st_draw.h                   |   2 +-
 src/mesa/tnl/t_context.c                           |   6 +-
 src/mesa/tnl/t_context.h                           |   3 +
 src/mesa/tnl/t_draw.c                              |  53 ++++++--
 src/mesa/tnl/t_rebase.c                            |  13 +-
 src/mesa/tnl/t_rebase.h                            |   4 +-
 src/mesa/{vbo/vbo_split.c => tnl/t_split.c}        |  34 ++---
 src/mesa/{vbo/vbo_split.h => tnl/t_split.h}        |  46 +++----
 .../{vbo/vbo_split_copy.c => tnl/t_split_copy.c}   |  31 ++---
 .../vbo_split_inplace.c => tnl/t_split_inplace.c}  |  59 ++++-----
 src/mesa/tnl/tnl.h                                 |  95 ++++++++++++++
 src/mesa/vbo/vbo.h                                 | 131 -------------------
 src/mesa/vbo/vbo_context.c                         | 141 +++++----------------
 src/mesa/vbo/vbo_exec.c                            |   8 --
 src/mesa/vbo/vbo_exec.h                            |   4 -
 src/mesa/vbo/vbo_exec_array.c                      |   2 -
 src/mesa/vbo/vbo_primitive_restart.c               |   1 -
 src/mesa/vbo/vbo_private.h                         |  13 --
 38 files changed, 387 insertions(+), 429 deletions(-)
 rename src/mesa/{vbo/vbo_split.c => tnl/t_split.c} (84%)
 rename src/mesa/{vbo/vbo_split.h => tnl/t_split.h} (59%)
 rename src/mesa/{vbo/vbo_split_copy.c => tnl/t_split_copy.c} (96%)
 rename src/mesa/{vbo/vbo_split_inplace.c => tnl/t_split_inplace.c} (85%)

-- 
2.14.3



More information about the mesa-dev mailing list