aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
Commit message (Collapse)AuthorAgeFilesLines
* More GLSL code:Michal Krol2006-04-115-117/+237
| | | | | | | | | | | | - use macros to access and modify render inputs bit-field; - un-alias generic vertex attributes for ARB vertex calls; - use MAX_VERTEX_PROGRAM_ATTRIBS (NV code) or MAX_VERTEX_ATTRIBS (ARB code) in place of VERT_ATTRIB_MAX; - define VERT_ATTRIB_GENERIC0..15 for un-aliased vertex attributes for ARB_vertex_shader; - fix generic attribute index range check in arbprogparse.c; - interface GLSL varyings between vertex and fragment shader; - use 64-bit optimised bitset (bitset.h) for render inputs;
* remove unused varBrian Paul2006-04-061-2/+0
|
* Replace MESA_FORMAT_DEPTH_COMPONENT_FLOAT32 with 32-bit integer format.Brian Paul2006-04-063-21/+106
| | | | | | | This allows render to depth texture (we don't support floating pt. Z buffers). Rename MESA_FORMAT_DEPTH_COMPONENT16/32 as MESA_FORMAT_Z16/32. Software fallback for glCopyTexImage now uses integer temporary image instead of float, eliminates a lot of float/int conversions.
* Check/use texture border color when sampling depth textures. (bug 6498)Brian Paul2006-04-051-9/+16
| | | | Silence some warnings.
* Fix texcoord interpolation for fragment shaders.Michal Krol2006-04-041-9/+12
|
* put braces around RENDER_SPAN macro when called, not when defined. Fixes ↵Brian Paul2006-03-292-7/+9
| | | | -pedantic warnings in x11 driver
* fix a GLuint vs GLushort test, new assertionsBrian Paul2006-03-291-1/+4
|
* merge from texman branchmesa_20060325Brian Paul2006-03-263-0/+92
|
* remove carriage returnsBrian Paul2006-03-251-732/+732
|
* Need to check for new state and do readpixels/drawpixels clipping afterBrian Paul2006-03-222-9/+25
| | | | | we call RENDER_START since that may involve validating the drawable and updating its dimensions.
* GLSL fixes:Michal Krol2006-03-213-741/+742
| | | | | | | | | | | | | | | | | | - generate error on NULL pointers in glShaderSourceARB; - reinstall program object, if current, in glLinkProgramARB; - vertex and fragment shaders are optional in program object; - floor asm was wrongly computed for x86 back-end; - allow for (void) idiom in function prototypes; - all fixed-state uniforms are updated; - local variable initializers are working; - implement texture* and shadow* functions for vertex processor; - generate error if too many arguments in general constructor; - trim unused data in general constructor; - struct r-value field select was badly relocated; Changes: - add derived state gl_fog_attrib::_Scale; - add derived state gl_light::_CosCutoffNeg;
* minor clean-upsBrian Paul2006-03-191-4/+4
|
* s/GLuint/GLushort/ in read_depth_stencil_image()Brian Paul2006-03-151-1/+2
|
* Committing in .Jouk Jansen2006-03-071-1/+1
| | | | | | | | | Update OpenVMS makefiles Modified Files: Mesa/src/mesa/shader/slang/descrip.mms Mesa/src/mesa/swrast/descrip.mms ----------------------------------------------------------------------
* Fix bogus span mask in s_atifragshader.c leading to trouble when the pixel ↵Roland Scheidegger2006-03-032-6/+8
| | | | 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).
* implementation of _swrast_BlitFramebuffer()Brian Paul2006-03-022-8/+758
|
* added s_blit.cBrian Paul2006-03-011-2/+4
|
* _swrast_blit_framebuffer() functionBrian Paul2006-03-012-0/+46
|
* only run shader on active fragments in the spanBrian Paul2006-02-281-0/+3
|
* check if active fragment shader for deferred texturing/shadingBrian Paul2006-02-281-1/+2
|
* check for active shader, set FRAGPROG_BIT in raster maskBrian Paul2006-02-281-0/+5
|
* More GLSL code:Michal Krol2006-02-271-45/+25
| | | | | | | | | | | | | - add x86 code generator; - add full support for uniforms in ARB_shader_objects; - add assembly instruction: global_addr; - reorganize #includes; - built-in uniforms accessed by index, rather than by name; - add some entries to x86sse rtasm; - add configurations to VC6 projects: 'Release x86' and 'Debug x86'; - #define SLANG_X86 active only on VC6 x86 builds; - introduce code export table for a shader; - remove GNU license from the noise library;
* include proper header file, remove local extern declarationsBrian Paul2006-02-221-6/+3
|
* Committing in .Jouk Jansen2006-02-211-5/+7
| | | | | | | | | Update OpenVMS makefiles Modified Files: Mesa/src/mesa/shader/slang/descrip.mms Mesa/src/mesa/swrast/descrip.mms Mesa/src/mesa/tnl/descrip.mms ----------------------------------------------------------------------
* Add arbshader stage.Michal Krol2006-02-153-5/+167
|
* New comments, clean-up of fields related to point/line/triangle validation.Brian Paul2006-01-262-15/+24
|
* Removed the GL_SGIX/SGIS_pixel_texture extensions. Same thing can beBrian Paul2005-12-145-168/+2
| | | | done with fragment programs nowadays.
* Fix bugzilla 5253. Add {} around code in RENDER_SPAN macros when code ↵Karl Schultz2005-12-071-4/+4
| | | | includes a variable declaration.
* C++ fixes, mostly casts (Stephane Conversy)Brian Paul2005-12-062-7/+7
|
* get depthBits from the current drawbufferBrian Paul2005-12-011-3/+3
|
* Make Saturate a 2-bit field again, renamed to SaturateMode with threeBrian Paul2005-11-201-1/+1
| | | | possible values: SATURATE_OFF, SATURATE_ZERO_ONE and SATURATE_PLUS_MINUS_ONE.
* 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.
* optimize drawing GL_DEPTH_STENCIL pixels into a GL_DEPTH_STENCIL renderbufferBrian Paul2005-11-171-67/+99
|
* s/MEMCPY/_mesa_memcpy/ and fix typoBrian Paul2005-11-171-5/+5
|
* optimize case of reading GL_DEPTH_STENCIL pixels from GL_DEPTH_STENCIL ↵Brian Paul2005-11-171-28/+61
| | | | renderbuffer
* Use new gl_framebuffer _Depth/_StencilBuffer fields instead ofBrian Paul2005-11-169-38/+28
| | | | | Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers around combined depth/stencil renderbuffers attached at the later points.
* fix color interpolation problem reported on VMSBrian Paul2005-11-151-64/+38
|
* Fix problem in stencil_and_ztest_span() when using h/w stencil buffer.Brian Paul2005-11-151-4/+6
| | | | | Fix a comment typo. Remove some unneeded #includes.
* remove unneeded RasterPosValid checkBrian Paul2005-11-141-4/+0
|
* Added OSMesaColorClamp(), bug 4917Brian Paul2005-11-123-0/+21
|
* update an assertionBrian Paul2005-11-121-1/+1
|
* Move stuff common to vertex/fragment_program into the base class, including:Brian Paul2005-11-122-13/+13
| | | | | | Instructions, InputsRead, OutputsWritten, and Parameters. Also, added debug functions: _mesa_print_instruction(), _mesa_print_program_parameters() and revamp _mesa_print_program().
* use UNCLAMPED_FLOAT_TO_USHORT/UBYTE in clear_rgba_buffer() (bug #4992)Brian Paul2005-11-091-8/+9
|
* At keithw's request, remove all traces of the "fragment program to C" andIan Romanick2005-11-084-985/+0
| | | | TCC experiment.
* use _mesa_num_inst_src_regs() instead of nr_args()Brian Paul2005-11-051-48/+3
|
* Unify vertex/fragment program instuctions.Brian Paul2005-11-053-149/+150
| | | | Based on patch by Ian (#4967) but also unify instruction opcodes.
* remove unneeded #includeBrian Paul2005-11-053-5/+0
|
* Rename FRAG_OUTPUT_* tokens to FRAG_RESULT_* to match vertex program conventionBrian Paul2005-11-021-4/+4
|
* check swrast->_FogEnabled instead of ctx->Fog.EnabledBrian Paul2005-10-316-16/+24
|
* need to use absolute value for RSQBrian Paul2005-10-301-1/+2
|