summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe/p_shader_tokens.h
AgeCommit message (Collapse)Author
2009-09-01tgsi: remove redundant CND0 opcodeKeith Whitwell
Can be implemented with CMP src2, src1, src0
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-23gallium: clean up opcode definitionsKeith Whitwell
Remove commented-out opcodes. Remove information about API mappings to opcodes, but add a reference to tgsi-instruction-set.txt where that information is better presented.
2009-07-23gallium: remove deprecated TGSI opcodesKeith Whitwell
Various opcodes which can be implemented trivially with other TGSI opcodes, such as matrix multiplication and negation. These were not used by any state tracker or implemented by any of the drivers.
2009-07-22gallium: remove multiple aliases for TGSI opcodesKeith Whitwell
This is a source of ongoing confusion. TGSI has multiple names for opcodes where the same semantics originate in multiple shader APIs. For instance, TGSI includes both Mesa/GLSL and DX/SM30 names for opcodes with the same semantics, but aliases those names to the same underlying opcode number. This makes it very difficult to visually inspect two sets of opcodes (eg in state tracker & driver) and check if they implement the same functionality. This patch arbitarily rips out the versions of the opcodes not currently favoured by the mesa state tracker and leaves us with a single name for each distinct operation.
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-01gallium: fix the front face semanticsZack Rusin
mesa allocates both frontface and pointcoord registers within the fog coordinate register, by using swizzling. to make it cleaner and easier for drivers we want each of them in its own register. so when doing compilation from the mesa IR to tgsi allocate new registers for both and add new semantics to the respective declarations.
2009-03-10tgsi: Consider INDEX, NEGATE, MULTIPLYMATRIX opcodes for removal.Michal Krol
2009-02-10gallium: Rename Size member of TGSI token to NrTokens.Michal Krol
Driver writers often got confused and assumed Size to be the number of immediate values in Immediate declaration.
2008-11-24tgsi: doxygen commentsBrian Paul
2008-11-24tgsi: add tgsi_declaration fields for centroid sampling, invariant optimizationBrian Paul
2008-09-19gallium: Fix doxygen comments.José Fonseca
2008-08-19gallium: Add note about vs_2_0 EXPP mapping.Michal Krol
2008-08-18gallium: Remove TGSI_CC_UN.Michal Krol
2008-08-13gallium: Make a note that OPCODE_KIL is a conditional kill.Michal Krol
Map OPCODE_TEXKILL to OPCODE_KIL.
2008-07-13tgsi: Parse destination operand modulate modifier.Michal Krol
2008-07-13tgsi: Parse texture instructions correctly.Michal Krol
2008-07-13tgsi: Remove depricated ATTRIB interpolate mode.Michal Krol
2008-06-02gallium: The SWZ opcode no longer aliases MOV.Michal Krol
Also, when the extended swizzle token is used, the simple swizzle and negate are set to X,Y,Z,W and FALSE, respectively.
2008-05-31gallium: Refactor TGSI decalaration tokens.Michal Krol
* Incorporate declaration_interpolation into declaration itself. * Remove declaration_mask -- always use declaration_range.
2008-03-13tgsi: Drop pre-ps_2_0 opcodes.Michal Krol
2008-03-13tgsi: Remove OPCODE_TEXCOORD, OPCODE_TEXCRD aliases.Michal Krol
2008-03-12tgsi: Remove ExtDivide field from existence. Implement OPCODE_TXP.Michal Krol
2008-03-12tgsi: Introduce OPCODE_TXP. Depricate ExdDivide field.Michal Krol
2008-03-11tgsi: Map OPCODE_TEXKILL to OPCODE_KILP.Michal Krol
2008-03-01start implementing start of bultinsZack Rusin
2008-02-27gallium: Remove // comments.José Fonseca
2008-02-23gallium: added TGSI_FILE_COUNTBrian
2008-02-21[PATCH] gallium: include p_compiler.h for boolean defnKeith Whitwell
2008-02-15Code reorganization: move files into their places.José Fonseca
This is in a separate commit to ensure renames are properly preserved.