aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_triangle.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge SWvertex texcoord and varying fields into attrib[] array field.Brian2007-02-051-28/+3
| | | | | Fragment texcoords and varying code is now unified in the point/line/triangle rasterization code. In the future, merge color, fog, etc. attribs.
* Replace color, z, w, texture interpolants with new generic attrib interpolants.Brian2007-02-021-7/+7
|
* Checkpoint for GLSL compiler changes.Brian2006-12-131-7/+8
| | | | | | In brief: Check for enabled fragment program by looking at ctx->FragmentProgram._Current. New code for varying variables.
* New SWspan and SWspanarrays typedefs.Brian Paul2006-10-011-2/+2
|
* Use _Enabled rather than _Active when checking for fragment shadersKeith Whitwell2006-09-221-2/+2
|
* remove rgb[] array from span_arrays_struct - was only used in a few placesBrian Paul2006-09-211-10/+11
|
* update some tests for visual bit depths to use renderbuffersBrian Paul2006-04-251-2/+2
|
* Remove carriage returns.Michal Krol2006-04-251-3/+3
|
* don't need s_depth.hBrian Paul2006-04-141-1/+0
|
* 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-291-5/+5
| | | | -pedantic warnings in x11 driver
* Fix bugzilla 5253. Add {} around code in RENDER_SPAN macros when code ↵Karl Schultz2005-12-071-4/+4
| | | | includes a variable declaration.
* Use new gl_framebuffer _Depth/_StencilBuffer fields instead ofBrian Paul2005-11-161-2/+1
| | | | | Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers around combined depth/stencil renderbuffers attached at the later points.
* Remove _IsPowerOfTwo from gl_texture_object, not really needed.Brian Paul2005-10-051-1/+1
|
* In gl_texture_image replace IntFormat with InternalFormat and Format withBrian Paul2005-10-051-2/+2
| | | | _BaseFormat to be consistant with gl_renderbuffer.
* replace GLdepth with GLuint and remove GLdepthBrian Paul2005-09-211-2/+2
|
* Check for ATI_fragment_shader enabledDave Airlie2005-09-021-1/+2
|
* Rearrange the code related to GL_ARB_occlusion_object to generalize queryBrian Paul2005-08-271-11/+12
| | | | objects for future types of queries.
* removed GL_HP_occlusion_test extensionBrian Paul2005-08-251-5/+3
|
* Redo all the GL_LINEAR interpolation code in terms of LERP macros/functions.Brian Paul2005-06-301-43/+43
| | | | This cleans up and simplifies the arithmetic quite a bit.
* pass mask array to PutRowRGB() in simple_z_textured_triangle()Brian Paul2005-06-101-1/+2
|
* Remove last of the old span code.Brian Paul2005-06-021-14/+2
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-9/+19
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* Add a facility to route all rasterization through a fragment programKeith Whitwell2005-05-041-2/+2
| | | | | | | | | | | which is automatically generated to match the current texture environment state. Introduces a new value ctx->FragmentProgram._Active which is true when either _Enabled is true or there is such a fragment program ready to run. To test out on a driver running the software rasterizer, set MESA_TEX_PROG=t in the environment. It goes without saying that performance is lower for the software rasterizer in this mode.
* Consolidate _swrast_write_texture_span() into _swrast_write_rgba_span().Brian Paul2004-12-181-3/+9
|
* Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul2004-08-251-1/+1
| | | | 1015696)
* fix HP occlusion testing when using generic span pathBrian Paul2004-06-241-1/+0
|
* Fixed occlusion_zless_triangle() to work with 16 or 32-bit Z buffers.Brian Paul2004-06-231-20/+32
| | | | Removed some unneeded lines, other minor clean-ups.
* only use simple_z_textured_triangle if depthBits <= 16Brian Paul2004-05-251-1/+3
|
* Added ctx->Vertex/FragmentProgram._Enable flags. Set when vertex/fragmentBrian Paul2004-04-231-2/+2
| | | | | | | program is enabled AND the currently bound program is valid. Check _Enable instead of Enable to prevent things from blowing up when someone calls glEnable(GL_VERTEX_PROGRAM_ARB) without actually defining a program.
* Fix color index mode rendering.Brian Paul2004-03-091-1/+1
| | | | Changed SWvertex's index field to GLfloat and fix a few other bits.
* A bit of an overhaul of the fog code.Brian Paul2004-02-171-0/+1
| | | | | | glFogCoord didn't always work reliably. ARB fragment program fog options work now. Per-fragment fog computations are now perspective corrected.
* just some reformattingBrian Paul2004-02-171-16/+17
|
* Consolidate texObj->Pos/Neg/X/Y/Z and texObj->Image into a singleKeith Whitwell2004-01-271-35/+35
| | | | array, texObj->Image[face][level].
* Update NEED_SECONDARY_COLOR macro to test if either vertex/fragmentBrian Paul2003-12-091-1/+1
| | | | | programs are enabled and if they need secondary color input register. Patch by Karl Rasche, with tweaks by Brian.
* s/_backface_sign/_BackfaceSign/Brian Paul2003-09-181-1/+1
|
* Implemented GL_ARB_texture_non_power_of_two (except for auto mipmap generation).Brian Paul2003-07-031-0/+1
|
* Implemented GL_ARB_occlusion_query (not 100% finalized).Brian Paul2003-06-131-5/+9
|
* remove unneeded fragment program testBrian Paul2003-04-211-1/+1
|
* Added ctx->Texture._EnabledCoordUnits bitfield.Brian Paul2003-04-081-9/+7
| | | | | | Fixed some vertex array / vertex program glitches with glDrawElements. Fixed some fragment program runtime bugs. Non-trivial Cg programs are running now.
* replace _mesa_ prefix with _swrast_, remove s_histogram.[ch]Brian Paul2003-03-251-13/+13
|
* Store partial derivative values in sw_span structure.Brian Paul2003-03-161-1/+3
| | | | | Implemented DDX and DDY fragment program instructions (whew!) Not fully tested yet.
* Clean-up of parser error handling/reporting.Brian Paul2003-03-141-1/+2
| | | | Basic fragment program texture instructions are limping along.
* Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul2003-03-011-2/+1
| | | | | Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
* comment changesBrian Paul2002-12-181-2/+2
|
* moved function declaration into the template, define the NAME to specify the ↵Brian Paul2002-11-131-103/+29
| | | | function names
* don't call abort()Brian Paul2002-10-301-11/+20
|
* Header file clean-up:Brian Paul2002-10-241-2/+2
| | | | | | | | 1. Remove all.h and PC_HEADER junk. 2. Rolled mem.c and mem.h into imports.c and imports.h 3. Include imports.h instead of mem.h Restore _mesa_create/initialize_context() to be like they were in 4.0.4 New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
* merge gl_texture_image RowStride from DRI 4.0.4Brian Paul2002-09-231-1/+2
|
* struct sw_span is again allocated on the stack, but the arrays of spanBrian Paul2002-08-071-61/+62
| | | | | | | data are broken out into a new struct span_arrays which is allocated per-context (to avoid huge stack allocations - a problem on Windows). This lets us use span.redStep instead of span->redStep (for example) to hopefully get slightly better performance in the triangle functions.