Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | r300/compiler: Lay groundwork for better error handling | Nicolai Hähnle | 2009-07-27 | 12 | -72/+113 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Remove dependency on GLcontext from compiler | Nicolai Hähnle | 2009-07-27 | 3 | -37/+98 |
| | | | | | | | Unfortunately, this does cause some code duplication (which we can hopefully eliminate eventually). Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300/vertprog: Cleanup source conflict handling | Nicolai Hähnle | 2009-07-27 | 4 | -188/+155 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300/vertprog: Massively reduce code duplication | Nicolai Hähnle | 2009-07-27 | 1 | -341/+42 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300/vertprog: Use generic transforms and throw away unneeded code | Nicolai Hähnle | 2009-07-27 | 3 | -435/+59 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Move vertex program compilation to compiler | Nicolai Hähnle | 2009-07-27 | 12 | -1596/+1625 |
| | | | | | | | This is just the first step of refactoring. The separation is not yet clean enough with this commit. Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Cleanup vertex_program structure | Nicolai Hähnle | 2009-07-27 | 4 | -24/+32 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Remove faux lazy translation of vertex programs | Nicolai Hähnle | 2009-07-27 | 5 | -13/+7 |
| | | | | | | | De facto, vertex programs were translated immediately in all situations, so let's just stop pretending that we do lazy translation. Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Reduce include dependencies | Nicolai Hähnle | 2009-07-27 | 4 | -122/+154 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Introduce rc_program and use it in radeon_pair | Nicolai Hähnle | 2009-07-27 | 10 | -13/+111 |
| | | | | | | | The goal is to convert both Mesa and TGSI programs into an intermediate format that happens to be convenient for us. Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Add radeon_compiler as a base for compilation-related tasks | Nicolai Hähnle | 2009-07-27 | 9 | -31/+82 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Remove some unnecessary includes | Nicolai Hähnle | 2009-07-27 | 1 | -6/+0 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300/compiler: Compile the compiler seperately into an archive | Nicolai Hähnle | 2009-07-27 | 2 | -14/+79 |
| | | | | | | | This is all part of untangling the compiler from the classic driver, so that it may be used in Gallium without depending on Mesa stuff if possible Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Further reduce dependency between compiler and classic driver | Nicolai Hähnle | 2009-07-27 | 9 | -23/+23 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Remove some dependencies on additional fragment program copies | Nicolai Hähnle | 2009-07-27 | 7 | -27/+24 |
| | | | | | | | The copy is still needed because some program transforms add state variables or constants. Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Remove GLcontext from r300_fragment_program_compiler | Nicolai Hähnle | 2009-07-27 | 2 | -2/+0 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Remove GLcontext requirement from radeonLocalTransform | Nicolai Hähnle | 2009-07-27 | 3 | -6/+2 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Remove unused enums | Nicolai Hähnle | 2009-07-27 | 1 | -6/+0 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Remove GLcontext requirement from radeon_nqssadce | Nicolai Hähnle | 2009-07-27 | 4 | -12/+11 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Remove GLcontext requirement from radeon_program_pair | Nicolai Hähnle | 2009-07-27 | 4 | -9/+7 |
| | | | | Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300/program_pair: Introduce driver-specific texture instruction structure | Nicolai Hähnle | 2009-07-27 | 4 | -22/+61 |
| | | | | | | | This is to prepare more experimentation and possible internal changes in the compiler. Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300/program_pair: Dynamically allocate instructions temporarily | Nicolai Hähnle | 2009-07-27 | 4 | -105/+237 |
| | | | | | | | In preparation of using TGSI, where we cannot easily predict the number of instructions. Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | r300: Detangle fragment program compiler from driver-specific structure | Nicolai Hähnle | 2009-07-27 | 27 | -577/+669 |
| | | | | | | | | This is in preparation of sharing the fragment program compiler with Gallium: Compiler code is moved into its own directory and modified so that it no longer depends on driver structures. Signed-off-by: Nicolai Hähnle <[email protected]> | ||||
* | radeon: Add r6xx/r7xx chip family to get_chip_family_name | Pauli Nieminen | 2009-07-27 | 1 | -0/+11 |
| | | | | | | This fixes problem that glxinfo was reporting r600+ cards as unknown. Signed-off-by: Pauli Nieminen <[email protected]> | ||||
* | nouveau: swizzle a single row or column, doing it one pixel at a time | Patrice Mandin | 2009-07-27 | 1 | -28/+80 |
| | |||||
* | r600: fix textures | Alex Deucher | 2009-07-27 | 1 | -1/+1 |
| | | | | | | We weren't allocating enough gprs for the fragment shader in some cases. There are likely other issues that still need to be sorted out for textures, but at least they now work. | ||||
* | r600: don't draw when num indices is 0 | Alex Deucher | 2009-07-27 | 1 | -0/+3 |
| | | | | fixes engine demo | ||||
* | r600: set VGT NUM_INSTANCES as part of the draw command | Alex Deucher | 2009-07-27 | 4 | -17/+18 |
| | | | | | | set VGT NUM_INSTANCES as part of the draw command rather than as state as recommended by the pm4 guide. Also, use the NUM_INSTANCES packet. | ||||
* | r600: Use R600_SCRATCH_REG_OFFSET rather than RADEON_SCRATCH_REG_OFFSET | Alex Deucher | 2009-07-27 | 1 | -1/+1 |
| | | | | noticed by vehemens on IRC. | ||||
* | r600: switch vtx resource setup to use SETfield macros | Alex Deucher | 2009-07-27 | 1 | -9/+13 |
| | | | | For consistency | ||||
* | r600: switch tex code to use SETfield macros | Alex Deucher | 2009-07-27 | 2 | -210/+332 |
| | | | | for consistency with the rest of the code. | ||||
* | r300g: Fix two trivial texture size issues. | Corbin Simpson | 2009-07-26 | 1 | -2/+2 |
| | | | | Next thing to fix: progs/tests/mipgen. | ||||
* | radeon-gallium: If BO allocation fails, return NULL. | Corbin Simpson | 2009-07-26 | 1 | -0/+1 |
| | |||||
* | r300g: Add some debugging, correct little bits of math in texture setup. | Corbin Simpson | 2009-07-26 | 1 | -3/+12 |
| | | | | Simple stuff still works, but not sure about some of the more complex things. | ||||
* | nouveau: only swizzle square textures for copy | Patrice Mandin | 2009-07-26 | 1 | -4/+11 |
| | |||||
* | nouveau: Take into account destination position for copy_swizzle, need to ↵ | Patrice Mandin | 2009-07-26 | 1 | -2/+12 |
| | | | | split copy a bit more | ||||
* | nouveau: Recursively swizzle an NPOT sized copy | Patrice Mandin | 2009-07-26 | 1 | -5/+21 |
| | |||||
* | nouveau: use nv04_surface_copy_swizzle only for POT sizes | Patrice Mandin | 2009-07-24 | 1 | -1/+4 |
| | |||||
* | radeon-gallium: remove old getparam ioctl | Joakim Sindholt | 2009-07-24 | 1 | -13/+3 |
| | |||||
* | r600: fix segfault in morph3d | Alex Deucher | 2009-07-23 | 1 | -17/+17 |
| | | | | | These attributes still need work, but it shouldn't hurt to enable them. | ||||
* | draw: correct address for machine struct in llvm path | Keith Whitwell | 2009-07-23 | 1 | -1/+1 |
| | | | | This changed after a recent commit. | ||||
* | gallivm: updates for TGSI changes | Keith Whitwell | 2009-07-23 | 2 | -22/+18 |
| | | | | | make linux-llvm succeeds, but doesn't seem to be working, at least with llvm 2.5 | ||||
* | r300g, radeon-gallium: Fix API, cleanup. | Corbin Simpson | 2009-07-23 | 6 | -26/+24 |
| | | | | Something called "validate" should return FALSE on failure, not TRUE. | ||||
* | radeon-gallium: Build fixes wrt changed libdrm_radeon space check API | Nicolai Hähnle | 2009-07-23 | 4 | -52/+16 |
| | | | | Had to be hacked up a bit to apply to master. Sorry 'bout that. :3 | ||||
* | r300g: PIPE_CAP_BLEND_EQUATION_SEPARATE. | Corbin Simpson | 2009-07-23 | 1 | -0/+2 |
| | |||||
* | gallium: clean up opcode definitions | Keith Whitwell | 2009-07-23 | 1 | -145/+11 |
| | | | | | | 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. | ||||
* | gallium: remove deprecated TGSI opcodes | Keith Whitwell | 2009-07-23 | 6 | -80/+7 |
| | | | | | | 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. | ||||
* | r600: Remove CRLF line endings. | José Fonseca | 2009-07-23 | 1 | -1/+1 |
| | |||||
* | util: Add support for Mac OS. | Vinson Lee | 2009-07-23 | 2 | -9/+9 |
| | |||||
* | r300g: Actually mark shaders as translated/untranslated. | Corbin Simpson | 2009-07-23 | 3 | -2/+8 |
| | | | | | | Also trust that Gallium will not give us TGSI that miscounts shader consts. This creates a 20x speedup on glxgears, from 8 FPS to 160 FPS. |