summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_texfilter.c
AgeCommit message (Collapse)Author
2011-03-08swrast: flip the conditionals in shadow_compare4() for readabilityBrian Paul
2011-03-08swrast: add coord clamping, fix comparisons for shadow testingPhilip Taylor
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 <brianp@vmware.com>
2011-01-05swrast: Remove unnecessary headers.Vinson Lee
2010-11-22swrast: init alpha value to 1.0 in opt_sample_rgb_2d()Brian Paul
2010-10-13Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg
2010-10-04swrast: fix choose_depth_texture_level() to respect mipmap filtering stateBrian Paul
NOTE: this is a candidate for the 7.9 branch.
2010-10-01ARB_texture_rg: Add GL_RED as a valid GL_DEPTH_TEXTURE_MODEIan Romanick
2010-09-25swrast: update comments for REMAINDER() macroBrian Paul
2010-03-23swrast: improve depth texture mipmap selectionBrian Paul
We still don't do proper min/mag filtering but this is better than just sampling the base mipmap level all the time. Fixes piglit depth-level-clamp test. Fixes fd.o bug 27256.
2010-02-25swrast: add 0.5 bias in tex_array_slice() per the specBrian Paul
2010-02-25swrast: the only wrap mode for selecting texture array slices is clampBrian Paul
2010-01-27swrast: silence double->float assignment warningsBrian Paul
Reported by Karl Schultz.
2010-01-04mesa: make texture BorderColor a union of float/int/uintBrian Paul
When we have integer-valued texture formats, the texture border color must also store integer and uint values. With GL 3.0, the new glTexParameterIiv() and glTexParameterIuiv() functions can set the border color to int or uint values.
2009-10-28swrast: fix texel decoding in opt_sample_rgba_2d()Brian Paul
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-09-23Merge branch 'softpipe-opt'Keith Whitwell
Conflicts: progs/demos/cubemap.c src/gallium/drivers/softpipe/sp_tex_sample.c src/gallium/drivers/softpipe/sp_texture.c
2009-09-21swrast: fix cube face selectionBrian Paul
If arx and ary are equal, we still want to choose from one of them, and not arz. This is the same as Michal's softpipe fix.
2009-08-24mesa/swrast: use one fewer divide in swrast's choose_cube_face alsoKeith Whitwell
Same change as for softpipe
2009-06-16Merge branch 'mesa_7_5_branch'Brian Paul
Conflicts: src/mesa/main/api_validate.c
2009-06-16mesa: fix REMAINDER() macroBrian Paul
The results were incorrect for some negative values of A. See bug 21872.
2009-05-12swrast: update/restore the opt_sample_rgb/rgba_2d() functionsBrian Paul
2009-04-28swrast: add missing break in clamp_rect_coord_linear()Brian Paul
See bug 21461.
2009-04-06swrast: fix texture border color interpretationBrian Paul
The texture border color must be interpreted according to the texture's base format. For example, for a GL_ALPHA texture, sampling the border color should return (0,0,0,borderAlpha). This wasn't an issue here until I removed the legacy texenv code (we always use the combiner path now).
2009-04-01swrast: remove unused integer lerp functionsBrian Paul
2009-04-01swrast: refactor depth/shadow sampling codeBrian Paul
2009-04-01swrast: do texture sampling/combining in floating pointBrian Paul
The code's cleaner and a step toward supporting float-valued texture sampling. Some optimizations for common cases can be added and re-enabled...
2009-03-11mesa: remove gl_texture_object::_Function field and associated codeBrian Paul
It was only used in one place in swrast.
2009-01-28mesa: remove GL_SGIX_shadow, GL_SGIX_shadow_ambient and GL_SGIX_depth_textureBrian Paul
Everyone should be using the newer/better ARB versions of these extensions.
2009-01-20mesa: silence uninitialized var warningsBrian Paul
2008-12-05mesa: assorted clean-ups, updated comments, etc.Brian
2008-12-05mesa: replace large macros with inline functionsBrian
2008-11-28mesa: add missing break statementsBrian Paul
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-09-13mesa: return after _mesa_problem() callsGuillaume Melquiond
2008-06-19mesa: tweak mipmap level selection for cube mapsBrian Paul
This is just a hack. After we convert the 3D texcoord into a face plus 2D texcoord we need to recompute the partial derivatives and mipmap LOD. But we don't have the info to do that. Adjusting the original mipmap level by -1 seems to give somewhat better results than before though.
2007-11-23need to check border width in sample_linear_2d() - fixes failed assertion in ↵Brian
texwrap.c test
2007-11-19fix some texture format assertions, etcBrian
2007-10-17Replace repeat_remainder() with a simpler macro that just casts args to ↵Brian
unsigned.
2007-06-11Replace texobj->Complete with texobj->_Complete since it's a derived field.Brian
2007-06-07Fix ARB_fp spec conformance bug WRT shadow sampling.Ian Romanick
The ARB_fp (and other assembly-level fragment program specs) say that the depth comparison function is always GL_NONE in fragment program mode.
2007-05-16Initial implementation of MESA_texture_arrayIan Romanick
Shadow sampling from texture arrays is still not implemented. Everything else should be there, though.
2007-04-14Fix sample_depth_texture() to handle texture rectangle coords.Brian
2007-02-14test for POT before using sample_2d_linear_repeat()Etienne Clement
2006-09-18check for n <= 1 in compute_min_mag_ranges(), bug 8320Brian Paul
2006-04-05Check/use texture border color when sampling depth textures. (bug 6498)Brian Paul
Silence some warnings.
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-10-01GL_EXT_packed_depth_stencil changesBrian Paul