summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_atifragshader.c
AgeCommit message (Collapse)AuthorFilesLines
2009-04-01swrast: do texture sampling/combining in floating pointBrian Paul1-6/+1
The code's cleaner and a step toward supporting float-valued texture sampling. Some optimizations for common cases can be added and re-enabled...
2009-03-11mesa: remove some last remnants of GL_MESA_program_debugBrian Paul1-4/+0
2008-09-18mesa: prefix a bunch of #include lines with "main/".Brian Paul1-5/+4
This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
2007-07-04Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian1-4/+3
of -I flags.
2007-02-22Merge branch 'origin' into glsl-compiler-1Brian1-2/+3
Conflicts: src/mesa/main/state.c src/mesa/shader/program.c src/mesa/shader/program.h src/mesa/shader/programopt.c src/mesa/shader/slang/slang_execute.c src/mesa/sources src/mesa/swrast/s_arbshader.c src/mesa/swrast/s_context.c src/mesa/swrast/s_span.c src/mesa/swrast/s_zoom.c src/mesa/tnl/t_context.c src/mesa/tnl/t_save_api.c src/mesa/tnl/t_vb_arbprogram.c src/mesa/tnl/t_vp_build.c src/mesa/tnl/t_vtx_eval.c
2007-02-01New SWspanarrays attribs[] array.Brian1-5/+6
Replace texcoord[], varying[], etc. arrays with single attribs[] array, indexed by FRAG_ATTRIB_* values. Eliminates need to copy data into fragment program machine input registers. Will lead to future clean-ups.
2007-01-23silence C++ warningsBrian1-2/+3
2006-10-21move/improve comments, clean up code in a few placesBrian Paul1-21/+16
2006-10-17Always convert colors to float before running a fragment shader/program.Brian Paul1-49/+7
2006-10-17Move struct atifs_machine into s_atifragshader.cBrian Paul1-31/+74
Add support for runtime colorbuffer types.
2006-10-01New SWspan and SWspanarrays typedefs.Brian Paul1-5/+5
2006-03-03Fix bogus span mask in s_atifragshader.c leading to trouble when the pixel ↵Roland Scheidegger1-2/+3
was later discarded by z test (this fixes doom3 r200 renderpath with swrast). Fix calling _swrast_alpha_test potentially leading to bogus results when Alpha Test might not be enabled. While here, don't disable deferred_texture (early z) when ATI_fragment_shader is active, as it is not necessary (for the record, this boosts doom3 swrast performance by roughly a factor of 2 (4 seconds per frame now...) with the r200 render path, might be a worthwile optimization for fragment programs which don't write z).
2005-11-19No longer derive 'ati_fragment_shader' from 'program' class. Only theBrian Paul1-10/+2
program->Id and program->RefCount fields were used and ATI fragment shaders didn't have too much in common with ARB/NV vertex/fragment programs anyway.
2005-09-16Rework the texture filtering functions a bit.Brian Paul1-3/+3
No need to pass the texture unit number as an argument.
2005-09-15Update includes post-splitting of s_texture.cBrian Paul1-1/+1
2005-09-09fix some bugs with handling of GL_DOT4_ATI, GL_DOT3_ATI and GL_DOT2_ADD_ATI ↵Roland Scheidegger1-5/+9
ATI_fs instructions.
2005-09-07fix bug with ATI_fragment_shader in swrast (need to copy all 4 values due to ↵Roland Scheidegger1-6/+4
later applied srcRep)
2005-09-02ATI_fragment_shader fixes: fix bug in passTexCoord (caused by recent ↵Roland Scheidegger1-32/+33
changes). Fix sampling from wrong texture unit. Apply swizzling before texture sampling, and hopefully get non-projected coordinates from swrast. (still does not work at all with sw doom3, way too dark just the same as with the doom3 arb2 path)
2005-09-02add error checking to the GL_ATI_FRAGMENT_SHADER entrypoints. Fix bug with ↵Roland Scheidegger1-35/+31
scope of ati fragment shader constants. Fix issues with specifying color/alpha instructions not pair-wise. Change internal representation of the shader (to better fit how the extension works, should make driver implementations simpler, and saves some memory). (still doesn't work correctly with doom3 and swrast, but not worse than before)
2005-01-17fix a few warningsBrian Paul1-1/+2
2004-12-19Implement software ATI_fragment_shaderDave Airlie1-0/+624
no error detection, slow, may not be 100% correct but a good start