[Mesa-dev] [PATCH 0/8] Partly untangle pos/generic0 aliasing dependencies.

Mathias.Froehlich at gmx.net Mathias.Froehlich at gmx.net
Wed Jan 31 07:55:54 UTC 2018


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

This is the starting point to a patch series that I intent to feed.
The aim is to get rid of some VERT_ATTRIB_MAX long loops that currently
happen at about any draw call.

The series tries to separate out one of the depencies of the attribute
aliasing code as a preparation of the above. It uses static const tables
for the aliasing mapping. Also there is some cleanup to make use of
these tables.

This series was now rebased several times during the past weeks.
Nevertheless it still does not regress piglit quick on radeonsi, i965
and classical swrast.
Please review.

thanks and best
Mathias



Mathias Fröhlich (8):
  vbo: Correctly handle attribute offsets in dlist draw.
  mesa: Use defines for the aliased material array attributes.
  mesa: Put materials at the end of the generic block.
  mesa: Track position/generic0 aliasing in the VAO.
  vbo: Use static const VERT_ATTRIB->VBO_ATTRIB maps.
  vbo: Simplify input array distribution for array type draws.
  vbo: Simplify input array distribution for imm type draws.
  vbo: Simplify input array distribution for dlist type draws.

 src/compiler/shader_enums.h                     |  15 +++
 src/mesa/drivers/dri/nouveau/nouveau_render_t.c |   2 +-
 src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c    |   8 +-
 src/mesa/drivers/dri/nouveau/nv10_render.c      |  10 +-
 src/mesa/drivers/dri/nouveau/nv20_render.c      |  20 ++--
 src/mesa/main/arrayobj.c                        | 131 ++++++++++++++++++++++++
 src/mesa/main/arrayobj.h                        |  64 ++++++++++++
 src/mesa/main/enable.c                          |   5 +
 src/mesa/main/ffvertex_prog.c                   |   7 +-
 src/mesa/main/mtypes.h                          |  18 ++++
 src/mesa/main/varray.c                          |  18 +++-
 src/mesa/tnl/t_context.h                        |   6 +-
 src/mesa/vbo/vbo_context.c                      |  23 +----
 src/mesa/vbo/vbo_exec.c                         |  74 +++++++++++++
 src/mesa/vbo/vbo_exec_array.c                   | 115 ++++++---------------
 src/mesa/vbo/vbo_exec_draw.c                    |  81 +++------------
 src/mesa/vbo/vbo_private.h                      |  15 ++-
 src/mesa/vbo/vbo_save.h                         |   1 +
 src/mesa/vbo/vbo_save_api.c                     |  19 ++++
 src/mesa/vbo/vbo_save_draw.c                    |  86 ++++------------
 20 files changed, 446 insertions(+), 272 deletions(-)

-- 
2.14.3



More information about the mesa-dev mailing list