Mesa (master): gallium: simplify tgsi tokens further

Keith Whitwell keithw at kemper.freedesktop.org
Tue Dec 1 06:43:34 PST 2009


Module: Mesa
Branch: master
Commit: ba1ca28cc62fed71c77902b95ae4ed36c6bf25f8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ba1ca28cc62fed71c77902b95ae4ed36c6bf25f8

Author: Keith Whitwell <keithw at vmware.com>
Date:   Tue Nov 24 13:41:03 2009 +0000

gallium: simplify tgsi tokens further

Drop anonymous 'Extended' fields, have every optional token named
explicitly in its parent.  Eg. there is now an Instruction.Label flag,
etc.

Drop destination modifiers and other functionality which cannot be
generated by tgsi_ureg.c, which is now the primary way of creating
shaders.

Pull source modifiers into the source register token, drop the second
negate flag.  The source register token is now full - if we need to
expand it, probably best to move all of the modifiers to a new token
and have a single flag for it.

---

 src/gallium/auxiliary/draw/draw_pipe_aaline.c   |    3 +-
 src/gallium/auxiliary/draw/draw_pipe_pstipple.c |    3 +-
 src/gallium/auxiliary/tgsi/tgsi_build.c         |  271 +++++------------------
 src/gallium/auxiliary/tgsi/tgsi_build.h         |   61 ++----
 src/gallium/auxiliary/tgsi/tgsi_dump.c          |   40 +---
 src/gallium/auxiliary/tgsi/tgsi_exec.c          |   10 +-
 src/gallium/auxiliary/tgsi/tgsi_parse.c         |   83 +------
 src/gallium/auxiliary/tgsi/tgsi_parse.h         |    6 +-
 src/gallium/auxiliary/tgsi/tgsi_scan.c          |    7 +-
 src/gallium/auxiliary/tgsi/tgsi_sse2.c          |    3 +-
 src/gallium/auxiliary/tgsi/tgsi_text.c          |  155 +------------
 src/gallium/auxiliary/tgsi/tgsi_ureg.c          |   34 +--
 src/gallium/auxiliary/tgsi/tgsi_util.c          |   30 +--
 src/gallium/auxiliary/vl/vl_shader_build.c      |    3 +-
 src/gallium/drivers/i915/i915_fpc_translate.c   |    2 +-
 src/gallium/drivers/svga/svga_tgsi_insn.c       |   12 +-
 src/gallium/include/pipe/p_shader_tokens.h      |  158 ++------------
 17 files changed, 160 insertions(+), 721 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=ba1ca28cc62fed71c77902b95ae4ed36c6bf25f8


More information about the mesa-commit mailing list