Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'mesa_7_7_branch' | Brian Paul | 2010-01-08 | 1 | -20/+30 |
|\ | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i965/brw_wm_emit.c | ||||
| * | tgsi: fix SSE code emit for XPD | Brian Paul | 2010-01-07 | 1 | -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 Krol | 2010-01-08 | 1 | -97/+130 |
| | | |||||
* | | tgsi: add assertion to verify legal register file | Brian Paul | 2010-01-07 | 1 | -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 clear | Brian Paul | 2010-01-07 | 1 | -2/+4 |
| | | |||||
* | | tgsi: move register checking code before check_register_usage() | Brian Paul | 2010-01-07 | 1 | -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 Krol | 2010-01-07 | 3 | -14/+36 |
| | | |||||
* | | gallium: Pass per-element (not per-quad) LOD bias values down to texture ↵ | Michal Krol | 2010-01-07 | 3 | -35/+30 |
| | | | | | | | | sampler. | ||||
* | | tgsi: Cleanup exec_tex(). | Michal Krol | 2010-01-07 | 1 | -49/+40 |
| | | |||||
* | | tgsi: Simplify implementation of few interpreter's instructions. | Michal Krol | 2010-01-05 | 1 | -384/+311 |
| | | |||||
* | | tgsi: Use FREE() to release MALLOC-ed() memories in sanity. | Michal Krol | 2010-01-05 | 1 | -4/+4 |
| | | |||||
* | | tgsi: Fix bogus loop condition in sanity. | Michal Krol | 2010-01-05 | 1 | -2/+2 |
| | | |||||
* | | tgsi: Treat MOV source operand as FLOAT so modifiers works as expected. | Michal Krol | 2010-01-05 | 1 | -1/+1 |
| | | |||||
* | | tgsi: Store ADDR file in interpreter as an int. | Michal Krol | 2010-01-05 | 1 | -18/+44 |
| | | |||||
* | | tgsi: Remove dead micro_umod(). | Michal Krol | 2010-01-05 | 1 | -14/+0 |
| | | |||||
* | | tgsi: Make interpreter aware of float and integer data types. | Michal Krol | 2010-01-05 | 1 | -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 Krol | 2010-01-05 | 3 | -0/+16 |
| | | | | | | | | Either that or have UDIV have two destination operands. | ||||
* | | gallium: Add SWITCH, CASE, DEFAULT and ENDSWITCH opcodes to TGSI. | Michal Krol | 2010-01-05 | 3 | -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 Krol | 2010-01-05 | 1 | -6/+10 |
| | | | | | | | | Do not pollute immediates with unsuccessfull attempts to expand them. | ||||
* | | tgsi: Support signed/unsigned integer immediate types. | Michal Krol | 2010-01-05 | 5 | -47/+215 |
| | | |||||
* | | tgsi: Cleanup interpreter code for other existing integer opcodes. | Michal Krol | 2010-01-05 | 1 | -116/+66 |
| | | |||||
* | | Remove TGSI_OPCODE_SHR, map existing usage to TGSI_OPCODE_ISHR. | Michal Krol | 2010-01-05 | 1 | -1/+1 |
| | | | | | | | | This is to differentiate it from its unsigned version, TGSI_OPCODE_USHR. | ||||
* | | tgsi: Implement new integer opcodes. | Michal Krol | 2010-01-05 | 3 | -225/+413 |
| | | | | | | | | | | Update interpreter and ureg. Also, get rid of SHR -- it's actually an alias for ISHR. | ||||
* | | tgsi: Fix assert. | Vinson Lee | 2010-01-04 | 1 | -1/+1 |
| | | |||||
* | | Fix test | Alan Hourihane | 2010-01-04 | 1 | -2/+2 |
| | | |||||
* | | tgsi: Add missing semantic name in text parser. | Igor Oliveira | 2010-01-01 | 1 | -0/+1 |
| | | |||||
* | | gallium: Generate a single library for auxiliaries with Make too. | José Fonseca | 2010-01-01 | 1 | -22/+0 |
| | | |||||
* | | scons: Aggregate all tiny libraries in a single library. | José Fonseca | 2010-01-01 | 1 | -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 Paul | 2009-12-31 | 1 | -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 Lee | 2009-12-27 | 1 | -4/+4 |
| | | |||||
* | | tgsi: Don't dump parenthesis for negation. | José Fonseca | 2009-12-26 | 1 | -3/+1 |
| | | | | | | | | | | It doesn't seem necessary, and more importantly, tgsi_parse doesn't know how to read them. | ||||
* | | gallium: remove TGSI_SEMANTIC_VERTICES | Zack Rusin | 2009-12-25 | 2 | -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 location | Zack Rusin | 2009-12-25 | 2 | -5/+4 |
| | | |||||
* | | draw/tgsi: fix geometry shader input/output swizzling | Zack Rusin | 2009-12-25 | 1 | -1/+9 |
| | | |||||
* | | tgsi: dump the indices correctly when dealing with 2d arrays | Zack Rusin | 2009-12-25 | 1 | -20/+50 |
| | | |||||
* | | tgsi: fix property parsing/building | Zack Rusin | 2009-12-25 | 2 | -5/+7 |
| | | |||||
* | | tgsi: add missing support for two dimensional arrays in various places | Zack Rusin | 2009-12-25 | 3 | -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 error | Zack Rusin | 2009-12-25 | 1 | -1/+14 |
| | | |||||
* | | gallium: add geometry shader support to gallium | Zack Rusin | 2009-12-25 | 4 | -9/+59 |
| | | |||||
* | | Merge branch 'gallium-edgeflags' | Roland Scheidegger | 2009-12-22 | 3 | -8/+14 |
|\ \ | | | | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_draw.c | ||||
| * | | gallium: store edgflag info in tgsi_shader_info | Roland Scheidegger | 2009-12-18 | 2 | -7/+12 |
| | | | | | | | | | | | | provides easier access for drivers which may base fallback decision on this | ||||
| * | | gallium: edgeflags change fixes | Roland Scheidegger | 2009-12-16 | 1 | -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 Krol | 2009-12-22 | 1 | -0/+19 |
| | | | |||||
* | | | tgsi/text: Don't use strncasecmp(), it breaks windows build. | Michal Krol | 2009-12-15 | 1 | -2/+16 |
| | | | | | | | | | | | | Also, break out of the for-loop when a matching property is found. | ||||
* | | | tgsi: add properties and system value register | Zack Rusin | 2009-12-14 | 17 | -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 Krol | 2009-12-14 | 2 | -2/+33 |
|/ / | | | | | | | Allows one to declare GS input registers. | ||||
* | | tgsi: fix some off-by-one errors in shader length, instruction length | Brian Paul | 2009-12-08 | 3 | -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 Krol | 2009-12-03 | 1 | -3/+1 |
| | | |||||
* | | tgsi: fix ureg emit after version token change | Keith Whitwell | 2009-12-01 | 1 | -1/+1 |
| | | |||||
* | | Merge commit 'origin/tgsi-simplify-ext' | Keith Whitwell | 2009-12-01 | 17 | -1172/+517 |
|\ \ | | | | | | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_vs.c |