summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/tgsi
AgeCommit message (Collapse)Author
2007-09-27Fix some compiler warnings with -pedanticKeith Whitwell
2007-09-27Enable codegen based whenever __i386__ is defined.Keith Whitwell
2007-09-25Translate mesa vertex/fragment programs to TGSI programs at same time to do ↵Brian
proper linking. Previously, programs were translated independently during validation. The problem is the translation to TGSI format, which packs shader input/outputs into continuous slots, depends on which vertex program is being paired with which fragment shader. Now, we look at the outputs of the vertex program in conjunction with the inputs of the fragment shader to be sure the attributes match up correctly. The new 'linked_program_pair' class keeps track of the associations between vertex and fragment shaders. It's also the place where the TGSI tokens are kept since they're no longer per-program state but per-linkage. Still a few loose ends, like implementing some kind of hash/lookup table for linked_program_pairs.
2007-09-24Enable SSE2 for FS.michal
2007-09-21added PSIZEBrian
2007-09-21Fix up some point size breakage. Start on fogcoord too.Brian
2007-09-21remove debug printfsBrian
2007-09-21remove SEMANTIC_TEXCOORDBrian
2007-09-21Get rid of TGSI_SEMANTIC_TEXCOORD and just use TGSI_SEMANTIC_GENERIC.Brian
2007-09-21minor renamingBrian
2007-09-21pass vs output semantics to tgsi_mesa_compile_vp_program() to generate ↵Brian
output DECs
2007-09-21Pass vertex program input semantics into tgsi_mesa_compile_vp_program() to ↵Brian
produce DCLs.
2007-09-20Clean-up the TGSI_SEMANTIC tokens, introduce semantic indexes.Brian
Still need to produce decl instructions for vertex shaders...
2007-09-20remove old/used codeBrian
2007-09-20remove lots of dead code related to program input/output mappingBrian
2007-09-20obsoleteBrian
2007-09-20remove #includes of tgsi_attribs.hBrian
2007-09-20checkpoint: TGSI_ATTRIB_x tokens no longer usedBrian
2007-09-19Checkpoint: replacement of TGSI_ATTRIB_x tokens with input/output semantics.Brian
TGSI_ATTRIB_x tokens still present and used in a few places. Expanded set of TGSI_SEMANTIC_x tokens for describing the meaning of inputs/outputs. These tokens are in a crude state ATM. Lots of #if 0 / disabled code to be removed yet, etc... Softpipe and i915 drivers should be in working condition but not heavily tested.
2007-09-18Checkpoint: rework shader input/output register mapping.Brian
This is a step toward removing TGSI_ATTRIB_ tokens. Basically, when translating Mesa programs to TGSI programs, pass in input and output register re-maps, plus interpolation info. There's some known breakage (cubemap.c) so more to be done...
2007-09-18Fix some issues with perspective-corrected interpolation.Brian
In mesa_to_tgsi.c, use TGSI_INTERPOLATE_PERSPECTIVE by default (to match post-transform vertex info convention). More to be done there... In sp_quad_fs.c, interpolate W in addition to Z. This fixes the divide by zero happening in perspective_interpolation() tgsi_exec.c As it was, we were only getting perspective correction of texture coords used by the TGSI_TEX instruction since it does a homogeneous divide. Other coords/varyings were incorrect.
2007-08-29Add p_compiler.h.michal
2007-08-29Break GL dependencies.michal
2007-08-29Break GL dependencies.michal
2007-08-29Break GL dependencies.michal
2007-08-29Break GL dependencies.michal
2007-08-24Fix fragment program color output mapping (0=depth, 1=color)Brian
2007-08-24Hook-up SSE2 to VS.michal
2007-08-24Indent. Remove GL dependencies. Simplify. Add rtasm instructions.michal
2007-08-24Add tgsi_sse2.michal
2007-08-24Fixup include paths after renameKeith Whitwell
2007-08-24Rename tgsi "core" directoryKeith Whitwell
2007-08-23Vertex shader outputs are now tightly packed into the output slots.Brian
Fix softpipe vertex attribute setup. Also, update vs constants when the projection matrix changes (fixes samples/prim.c)
2007-08-23Checkpoint: new vertex/fragment attribute namingBrian
Replace VF_ATTRIB_x with TGSI_ATTRIB_x When converting mesa programs to TGSI programs, also convert the InputsRead and OutputsWritten to a mask of TGSI_ATTRIB_ bits. Still need to do conversion for vertex programs...
2007-08-23TGSI_ATTRIB_ tokensBrian
2007-08-23define new TGSI_ATTRIB_ tokens for program inputs/outputs, plus translation ↵Brian
functions
2007-08-23For the time being, interpolate Z in shade_quad() rather in the shader.Brian
This was causing trouble for the i915 driver.
2007-08-22First pass on tgsi deco.michal
2007-08-22Include headers.michal
2007-08-22New file.michal
2007-08-22New file.michal
2007-08-21commentsBrian
2007-08-16Cosmetic changes.michal
2007-08-16disable Z value scaling - it's done in sp_quad_depth_test.cBrian
2007-08-16Copy fragment z if the fragment shader does not write depth on its own.`michal
2007-08-15Add UsageMask to DECLARATION in TGSI.michal
Interpolate FS attributes in the shader. Do not copy WPOS in FS.
2007-08-15Add declaration_semantic token to TGSI.michal
Cosmetic changes, GLuint -> unsigned. Preserve mesa gl_fragment_program DEPTH and COLOR semantics.
2007-08-15Declare fragment shader output registers.michal
2007-08-14Continue reducing dependencies on core mesa include files.Keith Whitwell
Mainly down to the support for legacy TNL processing now.
2007-08-14Implement texture cache with multiple, direct-mapped entries.Brian