summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r200/r200_tex.c
AgeCommit message (Collapse)Author
2011-01-09r200: Include mfeatures.h in files that perform feature tests.Vinson Lee
2010-11-08radeon: Implement GL_OES_EGL_imageJohann Rudloff
agd5f: add support to radeon/r200/r300 as well
2010-10-13Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg
2010-02-07r200: Fix lod bias correction.Pauli Nieminen
glean/pointSprite shows that rv280 is trying to read from better quality mipmap level. We have to correct default lod bias to match required texture selection.
2010-02-06r200: Add some debug output to texture function.Pauli Nieminen
2010-01-30r200: Remove unnecessary headers.Vinson Lee
2010-01-19r200: use common glCopyTex(Sub)Image codeMaciej Cencora
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-11-17r200: align for mipmap tree changesMaciej Cencora
2009-10-05drivers: don't include texformat.hBrian Paul
And remove other unneeded #includes while we're at it.
2009-08-31r200: Convert r200 to use new style debug code.Pauli Nieminen
Only very few places where realy converted so there isa lot of to do.
2009-04-09Merge remote branch 'origin/master' into radeon-rewriteDave Airlie
Conflicts: src/mesa/drivers/dri/r200/r200_tex.c src/mesa/drivers/dri/r300/r300_cmdbuf.c src/mesa/drivers/dri/r300/r300_context.h src/mesa/drivers/dri/r300/r300_swtcl.c src/mesa/drivers/dri/r300/r300_tex.c src/mesa/drivers/dri/r300/r300_texmem.c src/mesa/drivers/dri/r300/r300_texstate.c src/mesa/drivers/dri/radeon/radeon_tex.c
2009-04-01dri: use BorderColor instead of _BorderChanBrian Paul
2009-04-01radeon: go back and repick texture formats.Dave Airlie
This might trip up some serious FBO users, will have to see, but it avoids the slow paths for all the demos I have.
2009-02-17radeon/r200: drop dirty state from texture object + pp_txoffsetDave Airlie
this is just more code cleanup for old dead code
2009-02-14radeon-common: Fix crash in glGetTexImageNicolai Haehnle
Since texture images are now stored in miptrees, we cannot usually access them directly via the Data pointer. So we wrap Mesa's implementation by map/unmap calls. This crash was triggered by Sauerbraten, Piglit now contains a regression test. Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-02-12radeon/r200/r300: another big merge upheavel.Dave Airlie
This merges lots of the hw state atom emission and firevertices code. it also removes a lot of the extra radeon crap from r300 and merge scissor
2009-02-10r200: invalidate texture paths in some more placesDave Airlie
2009-02-04r200: move to new mipmap interfaceDave Airlie
2009-01-22r200/r300: port r200 texture handling to common codeDave Airlie
we now get texrect + trivial textures working
2009-01-14radeon/r200/r300: initial attempt to convert to common context codeDave Airlie
2009-01-13radeon/r200: start splitting out commonalities into separate headersDave Airlie
2008-09-18mesa: added "main/" prefix to includes, remove some -I paths from ↵Brian Paul
Makefile.template
2008-07-26r200: Do not set second coordinate clamping for 1D texturesNicolai Haehnle
Fixes piglit's tex1d-border test.
2007-05-17change max anisotropy testChristoff Brill
2007-05-17use R200_DEBUG for debug outputChristoff Brill
2007-05-17remove CVS/XFree86 keywordsChristoff Brill
2006-10-15fix handling of textures with a base internal format that does not have all ↵Roland Scheidegger
four rgba values set for radeon and r200 (discovered with a modified glean pixelFormats test, noone ever noticed in over 2 years). For radeon, use hw format I8 as previously, and change tex env to make the correct default values appear for both GL_ALPHA and GL_LUMINANCE textures. For r200, which supports GL_LUMINANCE just fine, use the AL88 hw format for GL_ALPHA textures, since it seems like it's probably not worth the effort to fix up the texture environment (certainly complicated in case of ATI_fragment_shader programs).
2006-10-13implement ARB_point_parameters and ARB_point_sprite on r200. The code is ↵Roland Scheidegger
nearly the same as outlined in bug #4707, except it disables perspective correction for point sprites to make them actually work. And, separate the state atom into two as the tcl parameters would overwrite vertex program parameters when active. Also implement the GL_VERTEX_PROGRAM_POINT_SIZE_ARB option to make vertex programs outputting a point size work correctly (untested). Smooth points will still always be size 1. While here, enable gouraud shading for fog when using fog coord.
2006-09-20try to use a 8888 texture format which will result in only a memcopy in ↵Roland Scheidegger
mesa's texstore functions whenever possible for r200 and r300. r200 can use hw formats argb8888, rgba8888 and abgr8888 (or the opposite on big endian), r300 can use argb8888, bgra8888, rgba8888 and abgr8888 regardless of endian, as it supports free component swizzling.
2004-10-07Add Roland Scheidegger's S3TC patch. This patch does not implement theEric Anholt
(patented) S3TC/DXTC algorithms, but adds an option to dlopen a library module providing functions to do so. Because it uses dlopen, it is only enabled if USE_EXTERNAL_DXTN_LIB=1 is defined (which is only in linux-dri config, so far). It adds support for S3TC to several DRI drivers, and adds a DRI config option to force enabling S3TC even if the software compression/decompression is unavailable. This may allow people to use apps that require S3TC even though they don't have a license to implement the patented material themselves, if those apps use precompressed textures. Ideally we would get permission from the current holder of the patents to implement the algorithm in Mesa, at which point the dlopen mess could go away. Until then, this allows some to run applications they couldn't otherwise, and hopefully will provide us with more push to get the final step of getting that permission done.
2004-08-25print internalFormat value in r200ChooseTextureFormat() error messageBrian Paul
2004-06-19Big-endian texture fixes from Michel Dänzer.Brian Paul
2004-06-17use I8 internal format for GL_INTENSITY, GL_ALPHA and GL_LUMINANCE texture ↵Roland Scheidegger
formats. Fix various small bugs with tex env combine mode GL_DOT3_RGB(A)/GL_DOT3_RGB(A)_EXT
2004-06-02Removed need for sarea.h, various touch ups to get rid of type mismatches.Jon Smirl
2004-04-27Remove include of texutil.h to get build working.Ian Romanick
2004-04-22New glTexImage code.Brian Paul
The gl_texture_format struct now has a StoreTexImageFunc that's called by glTex[Sub]Image[123]D to convert the user's texture data into the specific texture format layout. Now it's much easier to add new texture formats (like the 16/32-bit floating point formats). The texutil.[ch] and texutil_tmp.h files are obsolete.
2004-02-06remove bogus check of texture target in R200TexParameterRoland Scheidegger
2004-01-26remove bogus assertion in DeleteTexture() functionBrian Paul
2004-01-21Make the R200 driver work with the NewTextureObject in Mesa. OtherIan Romanick
drivers that use the texmem interface will likely need similar changes.
2004-01-20Undo some bits from last check-in related to the ctx->Driver.NewTextureObjectBrian Paul
functions. Don't allocate the driver-specific data during texture object creation but do it later as needed (as code originally was).
2004-01-20Before calling _mesa_create_context(), initialize a dd_function_table structBrian Paul
by calling _mesa_init_driver_functions() and then plugging in the driver- specific functions. In particular, make sure ctx->Driver.NewTextureObject points to the appropriate driver function so that _all_ texture objects are augmented with the driver-specific data. Put in a bunch of assertions in the texture-related driver functions that texObj->DriverData is valid. Remove old dead code in near future.
2004-01-13Added support for EXT_texture_mirror_clamp.Ian Romanick
2004-01-11call _mesa_delete_texture_object() from in the driver's DeleteTexture functionBrian Paul
2004-01-05Added def_max_anisotropy and no_neg_lod_bias options to radeon and r200.Felix Kuehling
The def_max_anisotropy option breaks driconf. :( I'm going to upload a fixed version soon.
2003-12-11Updates to tnl_dd_dmatmp.hKeith Whitwell
- Allocate vertices explicitly, rather than trying to talk about dma buffers. - Clean up the various Flush() operations. - Don't allow fallbacks any longer. Provide a support function to detect them ahead o ftime Updates to tnl_dd_vbtmp.h - Get rid of power-of-two vertex strides. Pack all vertices tightly. - Get texunit 2,3 emit working coorrectly. Other stuff: - Get rid of lingering Ubyte color support. - Fix a few compiler warnings.
2003-12-05xmlconfig fixesAlan Hourihane
2003-10-21Update DRI drivers to current DRI CVS and make them work.Jon Smirl
2003-08-06r200 driver, brought over by Jon SmirlKeith Whitwell