summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
Commit message (Collapse)AuthorAgeFilesLines
* swrast: BlitFramebuffer should not be killed by conditional renderingMarek Olšák2011-05-301-3/+0
| | | | | | NOTE: This is a candidate for the 7.10 branch. Reviewed-by: Brian Paul <[email protected]>
* swrast: anisotropic filtering extensionAndreas Faenger2011-05-183-0/+414
| | | | | | | | | Anisotropic filtering extension for swrast intended to be used by osmesa to create high quality renderings. Based on Higher Quality Elliptical Weighted Avarage Filter (EWA). A 2nd implementation using footprint assembly is also provided. Signed-off-by: Brian Paul <[email protected]>
* mesa: Remove SWcontext::_FogMode, use gl_context::gl_fog_attrib::Mode everywhereIan Romanick2011-04-253-3/+1
| | | | Reviewed-by: Brian Paul <[email protected]>
* swrast: Disable glAccum drawing during conditional rendering.Eric Anholt2011-04-231-0/+4
|
* swrast: fix readpix clampingMarek Olšák2011-04-221-4/+4
| | | | | | | | | | | | | | | | | | Broken with e5c6a92a12b5cd7db205d72039f58d302b0be9d5. (ARB_color_buffer_float) Clamping should occur if type != float, otherwise the MSBs of the resulting pixels are killed off. For example, reading back LUMINANCE = R+G+B can be greater than 0xff, but the result is naturally masked by 0xff for UNSIGNED_BYTE, leading to bogus results. The following bug report seems to want clamping to occur if type == half_float too. Not sure what's correct. Bug: [bisected pineview] oglc case pxconv-read failed https://bugs.freedesktop.org/show_bug.cgi?id=35852 Tested by: Fang Xun <[email protected]> Reviewed-and-tested-by: Ian Romanick <[email protected]>
* mesa: gl_fragment_program::FogOption is always GL_NONE so don't check itIan Romanick2011-04-211-11/+4
| | | | | | Reviewed-by: Eric Anholt <[email protected]> Acked-by: Corbin Simpson <[email protected]> Acked-by: Alex Deucher <[email protected]>
* swrast: Add LUMINANCE, INTENSITY, LUMINANCE_ALPHA to span asserts.Eric Anholt2011-04-202-0/+6
| | | | | | Fixes ARB_texture_float/fbo-alphatest-formats. Reviewed-by: Brian Paul <[email protected]>
* swrast: Don't try to adjust_colors for <8bpc when handling R16, RG1616.Eric Anholt2011-04-181-3/+3
| | | | | | | | | The GL_RED and GL_RG were tricking this code into executing, but it's totally unprepared for a 16-bit channel and just rescaled the values down to 0. We don't have anything with <8bit channels alongside >8bit channels, so disabling it should be safe. Reviewed-by: Brian Paul <[email protected]>
* swrast: Don't assert against glReadPixels of GL_RED and GL_RG.Eric Anholt2011-04-182-2/+8
| | | | | | | | Everything appears to already be in place for this. Fixes aborts in: ARB_texture_rg/fbo-alphatest-formats-float ARB_texture_rg/fbo-blending-formats-float. Reviewed-by: Brian Paul <[email protected]>
* mesa: move sampler state into new gl_sampler_object typeBrian Paul2011-04-105-147/+150
| | | | | | gl_texture_object contains an instance of this type for the regular texture object sampling state. glGenSamplers() generates new instances of gl_sampler_object which can override that state with glBindSampler().
* swrast: simplify assertion to silence warningBrian Paul2011-04-051-6/+1
|
* swrast: report data type in error messageBrian Paul2011-03-171-1/+2
|
* mesa: replace NEED_SECONDARY_COLOR(), RGBA_LOGICOP_ENABLED() with inlinesBrian Paul2011-03-112-3/+5
| | | | and rename them.
* swrast: flip the conditionals in shadow_compare4() for readabilityBrian Paul2011-03-081-24/+24
|
* swrast: add coord clamping, fix comparisons for shadow testingPhilip Taylor2011-03-081-27/+30
| | | | | | | | | This fixes https://bugs.freedesktop.org/show_bug.cgi?id=31159 for swrast and piglit depth-tex-compare. NOTE: This is a candidate for the 7.10 branch. Signed-off-by: Brian Paul <[email protected]>
* mesa: move PBO-related functions into a new fileBrian Paul2011-02-283-1/+3
|
* mesa: remove GL_SGI_texture_color_table supportBrian Paul2011-02-281-5/+0
| | | | | | It was only implemented in the swrast driver and probably not used by any applications. A modern app would use a dependent/chained texture lookup in the fragment shader.
* mesa: Remove empty header file s_trispan.h.Kenneth Graunke2011-02-101-31/+0
|
* mesa: begin implementation of GL_ARB_draw_buffers_blendBrian Paul2011-01-151-46/+46
|
* swrast: Include mtypes.h in s_triangle.c.Vinson Lee2011-01-051-0/+1
| | | | Include mtypes.h for gl_context symbol.
* swrast: Remove unnecessary headers.Vinson Lee2011-01-052-2/+0
|
* swrast: Clean up header file inclusion in s_texfilter.h.Vinson Lee2010-12-251-1/+3
|
* swrast: Clean up header file inclusion in s_texcombine.h.Vinson Lee2010-12-251-1/+2
|
* swrast: Clean up header file inclusion in s_masking.h.Vinson Lee2010-12-251-1/+4
|
* swrast: Clean up header file inclusion in s_logic.h.Vinson Lee2010-12-241-1/+3
|
* swrast: Clean up header file inclusion in s_fragprog.h.Vinson Lee2010-12-241-1/+2
|
* swrast: Clean up header file inclusion in s_span.h.Vinson Lee2010-12-241-1/+6
|
* swrast: Clean up header file inclusion in s_fog.h.Vinson Lee2010-12-241-1/+2
|
* swrast: Clean up header file inclusion in s_depth.h.Vinson Lee2010-12-241-1/+4
|
* swrast: Clean up header file inclusion in s_blend.h.Vinson Lee2010-12-241-1/+4
|
* swrast: Clean up header file inclusion in s_atifragshader.h.Vinson Lee2010-12-241-1/+1
|
* swrast: Clean up header file inclusion in s_alpha.h.Vinson Lee2010-12-241-2/+2
|
* swrast: Clean up header file inclusion in s_accum.h.Vinson Lee2010-12-241-1/+2
|
* swrast: Clean up header file inclusion in s_aatriangle.h.Vinson Lee2010-12-241-1/+1
|
* swrast: Clean up header file inclusion in s_aaline.h.Vinson Lee2010-12-241-1/+1
|
* swrast: restructure some glReadPixels() codeBrian Paul2010-12-031-28/+25
|
* swrast: accept GL_RG in glReadPixels()Brian Paul2010-12-031-16/+3
| | | | Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32088
* swrast: fix indentationBrian Paul2010-12-031-6/+6
|
* swrast: allow GL_RG format in glDrawPixels()Brian Paul2010-12-031-18/+6
| | | | | | | Restructure the switch statement to avoid having to add additional color formats in the future. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32086
* swrast: avoid large stack allocations in tex combine codeBrian Paul2010-12-021-6/+39
|
* swrast: avoid large stack allocations in blend codeBrian Paul2010-12-021-1/+13
|
* swrast: init alpha value to 1.0 in opt_sample_rgb_2d()Brian Paul2010-11-221-0/+1
|
* Track separate programs for each stageIan Romanick2010-10-271-1/+1
| | | | | The assumption is that all stages are the same program or that varyings are passed between stages using built-in varyings.
* swrast: Print out format on unexpected failure in _swrast_ReadPixels.Vinson Lee2010-10-271-1/+1
|
* mesa: split up the image.c fileBrian Paul2010-10-234-4/+7
| | | | | | New files: pack.c - image/row packing/unpacking functions pixeltransfer.c - pixel scale/bias/lookup functions
* swrast: Print out format on unexpected failure in _swrast_DrawPixels.Vinson Lee2010-10-201-1/+1
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-1355-355/+355
|
* swrast: fix choose_depth_texture_level() to respect mipmap filtering stateBrian Paul2010-10-041-5/+10
| | | | NOTE: this is a candidate for the 7.9 branch.
* ARB_texture_rg: Add GL_RED as a valid GL_DEPTH_TEXTURE_MODEIan Romanick2010-10-011-0/+3
|
* swrast: remove duplicated includeNicolas Kaiser2010-09-301-1/+0
| | | | | | Remove duplicated include. Signed-off-by: Brian Paul <[email protected]>