aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/r300_fragprog_common.c
Commit message (Collapse)AuthorAgeFilesLines
* r300c, r600c: Remove these DRI drivers.Eric Anholt2011-10-281-310/+0
| | | | | | | | | They have been superseded by the gallium equivalents. Acked-by: Michel Dänzer <[email protected]> Acked-by: Alex Deucher <[email protected]> Acked-by: Dave Airlie <[email protected]> Acked-by: Corbin Simpson <[email protected]>
* mesa: move sampler state into new gl_sampler_object typeBrian Paul2011-04-101-2/+2
| | | | | | gl_texture_object contains an instance of this type for the regular texture object sampling state. glGenSamplers() generates new instances of gl_sampler_object which can override that state with glBindSampler().
* r300c: fix build since last r300g commitDave Airlie2011-04-051-1/+1
|
* r300c: Unbreak after R4xx support was added to r300/compiler.Michel Dänzer2011-02-031-0/+1
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-2/+2
|
* r300g,r300c: memset the compiler struct to zerosMarek Olšák2010-09-051-0/+1
| | | | This should fix bogus reports "Too many temporaries." and maybe some others.
* r300g: add a new debug option which disables compiler optimizationsMarek Olšák2010-09-041-0/+1
| | | | | | | | | | | | Those are: - dead-code elimination - constant folding - peephole (mainly copy propagation) - register allocation There are some bugs which I need to track down. Also fix up the descriptions of all the debug options.
* r300/compiler: make optimizations not use 0.5 swizzles in vertex shadersMarek Olšák2010-09-041-0/+1
|
* r300/compiler: add new compiler parameter max_constantsMarek Olšák2010-09-041-0/+1
|
* r300/compiler: add new compiler parameter max_alu_instsMarek Olšák2010-09-041-0/+1
|
* r300: Remove unnecessary header.Vinson Lee2010-08-251-1/+0
|
* mesa: rename src/mesa/shader/ to src/mesa/program/Brian Paul2010-06-101-2/+2
|
* r300/compiler: move hardware caps to the radeon_compiler base structMarek Olšák2010-05-261-3/+3
| | | | Needed for vertex shaders too.
* r300/compiler: shorten RC_*SWIZZLE* expressionsMarek Olšák2010-05-081-1/+1
|
* r300/compiler: generalize depth texture mode to support arbitrary swizzlesMarek Olšák2010-05-081-5/+5
|
* r300/compiler: make ARB_shadow_ambient optionalMarek Olšák2010-04-161-0/+1
| | | | | This saves constant register space for r300g, which doesn't need this feature.
* r300/compiler: make the max number of fragment shader temporaries adjustableMarek Olšák2010-04-051-0/+1
|
* r300: clean fog_attr/wpos_attr if code accessing these attributes has been ↵Maciej Cencora2010-03-241-0/+13
| | | | removed FP during compilation
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-191-1/+1
|
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-1/+1
|
* mesa: replace _mesa_bzero() with memset()Brian Paul2010-02-191-1/+1
|
* Remove _mesa_memcmp in favor of plain memcmp.Kenneth Graunke2010-02-191-1/+1
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* r300: fix compiler bugs introduced with MRT changes.Dave Airlie2010-02-031-0/+1
| | | | | | | the first looks like a definite bug, the second I'm not so confident of but it works. Signed-off-by: Dave Airlie <[email protected]>
* r300compiler, r300 classic, r300g: Add support for MRTs in the frag shader.Corbin Simpson2010-02-021-1/+1
| | | | This maybe breaks the vert compiler. Hopefully not.
* Merge branch 'mesa_7_7_branch'Brian Paul2010-01-251-2/+0
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/intel/intel_screen.c src/mesa/drivers/dri/intel/intel_swapbuffers.c src/mesa/drivers/dri/r300/r300_emit.c src/mesa/drivers/dri/r300/r300_ioctl.c src/mesa/drivers/dri/r300/r300_tex.c src/mesa/drivers/dri/r300/r300_texstate.c
| * r300: Remove unnecessary headers.Vinson Lee2010-01-231-2/+0
| |
* | r300/compiler: add full viewport transformation support in WPOS codegenMarek Olšák2010-01-061-1/+1
|/
* Merge branch 'master' into r300g-glslNicolai Hähnle2009-10-071-0/+13
|\ | | | | | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_tgsi_to_rc.c Signed-off-by: Nicolai Hähnle <[email protected]>
| * r300: Workaround problem on R500 with very large fragment programsNicolai Hähnle2009-10-031-0/+13
| | | | | | | | | | | | | | | | The non-KMS interface is to blame here. In theory, a proper fix could be produced that works for the KMS interface only, but it require cleaning a lot of mess. Easier to just do it right in r300g. Signed-off-by: Nicolai Hähnle <[email protected]>
* | Merge branch 'master' into r300-compilerNicolai Hähnle2009-10-031-2/+16
|\|
| * r300: fallback to software rendering if we are out of free texcoordsMaciej Cencora2009-09-231-2/+16
| | | | | | | | Fixes #22741
* | Merge branch 'master' into r300-compilerNicolai Hähnle2009-09-061-1/+1
|\| | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_tgsi_to_rc.c
| * r300: Convert to shared debug code.Pauli Nieminen2009-08-311-1/+1
| |
* | r300: Remove all Mesa dependencies from the shader compilerNicolai Hähnle2009-08-301-2/+2
| | | | | | | | | | | | | | | | In particular, this removes the dependency on prog_instruction, which unfortunately creates some code duplication, but also opens a path towards adding some hardware-specific things in there. Signed-off-by: Nicolai Hähnle <[email protected]>
* | r300: Move Mesa -> RC program conversion to classic Mesa driverNicolai Hähnle2009-08-301-1/+2
|/ | | | | | | This really doesn't belong into the compiler itself, since the compiler should eventually be independent of Mesa's program representation. Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Debug messages are written to stderr, so fflush thatNicolai Hähnle2009-08-271-2/+2
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/compiler: Adapt AllocateHwInputs interface to common usage patternNicolai Hähnle2009-07-291-3/+4
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/fragprog: Move wpos_attr and fog_attr where they belongNicolai Hähnle2009-07-271-11/+10
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/fragprog: Remove hardcoded FRAG_ATTRIB_xxx constantsNicolai Hähnle2009-07-271-0/+48
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/fragprog: Move some of the attribute handling out of the compilerNicolai Hähnle2009-07-271-0/+69
| | | | | | | Attribute indices will probably be different in Gallium, so make the compiler independent of magic values. Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/fragprog: Finally get rid of the duplicate program copyNicolai Hähnle2009-07-271-2/+9
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300/compiler: Lay groundwork for better error handlingNicolai Hähnle2009-07-271-2/+2
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Reduce include dependenciesNicolai Hähnle2009-07-271-0/+2
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Introduce rc_program and use it in radeon_pairNicolai Hähnle2009-07-271-1/+1
| | | | | | | 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-271-2/+5
| | | | 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: Remove some dependencies on additional fragment program copiesNicolai Hähnle2009-07-271-6/+8
| | | | | | | 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-271-1/+0
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Detangle fragment program compiler from driver-specific structureNicolai Hähnle2009-07-271-270/+10
| | | | | | | | 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]>
* r300: Fix fogcoord rewritingNicolai Hähnle2009-07-131-1/+13
| | | | | | | | | | | | | | | We only care about the actual fogcoord itself now, reducing the rewriting done for the vertex program. The rewriting of source operand swizzles in the fragment program takes care that fogcoord.yzw = 001. This should fix fogcoord rewriting entirely, which had been horribly broken in the face of dot-product instructions, and just broken (though not horribly so) in the face of almost every other instruction (the W component would be incorrect for most arithmetic instructions). Signed-off-by: Nicolai Hähnle <[email protected]>