aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_atifragshader.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace gl_frag_attrib enum with gl_varying_slot.Paul Berry2013-03-151-5/+5
| | | | | | | | | | | | This patch makes the following search-and-replace changes: gl_frag_attrib -> gl_varying_slot FRAG_ATTRIB_* -> VARYING_SLOT_* FRAG_BIT_* -> VARYING_BIT_* Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Tested-by: Brian Paul <[email protected]>
* swrast: remove unused ati_fs_opcodes arrayBrian Paul2012-09-151-15/+0
|
* mesa/ati_fragshader: no need for opcodes to be global.Dave Airlie2012-09-151-1/+1
| | | | | | | I can't see these in use anywhere outside this file. Reviewed-by: Matt Turner <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
* swrast: Support sampler object for texture fetching statePauli Nieminen2012-08-011-2/+4
| | | | | | | | | | | | swrast needs to pass sampler object into all texture fetching functions to use correct sampling state when sampler object is bound to the unit. The changes were made using half manual regular expression replace. v2: Fix NULL deref in _swrast_choose_triangle(), because the _Current values aren't set yet, so we need to look at our texObj2D. (anholt) Signed-off-by: Pauli Nieminen <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-5/+5
|
* swrast: Clean up header file inclusion in s_atifragshader.h.Vinson Lee2010-08-071-0/+1
| | | | | | | | | s_atifragshader.h Include mtypes.h for GLcontext symbol. Include s_span.h for SWspan symbol. s_atifragshader.c Include s_context.h for SWcontext symbol.
* swrast: Remove unnecessary headers.Vinson Lee2010-07-311-1/+0
|
* mesa: move atifragshader.[ch] to main/Brian Paul2010-06-101-1/+1
|
* mesa: Fix compiler warningsKarl Schultz2010-02-131-2/+2
| | | | | Add explicit casts, fix constant types, fix variable types. Fixes about 340 warnings in MSFT Visual Studio.
* swrast: silence double->float assignment warningsBrian Paul2010-01-271-13/+14
| | | | Reported by Karl Schultz.
* swrast: Remove unnecessary header from s_atifragshader.c.Vinson Lee2010-01-131-1/+0
|
* swrast: Initialize tex_coords in handle_sample_op.Vinson Lee2009-12-121-1/+1
|
* swrast: do texture sampling/combining in floating pointBrian Paul2009-04-011-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...
* mesa: remove some last remnants of GL_MESA_program_debugBrian Paul2009-03-111-4/+0
|
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-5/+4
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-4/+3
| | | | of -I flags.
* Merge branch 'origin' into glsl-compiler-1Brian2007-02-221-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
| * silence C++ warningsBrian2007-01-231-2/+3
| |
* | New SWspanarrays attribs[] array.Brian2007-02-011-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.
* move/improve comments, clean up code in a few placesBrian Paul2006-10-211-21/+16
|
* Always convert colors to float before running a fragment shader/program.Brian Paul2006-10-171-49/+7
|
* Move struct atifs_machine into s_atifragshader.cBrian Paul2006-10-171-31/+74
| | | | Add support for runtime colorbuffer types.
* New SWspan and SWspanarrays typedefs.Brian Paul2006-10-011-5/+5
|
* Fix bogus span mask in s_atifragshader.c leading to trouble when the pixel ↵Roland Scheidegger2006-03-031-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).
* No longer derive 'ati_fragment_shader' from 'program' class. Only theBrian Paul2005-11-191-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.
* Rework the texture filtering functions a bit.Brian Paul2005-09-161-3/+3
| | | | No need to pass the texture unit number as an argument.
* Update includes post-splitting of s_texture.cBrian Paul2005-09-151-1/+1
|
* fix some bugs with handling of GL_DOT4_ATI, GL_DOT3_ATI and GL_DOT2_ADD_ATI ↵Roland Scheidegger2005-09-091-5/+9
| | | | ATI_fs instructions.
* fix bug with ATI_fragment_shader in swrast (need to copy all 4 values due to ↵Roland Scheidegger2005-09-071-6/+4
| | | | later applied srcRep)
* ATI_fragment_shader fixes: fix bug in passTexCoord (caused by recent ↵Roland Scheidegger2005-09-021-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)
* add error checking to the GL_ATI_FRAGMENT_SHADER entrypoints. Fix bug with ↵Roland Scheidegger2005-09-021-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)
* fix a few warningsBrian Paul2005-01-171-1/+2
|
* Implement software ATI_fragment_shaderDave Airlie2004-12-191-0/+624
no error detection, slow, may not be 100% correct but a good start