summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'mesa_7_7_branch'Brian Paul2010-01-081-20/+30
|\ | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i965/brw_wm_emit.c
| * tgsi: fix SSE code emit for XPDBrian Paul2010-01-071-20/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | Rearrange things so that the writes to the dest registers happen after we've fetched/used all src registers. The problematic instruction was: XPD TEMP[2].xyz, TEMP[0], TEMP[2]; Note that the dst reg is also a src reg. This fixes bad shading with progs/glsl/bump.c since Eric's changes to the Mesa program optimizer in commit d6690ce15fb8c7c6abf1bc0d847c1d2da2c33904. The optimizer rearranges some registers so we occasionally wind up with something like the above.
* | tgsi: Cleanup dot-product opcodes in interpreter.Michal Krol2010-01-081-97/+130
| |
* | tgsi: add assertion to verify legal register fileBrian Paul2010-01-071-0/+1
| | | | | | | | | | | | This assertion fails with piglit glsl-vs-mov-after-deref test because we're double freeing the memory. It seems there's some confusion between what's placed in the hash table and what isn't.
* | tgsi: fix incorrectly placed braces, add more braces to be clearBrian Paul2010-01-071-2/+4
| |
* | tgsi: move register checking code before check_register_usage()Brian Paul2010-01-071-4/+4
| | | | | | | | | | | | check_register_usage() frees the scan_register *reg data so we were reading from freed memory. This fixes a valgrind error found with piglit's glsl-vs-mov-after-deref test.
* | gallium: Fix texture sampling with explicit LOD in softpipe.Michal Krol2010-01-073-14/+36
| |
* | gallium: Pass per-element (not per-quad) LOD bias values down to texture ↵Michal Krol2010-01-073-35/+30
| | | | | | | | sampler.
* | tgsi: Cleanup exec_tex().Michal Krol2010-01-071-49/+40
| |
* | tgsi: Simplify implementation of few interpreter's instructions.Michal Krol2010-01-051-384/+311
| |
* | tgsi: Use FREE() to release MALLOC-ed() memories in sanity.Michal Krol2010-01-051-4/+4
| |
* | tgsi: Fix bogus loop condition in sanity.Michal Krol2010-01-051-2/+2
| |
* | tgsi: Treat MOV source operand as FLOAT so modifiers works as expected.Michal Krol2010-01-051-1/+1
| |
* | tgsi: Store ADDR file in interpreter as an int.Michal Krol2010-01-051-18/+44
| |
* | tgsi: Remove dead micro_umod().Michal Krol2010-01-051-14/+0
| |
* | tgsi: Make interpreter aware of float and integer data types.Michal Krol2010-01-051-109/+133
| | | | | | | | | | | | | | Debug check for inf and nan only on float channels. Apply absolute and negate source operand modifiers based on opcode type.
* | gallium: Add UMOD TGSI opcode.Michal Krol2010-01-053-0/+16
| | | | | | | | Either that or have UDIV have two destination operands.
* | gallium: Add SWITCH, CASE, DEFAULT and ENDSWITCH opcodes to TGSI.Michal Krol2010-01-053-11/+179
| | | | | | | | | | | | | | Provide reference implementation of them in tgsi_exec. Note that BREAK opcode is overloaded and can be used to break out of either a loop or a switch-case statement.
* | tgsi/ureg: Improve immediate match & expand logic.Michal Krol2010-01-051-6/+10
| | | | | | | | Do not pollute immediates with unsuccessfull attempts to expand them.
* | tgsi: Support signed/unsigned integer immediate types.Michal Krol2010-01-055-47/+215
| |
* | tgsi: Cleanup interpreter code for other existing integer opcodes.Michal Krol2010-01-051-116/+66
| |
* | Remove TGSI_OPCODE_SHR, map existing usage to TGSI_OPCODE_ISHR.Michal Krol2010-01-051-1/+1
| | | | | | | | This is to differentiate it from its unsigned version, TGSI_OPCODE_USHR.
* | tgsi: Implement new integer opcodes.Michal Krol2010-01-053-225/+413
| | | | | | | | | | Update interpreter and ureg. Also, get rid of SHR -- it's actually an alias for ISHR.
* | tgsi: Fix assert.Vinson Lee2010-01-041-1/+1
| |
* | Fix testAlan Hourihane2010-01-041-2/+2
| |
* | tgsi: Add missing semantic name in text parser.Igor Oliveira2010-01-011-0/+1
| |
* | gallium: Generate a single library for auxiliaries with Make too.José Fonseca2010-01-011-22/+0
| |
* | scons: Aggregate all tiny libraries in a single library.José Fonseca2010-01-011-23/+0
| | | | | | | | | | Makes integration of gallium into out of tree components much easier. No pratical change for components in this tree,
* | Merge branch 'mesa_7_7_branch'Brian Paul2009-12-311-4/+4
|\| | | | | | | | | | | | | | | Conflicts: configs/darwin src/gallium/auxiliary/util/u_clear.h src/gallium/state_trackers/xorg/xorg_exa_tgsi.c src/mesa/drivers/dri/i965/brw_draw_upload.c
| * tgsi/ureg: Silence uninitialized variable warnings.Vinson Lee2009-12-271-4/+4
| |
* | tgsi: Don't dump parenthesis for negation.José Fonseca2009-12-261-3/+1
| | | | | | | | | | It doesn't seem necessary, and more importantly, tgsi_parse doesn't know how to read them.
* | gallium: remove TGSI_SEMANTIC_VERTICESZack Rusin2009-12-252-2/+0
| | | | | | | | | | | | it's a leftover from an early version of geometry shading support. geometry shaders now encode the primitive size in the PROPERTY token and don't need special input with their size.
* | util: put vertices_per_primitive function in its proper locationZack Rusin2009-12-252-5/+4
| |
* | draw/tgsi: fix geometry shader input/output swizzlingZack Rusin2009-12-251-1/+9
| |
* | tgsi: dump the indices correctly when dealing with 2d arraysZack Rusin2009-12-251-20/+50
| |
* | tgsi: fix property parsing/buildingZack Rusin2009-12-252-5/+7
| |
* | tgsi: add missing support for two dimensional arrays in various placesZack Rusin2009-12-253-176/+465
| | | | | | | | | | in particular asm text parsing and sanity checking were missing code to handle multi-dimensional arrays/geometry shaders
* | tgsi: make the tgsi assembly parser report line/column on errorZack Rusin2009-12-251-1/+14
| |
* | gallium: add geometry shader support to galliumZack Rusin2009-12-254-9/+59
| |
* | Merge branch 'gallium-edgeflags'Roland Scheidegger2009-12-223-8/+14
|\ \ | | | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_draw.c
| * | gallium: store edgflag info in tgsi_shader_infoRoland Scheidegger2009-12-182-7/+12
| | | | | | | | | | | | provides easier access for drivers which may base fallback decision on this
| * | gallium: edgeflags change fixesRoland Scheidegger2009-12-161-1/+2
| | | | | | | | | | | | | | | | | | use correct number of vertex inputs fix not running pipeline in case of edgeflags changes to mesa to tgsi translation still very broken
* | | tgsi: Implement BREAKC in interpreter.Michal Krol2009-12-221-0/+19
| | |
* | | tgsi/text: Don't use strncasecmp(), it breaks windows build.Michal Krol2009-12-151-2/+16
| | | | | | | | | | | | Also, break out of the for-loop when a matching property is found.
* | | tgsi: add properties and system value registerZack Rusin2009-12-1417-11/+447
| | | | | | | | | | | | | | | | | | adds support for properties to all parts of the tgsi framework, plus introduces a new register which will be used for system generated values.
* | | tgsi/ureg: Add ureg_DECL_gs_input().Michal Krol2009-12-142-2/+33
|/ / | | | | | | Allows one to declare GS input registers.
* | tgsi: fix some off-by-one errors in shader length, instruction lengthBrian Paul2009-12-083-5/+4
| | | | | | | | | | | | | | | | | | | | The ureg and/or tgsi-simplification work introduced some inconsistencies between the ureg and traditional TGSI construction code. Now the tgsi_instruction::NrTokens field is consistant and the tgsi_header::BodySize field isn't off by one. Fixes bug 25455.
* | tgsi/ureg: Fix ureg_emit_src().Michal Krol2009-12-031-3/+1
| |
* | tgsi: fix ureg emit after version token changeKeith Whitwell2009-12-011-1/+1
| |
* | Merge commit 'origin/tgsi-simplify-ext'Keith Whitwell2009-12-0117-1172/+517
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_vs.c