summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* r300/vertprog: Refactor wpos rewrite using rc_programNicolai Hähnle2009-07-273-61/+51
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/vertprog: Refactor fog_as_texcoord to use rc_programNicolai Hähnle2009-07-274-36/+34
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/vertprog: Refactor addArtificialOutputs to use rc_programNicolai Hähnle2009-07-275-78/+69
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/fragprog: Refactor wpos rewrite to use rc_programNicolai Hähnle2009-07-273-84/+80
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/compiler: Refactor fragment program fog rewrite to use rc_programNicolai Hähnle2009-07-273-25/+44
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/compiler: Refactor rewrite_depth_out to use rc_programNicolai Hähnle2009-07-271-5/+7
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/compiler: Refactor local transforms to use rc_programNicolai Hähnle2009-07-2714-646/+664
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Allow compiler to add constants in a cleaner wayNicolai Hähnle2009-07-2716-145/+193
| | | | | | | | Adding constants is used in a number of non-native instruction rewrites, and it required us to keep copies of modified gl_programs around. This is a first step towards ending this. Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/compiler: Refactor nqssadce to use rc_programNicolai Hähnle2009-07-279-116/+114
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/compiler: Refactor for rc_program usageNicolai Hähnle2009-07-271-29/+30
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/compiler: Add rc_print_programNicolai Hähnle2009-07-274-1/+34
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/compiler: Lay groundwork for better error handlingNicolai Hähnle2009-07-2712-72/+113
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Remove dependency on GLcontext from compilerNicolai Hähnle2009-07-273-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 handlingNicolai Hähnle2009-07-274-188/+155
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/vertprog: Massively reduce code duplicationNicolai Hähnle2009-07-271-341/+42
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/vertprog: Use generic transforms and throw away unneeded codeNicolai Hähnle2009-07-273-435/+59
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Move vertex program compilation to compilerNicolai Hähnle2009-07-2712-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 structureNicolai Hähnle2009-07-274-24/+32
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Remove faux lazy translation of vertex programsNicolai Hähnle2009-07-275-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 dependenciesNicolai Hähnle2009-07-274-122/+154
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Introduce rc_program and use it in radeon_pairNicolai Hähnle2009-07-2710-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 tasksNicolai Hähnle2009-07-279-31/+82
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Remove some unnecessary includesNicolai Hähnle2009-07-271-6/+0
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/compiler: Compile the compiler seperately into an archiveNicolai Hähnle2009-07-272-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 driverNicolai Hähnle2009-07-279-23/+23
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Remove some dependencies on additional fragment program copiesNicolai Hähnle2009-07-277-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_compilerNicolai Hähnle2009-07-272-2/+0
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Remove GLcontext requirement from radeonLocalTransformNicolai Hähnle2009-07-273-6/+2
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Remove unused enumsNicolai Hähnle2009-07-271-6/+0
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Remove GLcontext requirement from radeon_nqssadceNicolai Hähnle2009-07-274-12/+11
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Remove GLcontext requirement from radeon_program_pairNicolai Hähnle2009-07-274-9/+7
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/program_pair: Introduce driver-specific texture instruction structureNicolai Hähnle2009-07-274-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 temporarilyNicolai Hähnle2009-07-274-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 structureNicolai Hähnle2009-07-2727-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_namePauli Nieminen2009-07-271-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 timePatrice Mandin2009-07-271-28/+80
|
* r600: fix texturesAlex Deucher2009-07-271-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 0Alex Deucher2009-07-271-0/+3
| | | | fixes engine demo
* r600: set VGT NUM_INSTANCES as part of the draw commandAlex Deucher2009-07-274-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_OFFSETAlex Deucher2009-07-271-1/+1
| | | | noticed by vehemens on IRC.
* r600: switch vtx resource setup to use SETfield macrosAlex Deucher2009-07-271-9/+13
| | | | For consistency
* r600: switch tex code to use SETfield macrosAlex Deucher2009-07-272-210/+332
| | | | for consistency with the rest of the code.
* r300g: Fix two trivial texture size issues.Corbin Simpson2009-07-261-2/+2
| | | | Next thing to fix: progs/tests/mipgen.
* radeon-gallium: If BO allocation fails, return NULL.Corbin Simpson2009-07-261-0/+1
|
* r300g: Add some debugging, correct little bits of math in texture setup.Corbin Simpson2009-07-261-3/+12
| | | | Simple stuff still works, but not sure about some of the more complex things.
* nouveau: only swizzle square textures for copyPatrice Mandin2009-07-261-4/+11
|
* nouveau: Take into account destination position for copy_swizzle, need to ↵Patrice Mandin2009-07-261-2/+12
| | | | split copy a bit more
* nouveau: Recursively swizzle an NPOT sized copyPatrice Mandin2009-07-261-5/+21
|
* nouveau: use nv04_surface_copy_swizzle only for POT sizesPatrice Mandin2009-07-241-1/+4
|
* radeon-gallium: remove old getparam ioctlJoakim Sindholt2009-07-241-13/+3
|