summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/tgsi/tgsi_dump.c
AgeCommit message (Collapse)Author
2009-11-02tgsi: Update for gallium interface changes.Michal Krol
2009-10-23gallium: remove the swizzling parts of ExtSwizzleKeith Whitwell
These haven't been used by the mesa state tracker since the conversion to tgsi_ureg, and it seems that none of the other state trackers are using it either. This helps simplify one of the biggest suprises when starting off with TGSI shaders.
2009-09-03aux/tgsi: pull back ureg work from 0.1 branchKeith Whitwell
Manual merge of ureg changes on the branch. Too much unrelated stuff for a proper merge.
2009-08-20tgsi: when printing/dumping programs indent loops and conditionalsBrian Paul
2009-07-31Rename TGSI LOOP instruction to better match theri usage.Michal Krol
The LOOP/ENDLOOP pair is renamed to BGNFOR/ENDFOR as its behaviour is similar to a C language for-loop. The BGNLOOP2/ENDLOOP2 pair is renamed to BGNLOOP/ENDLOOP as now there is no name collision.
2009-07-30tgsi: Declare a LOOP register.Michal Krol
The only valid usage for LOOP/ENDLOOP instructions is LOOP[0] as a destination register. The only valid usage for the remaining instructions is LOOP[0].x as an indirect register.
2009-07-22gallium: simplify tgsi_full_immediate structKeith Whitwell
Remove the need to have a pointer in this struct by just including the immediate data inline. Having a pointer in the struct introduces complications like needing to alloc/free the data pointed to, uncertainty about who owns the data, etc. There doesn't seem to be a need for it, and it is unlikely to make much difference plus or minus to performance. Added some asserts as we now will trip up on immediates with more than four elements. There were actually already quite a few such asserts, but the >4 case could be used in the future to specify indexable immediate ranges, such as lookup tables.
2009-07-10tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACEBrian Paul
Fixes TGSI dump output when front/back-face register is declared. Also, add some assertions to make sure the semantic/interpolate string arrays have as many elements as there are tokens in the p_shader_tokens.h file. That should catch problems like this in the future.
2009-07-10tgis: implement indirect addressing for destination registersBrian Paul
Includes the TGSI interpreter, but not the SSE/PPC/etc code generators.
2009-06-26tgsi: correct handling of return value from util_vsnprintfKeith Whitwell
We were failing to deal with: - vsnprintf returns negative value on error. - vsnprintf returns the number of chars that *would* have been written on truncation.
2009-02-27tgsi: don't dump interpolation info except for fragment shader inputsKeith Whitwell
Don't print the meaningless and confusing CONSTANT interpolation attribute after everything else.
2009-02-18util: Move p_debug.h into util module.José Fonseca
The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible.
2009-02-10tgsi: Fix build -- rename Size to NrTokens.Michal Krol
2009-01-06tgsi: add tgsi_declaration fields for centroid sampling, invariant optimizationBrian Paul
(cherry picked from commit 434e255eae90b0f3d836d452b7d3b0c5aadf78b8)
2008-12-23tgsi: Dump indirect register swizzle.Michal Krol
2008-09-18tgsi: Make tgsi dumps look more like mesa shader dumps.Jakob Bornecrantz
2008-09-05tgsi: Refactor tgsi_dump to avoid using string buffers when dumping.José Fonseca
This fixes a stack overflow when dumping shaders. It ended up being pretty much as the original code Michal had before, before I went on a cleanup rampage on it and took things that ended up needing...
2008-09-02gallium: increase string buffer size to 16000 to avoid truncated output of ↵Brian Paul
long shaders
2008-08-19tgsi: Workaround debug output buffer size limitations.Michal Krol
2008-08-13tgsi: Use tgsi_info to dump opcode names.Michal Krol
2008-08-09tgsi: Dump shaders to a string too.José Fonseca
Again.
2008-08-04tgsi: Put a newline after IMM.Michal Krol
2008-07-30tgsi: Insert newlines after the statements, instead of before.José Fonseca
Prevents shader dumps from getting concatenated with the next debug message.
2008-07-28Merge tgsi/exec and tgsi/util directories.José Fonseca