summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_triangle.c
AgeCommit message (Collapse)Author
2010-06-10mesa: rename src/mesa/shader/ to src/mesa/program/Brian Paul
2010-03-03swrast: Remove support for rendering triangles into a color-index bufferIan Romanick
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-12-29mesa: implement per-buffer color maskingBrian Paul
This is part of the GL_EXT_draw_buffers2 extension and part of GL 3.0. The ctx->Color.ColorMask field is now a 2-D array. Until drivers are modified to support per-buffer color masking, they can just look at the 0th color mask. The new _mesa_ColorMaskIndexed() function will be called by glColorMaskIndexedEXT() or glColorMaski().
2009-12-15Merge branch 'mesa_7_6_branch' into mesa_7_7_branchIan Romanick
Conflicts: src/gallium/drivers/softpipe/sp_quad_blend.c
2009-12-12swrast: Silence uninitialized variable warnings in s_triangle.cVinson Lee
2009-10-28swrast: added bracesChia-I Wu
2009-10-28swrast: fix RGB, RGBA texturing codeBrian Paul
Fix backward component ordering for RGB textures. Only optimize RGBA texture case if running little endian. This restriction could be lifted with a little work.
2009-10-28swrast: check for single texture unit in _swrast_choose_triangle()Brian Paul
2009-10-28swrast: clean up and remove dead code in triangle functionsBrian Paul
2009-10-08mesa: remove a bunch of gl_renderbuffer fieldsBrian Paul
_ActualFormat is replaced by Format (MESA_FORMAT_x). ColorEncoding, ComponentType, RedBits, GreenBits, BlueBits, etc. are all replaced by MESA_FORMAT_x queries.
2009-09-30swrast: fix some texformat regressionsBrian Paul
Need to be careful with component ordering for MESA_FORMAT_RGB888 and MESA_FORMAT_RGBA8888.
2009-09-30mesa: remove GLchan-based formats; use hw 8-bit/channel formats insteadBrian Paul
Removed: MESA_FORMAT_RGBA, RGB, ALPHA, LUMINANCE, LUMINANCE_ALPHA, INTENSITY.
2009-09-30mesa: replace gl_texture_format with gl_formatBrian Paul
Now gl_texture_image::TexFormat is a simple MESA_FORMAT_x enum. ctx->Driver.ChooseTexture format also returns a MESA_FORMAT_x. gl_texture_format will go away next.
2009-08-31swrast: fix selection/feedback regressionBrian Paul
This fixes a conform selection/feedback regression introduced by commit 8f4d66c5f893b49eb3973aa3b31a856314c045c7
2009-08-27swrast: fix incorrect tri culling in selection/feedback mode.Brian Paul
See bug 16866.
2009-03-02mesa: use Stencil._Enabled field instead of Stencil.EnabledBrian Paul
2009-03-02swrast: use _EnabledCoordUnits for fixed-function texturingBrian Paul
Using _EnabledUnits was wrong because it included vertex texture units. This change plus the prev commit fixes occasional failures of glean/glsl1 vertex texture test failure.
2009-02-21mesa: use an array for current texture objectsBrian Paul
Use loops to consolidate lots of texture object code.
2009-02-02mesa: move code after decls. Fixes Window build failure.Brian Paul
2009-01-28mesa: implement texture swizzling in swrastBrian Paul
And enable GL_EXT_texture_swizzle for software drivers.
2009-01-23swrast: updates for GL_NV_texture_env_combine4Brian Paul
2009-01-21swrast: fix redundant texture application in affine_textured_triangle().Brian Paul
This function does simple texture mapping so disable normal texture mapping before we call _swrast_write_rgba_span() so that we don't do it twice.
2008-09-18mesa: prefix a bunch of #include lines with "main/".Brian Paul
This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
2008-01-22Fix some issues with glDrawBuffer(GL_NONE), bug 14198Brian
Set _ColorDrawBuffers[0] = NULL if no renderbuffers enabled. Check that _ColorDrawBuffers[0] is non-null before dereferencing in a few places.
2008-01-06Simplify ctx->_NumColorDrawBuffers, _ColorDrawBuffers and fix bug 13835.Brian
These fields are no longer indexed by shader output. Now, we just have a simple array of renderbuffer pointers. If the shader writes to gl_FragData[i], send those colors to the N _ColorDrawBuffers. Otherwise, replicate the single gl_FragColor (or the fixed-function color) to the N _ColorDrawBuffers. A few more changes and simplifications can follow from this...
2007-11-30fix broken two-sided stencilBrian
2007-05-20Overhaul/simplify SWvertex and SWspan attribute handling.Brian
Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
2007-04-24get rid of an extra textured triangle functionBrian
2007-04-24only need one CI-mode triangle functionBrian
2007-04-24s/INTERP_TEX/INTERP_ATTRIBS/Brian
2007-02-05Merge SWvertex texcoord and varying fields into attrib[] array field.Brian
Fragment texcoords and varying code is now unified in the point/line/triangle rasterization code. In the future, merge color, fog, etc. attribs.
2007-02-02Replace color, z, w, texture interpolants with new generic attrib interpolants.Brian
2006-12-13Checkpoint for GLSL compiler changes.Brian
In brief: Check for enabled fragment program by looking at ctx->FragmentProgram._Current. New code for varying variables.
2006-10-01New SWspan and SWspanarrays typedefs.Brian Paul
2006-09-22Use _Enabled rather than _Active when checking for fragment shadersKeith Whitwell
2006-09-21remove rgb[] array from span_arrays_struct - was only used in a few placesBrian Paul
2006-04-25update some tests for visual bit depths to use renderbuffersBrian Paul
2006-04-25Remove carriage returns.Michal Krol
2006-04-14don't need s_depth.hBrian Paul
2006-04-04Fix texcoord interpolation for fragment shaders.Michal Krol
2006-03-29put braces around RENDER_SPAN macro when called, not when defined. Fixes ↵Brian Paul
-pedantic warnings in x11 driver
2005-12-07Fix bugzilla 5253. Add {} around code in RENDER_SPAN macros when code ↵Karl Schultz
includes a variable declaration.
2005-11-16Use new gl_framebuffer _Depth/_StencilBuffer fields instead ofBrian Paul
Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers around combined depth/stencil renderbuffers attached at the later points.
2005-10-05Remove _IsPowerOfTwo from gl_texture_object, not really needed.Brian Paul
2005-10-05In gl_texture_image replace IntFormat with InternalFormat and Format withBrian Paul
_BaseFormat to be consistant with gl_renderbuffer.
2005-09-21replace GLdepth with GLuint and remove GLdepthBrian Paul
2005-09-02Check for ATI_fragment_shader enabledDave Airlie
2005-08-27Rearrange the code related to GL_ARB_occlusion_object to generalize queryBrian Paul
objects for future types of queries.
2005-08-25removed GL_HP_occlusion_test extensionBrian Paul
2005-06-30Redo all the GL_LINEAR interpolation code in terms of LERP macros/functions.Brian Paul
This cleans up and simplifies the arithmetic quite a bit.