summaryrefslogtreecommitdiff
path: root/src/mesa/swrast
AgeCommit message (Collapse)Author
2005-05-11Previously in TXP and TEX instructions, lambda was passed toKeith Whitwell
fetch_texel as zero, but I believe this is incorrect. The spec uses a pseudocode function: vec4 TextureSample(float s, float t, float r, float lodBias, int texImageUnit, enum texTarget); to specify the behaviour of TEX, TXB and TXP instructions. For TEX and TXP, lodBias is passed as zero, TXB is passed with texcoord[4]. In our code we have static void fetch_texel( GLcontext *ctx, const GLfloat texcoord[4], GLfloat lambda, GLuint unit, GLfloat color[4] ) and were passing zero and a biased lambda value respectively. The difference is that TextureSample() would add in the lambda term itself, while in our code the caller is expected to do this. Thus in the TEX and TXP cases, it is necessary to pass an unbiased lambda value for things to work out correctly.
2005-05-11Don't let FragmentProgram._Active influence choice of vertex vs pixelKeith Whitwell
fog.
2005-05-11Test for texcoord[3] == zero before dividing. Not so sure about thisKeith Whitwell
test - if texcoord[3] is zero, we'd probably be fine except for an ASSERT in IROUND_POS() which gets triggered by the inf values created.
2005-05-10 Committing in .Jouk Jansen
OpenVMS compile support update for new buffer-code Modified Files: Mesa/src/mesa/drivers/x11/descrip.mms Mesa/src/mesa/main/descrip.mms Mesa/src/mesa/swrast/descrip.mms ----------------------------------------------------------------------
2005-05-08dri fb works using renderbuffers now in RGBA modeJon Smirl
2005-05-06restore call to SetBuffer() in clear_color_buffers(), only temporaryBrian Paul
2005-05-05more updates for users of s_spantemp.hBrian Paul
2005-05-04FBO changesBrian Paul
2005-05-04Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul
Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
2005-05-04Add a facility to route all rasterization through a fragment programKeith Whitwell
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.
2005-04-26added interpolate_fog()Brian Paul
2005-04-22undef DEPTH_TYPE at endBrian Paul
2005-04-21Reduce the size of mesa's internal fragment and vertex programKeith Whitwell
representations by switching to packed structures for registers and instructions.
2005-01-29remove stray span.y++Brian Paul
2005-01-17use FABSF(fogCoord) to fix fog calculation problem (Soju Matsumoto)Brian Paul
2005-01-17fix a few warningsBrian Paul
2005-01-13add s_atifragshader.c, s_atifragshader.hMichal Krol
2005-01-03updates from JoukBrian Paul
2004-12-29Use Point._Size in calculationKeith Whitwell
2004-12-29use clamped Line._Width in calculationsKeith Whitwell
2004-12-19Implement software ATI_fragment_shaderDave Airlie
no error detection, slow, may not be 100% correct but a good start
2004-12-18Consolidate _swrast_write_texture_span() into _swrast_write_rgba_span().Brian Paul
2004-12-18Added PRINT instruction for GL_NV_fragment_program.Brian Paul
2004-12-16fix typos in texcoord setup - fixes perspective correction bugBrian Paul
2004-12-16don't divide texcoords by q if using a fragment programBrian Paul
2004-12-15fixes for fragment programsBrian Paul
2004-12-15init span.w, dwdx, dwdy in case we're running a fragment programBrian Paul
2004-12-15tweaks to the LIT instructionsBrian Paul
2004-12-03silence warningBrian Paul
2004-12-02Fix some warningsAlan Hourihane
2004-11-27new comments and assertionsBrian Paul
2004-11-27Change the dispatch offsets for the VertexAttrib*NV functions so they don'tBrian Paul
alias with the corresponding ARB functions. GL_ARB_vertex_shader (and OpenGL 2.0's) VertexAttrib functions don't alias with conventional vertex attributes, as GL_NV_vertex_program does. So, the ARB and NV version of VertexAttrib need to be distinct.
2004-11-10GL_(UN)PACK_SKIP_IMAGES should only be applied to 3D texture pack/unpackingBrian Paul
and ignored for 1D and 2D images. Need to pass in image dimensions (1,2,3) to the _mesa_image_address() function. This change gets propogated to some other routines. Also added new _mesa_image_address[123]d() convenience functions.
2004-11-09use the new _mesa_clip_readpixels() routineBrian Paul
2004-11-09Removed _swrast_clip_pixelrect(). Use _mesa_clip_drawpixels() instead.Brian Paul
2004-11-09don't use ctx->Pack, use the function argumentBrian Paul
2004-11-01fix convolution regression from revision 1.48 to 1.49Brian Paul
2004-10-31PBO support for glColorTable, glColorSubTable, glGetColorTable, etc.Brian Paul
2004-10-31PBO support for glConvolutionFilter1D/2D, glGetConvolutionFilter, etc.Brian Paul
2004-10-31Removed _swrast_validate_pbo_access().Brian Paul
In x11 driver, map/unmap PBO as needed in DrawPixels functions.
2004-10-31Allow the software fallback glDrawPixels, glReadPixels, glBitmap commands toBrian Paul
work with real, hardware-based PBOs in the future by mapping/unmapping the PBO buffer as needed.
2004-10-23minor fixes from J.P. DelportBrian Paul
2004-10-13Fix minor fog / fragment program state bug.Brian Paul
Don't add diffuse and specular colors when using fragment program.
2004-10-06*** empty log message ***Karl Schultz
2004-10-02added support for GL_ARB_draw_buffersBrian Paul
2004-09-30set span.y prior to each span write in draw_depth_pixels, like Karl's other fixBrian Paul
2004-09-28Fix bug in glDrawPixels when writing color indexed images on color indexedKarl Schultz
devices. In draw_index_pixels(), use the correct variables for the span Y and span end values.
2004-09-24patches for clearing hw depth buffers from software fallback (Nicolai Haehnle)Brian Paul
2004-09-13Handle GL_MAX_VERTEX_ATTRIBS_ARB in glGet*().Brian Paul
Define 2.0 point-sprite related tokens in glheader.h (temporary).
2004-09-13tweak texcoord for sampling texture rectangles (Dave Reveman)Brian Paul