[Mesa-dev] [PATCH 0/4] V2 Multiple viewports in Gallium

Roland Scheidegger sroland at vmware.com
Fri May 24 14:07:15 PDT 2013


Am 24.05.2013 22:56, schrieb Zack Rusin:
> This series adds support for multiple viewports/scissors
> to gallium and implements it in llvmpipe. All the other
> drivers still support just a single viewport/scissor
> combo and their behavior should be exactly the same as
> it was.
> 
> I think this one takes care of all the comments. I think    
> it addresses everyones concerns. Please let me know if 
> I missed something.
> 
> Zack Rusin (4):
>   gallium: Add support for multiple viewports
>   draw: implement support for multiple viewports
>   llvmpipe: implement support for multiple viewports
>   draw: fixup draw_find_shader_output
> 
>  src/gallium/auxiliary/cso_cache/cso_context.c      |    4 +-
>  src/gallium/auxiliary/draw/draw_cliptest_tmp.h     |   10 +++-
>  src/gallium/auxiliary/draw/draw_context.c          |   63 +++++++++++++++-----
>  src/gallium/auxiliary/draw/draw_context.h          |    6 +-
>  src/gallium/auxiliary/draw/draw_gs.c               |   11 +++-
>  src/gallium/auxiliary/draw/draw_gs.h               |    1 +
>  src/gallium/auxiliary/draw/draw_pipe_clip.c        |   11 +++-
>  src/gallium/auxiliary/draw/draw_private.h          |    8 +--
>  .../draw/draw_pt_fetch_shade_pipeline_llvm.c       |    4 +-
>  src/gallium/auxiliary/draw/draw_vertex.h           |    2 +-
>  src/gallium/auxiliary/draw/draw_vs.c               |    7 ---
>  src/gallium/auxiliary/draw/draw_vs_variant.c       |   34 +++++++++--
>  src/gallium/auxiliary/tgsi/tgsi_scan.c             |    6 ++
>  src/gallium/auxiliary/tgsi/tgsi_scan.h             |    1 +
>  src/gallium/auxiliary/tgsi/tgsi_strings.c          |    3 +-
>  src/gallium/auxiliary/util/u_blitter.c             |    8 +--
>  src/gallium/auxiliary/vl/vl_compositor.c           |    4 +-
>  src/gallium/auxiliary/vl/vl_idct.c                 |    4 +-
>  src/gallium/auxiliary/vl/vl_matrix_filter.c        |    2 +-
>  src/gallium/auxiliary/vl/vl_mc.c                   |    2 +-
>  src/gallium/auxiliary/vl/vl_median_filter.c        |    2 +-
>  src/gallium/auxiliary/vl/vl_zscan.c                |    2 +-
>  src/gallium/docs/source/context.rst                |    8 ++-
>  src/gallium/drivers/freedreno/freedreno_state.c    |   12 ++--
>  src/gallium/drivers/galahad/glhd_context.c         |   20 ++++---
>  src/gallium/drivers/i915/i915_state.c              |   15 +++--
>  src/gallium/drivers/identity/id_context.c          |   22 +++----
>  src/gallium/drivers/ilo/ilo_state.c                |   16 +++--
>  src/gallium/drivers/llvmpipe/lp_context.h          |    7 ++-
>  src/gallium/drivers/llvmpipe/lp_screen.c           |    2 +
>  src/gallium/drivers/llvmpipe/lp_setup.c            |   29 +++++----
>  src/gallium/drivers/llvmpipe/lp_setup.h            |    4 +-
>  src/gallium/drivers/llvmpipe/lp_setup_context.h    |    8 ++-
>  src/gallium/drivers/llvmpipe/lp_setup_line.c       |   12 +++-
>  src/gallium/drivers/llvmpipe/lp_setup_point.c      |   12 ++--
>  src/gallium/drivers/llvmpipe/lp_setup_tri.c        |   17 ++++--
>  src/gallium/drivers/llvmpipe/lp_state_clip.c       |   25 +++++---
>  src/gallium/drivers/llvmpipe/lp_state_derived.c    |   20 +++++--
>  src/gallium/drivers/llvmpipe/lp_surface.c          |    4 +-
>  src/gallium/drivers/noop/noop_state.c              |   16 +++--
>  src/gallium/drivers/nv30/nv30_draw.c               |    2 +-
>  src/gallium/drivers/nv30/nv30_state.c              |   16 +++--
>  src/gallium/drivers/nv50/nv50_state.c              |   16 +++--
>  src/gallium/drivers/nvc0/nvc0_state.c              |   16 +++--
>  src/gallium/drivers/r300/r300_context.c            |    2 +-
>  src/gallium/drivers/r300/r300_state.c              |   18 +++---
>  src/gallium/drivers/r600/evergreen_state.c         |    6 +-
>  src/gallium/drivers/r600/r600_state.c              |    8 ++-
>  src/gallium/drivers/r600/r600_state_common.c       |   10 ++--
>  src/gallium/drivers/radeonsi/si_state.c            |   16 +++--
>  src/gallium/drivers/rbug/rbug_context.c            |   22 +++----
>  src/gallium/drivers/softpipe/sp_screen.c           |    2 +
>  src/gallium/drivers/softpipe/sp_state_clip.c       |   19 +++---
>  src/gallium/drivers/softpipe/sp_state_derived.c    |    2 +-
>  src/gallium/drivers/svga/svga_pipe_misc.c          |   20 ++++---
>  src/gallium/drivers/svga/svga_swtnl_state.c        |    2 +-
>  src/gallium/drivers/trace/tr_context.c             |   32 ++++++----
>  src/gallium/include/pipe/p_context.h               |   12 ++--
>  src/gallium/include/pipe/p_defines.h               |    3 +-
>  src/gallium/include/pipe/p_shader_tokens.h         |    3 +-
>  src/gallium/include/pipe/p_state.h                 |    1 +
>  src/gallium/tests/graw/fs-test.c                   |    2 +-
>  src/gallium/tests/graw/graw_util.h                 |    2 +-
>  src/gallium/tests/graw/gs-test.c                   |    2 +-
>  src/gallium/tests/graw/quad-sample.c               |    2 +-
>  src/gallium/tests/graw/shader-leak.c               |    2 +-
>  src/gallium/tests/graw/tri-gs.c                    |    2 +-
>  src/gallium/tests/graw/tri-instanced.c             |    2 +-
>  src/gallium/tests/graw/vs-test.c                   |    2 +-
>  src/mesa/state_tracker/st_atom_scissor.c           |    2 +-
>  src/mesa/state_tracker/st_draw_feedback.c          |    2 +-
>  71 files changed, 453 insertions(+), 239 deletions(-)
> 

There's no documentation of PIPE_CAP_MAX_VIEWPORTS but otherwise the
series looks good.

Roland


More information about the mesa-dev mailing list