summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* mesa: add ATI_texture_compression_3dcMarek Olšák2011-03-087-0/+30
| | | | | | | LUMINANCE_ALPHA_LATC2 = LUMINANCE_ALPHA_3DC, so this is easy. Note that there is no specification for 3DC, just a few white papers from ATI.
* mesa: add EXT_texture_compression_latcMarek Olšák2011-03-0813-7/+234
| | | | | | | | | | | | | | | | | The encoding/decoding algorithms are shared with RGTC. Thanks to some magic with the base format, the RGTC texstore functions work for LATC too. swrast passes the related piglit tests besides two things: - The alpha channel is wrong (it's always 1), however the incorrect alpha channel makes some other tests fail too, so I guess it's unrelated to LATC. - Signed LATC fetches aren't correct yet (signed values are clamped to [0,1]), however RGTC has the same problem. Further testing (with other of my patches) shows that hardware drivers and softpipe work. BTW, ETQW uses this extension.
* mesa: return after invalidating renderbufferMarek Olšák2011-03-071-0/+1
|
* mesa: invalidate framebuffer if internal format of renderbuffer is changedMarek Olšák2011-03-072-6/+31
| | | | RenderTexture doesn't have to be called in invalidate_rb, I guess.
* mesa: initialize DummyBufferObject's mutexBrian Paul2011-03-071-0/+1
| | | | | | The mutex's fields were all zeros. That's OK on Linux, but not Windows. NOTE: This is a candidate for the 7.10 branch.
* mesa: remove stray _mesa_finish() call in _mesa_CopyPixels()Brian Paul2011-03-071-2/+0
| | | | Leftover debug code from 6364d75008b4fa580c1cb47c59ba1cf3e0caa6cd.
* mesa: added gl_program_constants::MaxAddressOffsetBrian Paul2011-03-022-0/+2
| | | | See https://bugs.freedesktop.org/show_bug.cgi?id=29418
* Revert "mesa: reduce calls to _mesa_test_framebuffer_completeness()"Brian Paul2011-03-021-1/+1
| | | | | | | This reverts commit 1f9a0a4e6e5566c36c781add5f1e62af3efdfb58. This caused trouble with Lightsmark w/ i965 driver and fbo/fbo-blit-d24s8 (see bug 34894). It's probably something simple but no time to debug now.
* rgtc: remove GL types from this file.Dave Airlie2011-03-021-10/+10
| | | | | | I'd like to share this file with gallium u_format stuff. Signed-off-by: Dave Airlie <[email protected]>
* rgtc: move the texel fetch into common unsigned/signed code.Dave Airlie2011-03-022-65/+41
| | | | | | This function can be done in the include file also. Signed-off-by: Dave Airlie <[email protected]>
* rgtc: fix issues with compressor and signed types.Dave Airlie2011-03-022-10/+23
| | | | | | | | | | With signed types we weren't hitting this test however the comment stating this doesn't happen often doesn't apply when using signed types since an all 0 block is quite common which isn't abs min or max. this fixes the limits correctly again also. Signed-off-by: Dave Airlie <[email protected]>
* rgtc: don't try to access off the end of the block.Dave Airlie2011-03-021-2/+2
| | | | | | | | if the values are all in the last dword, the high bits can be 0, This fixes a valgrind warning I saw when playing with mipmaps. Signed-off-by: Dave Airlie <[email protected]>
* rgtc: move to using ubyte for fetch instead of chan + fix limitDave Airlie2011-03-021-13/+13
| | | | | | My previous fix to the byte max was incorrect. Signed-off-by: Dave Airlie <[email protected]>
* rgtc: fix fetch function limits for signed typesDave Airlie2011-03-021-2/+2
|
* rgtc: fixup mipmap generationDave Airlie2011-03-021-2/+7
| | | | this allows swrast to pass mipmap generation for these formats.
* swrast/rgtc: fix rendering issues introduced when fix constantsDave Airlie2011-03-021-1/+1
| | | | The max value was wrong and this showed up in the piglit tests.
* rgtc: shared the compressor code between signed/unsignedDave Airlie2011-03-012-696/+403
| | | | | | | | No idea why I didn't do it like this the first time, but share the code like other portions of mesa do using _tmp.h suffix and some #defines for the types. Signed-off-by: Dave Airlie <[email protected]>
* mesa: move PBO-related functions into a new fileBrian Paul2011-02-2813-390/+472
|
* mesa: always generate error in glColorTableParameter[fi]v()Brian Paul2011-02-281-23/+6
| | | | These were only used by GL_SGI_texture_color_table, which is gone now.
* mesa: remove GL_SGI_texture_color_table supportBrian Paul2011-02-288-149/+1
| | | | | | 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: consolidate framebuffer target lookup codeBrian Paul2011-02-281-89/+33
|
* mesa: remove some old do-nothing codeBrian Paul2011-02-281-3/+0
|
* mesa: reduce calls to _mesa_test_framebuffer_completeness()Brian Paul2011-02-281-1/+1
| | | | | when updating/validating framebuffer state. The _Status field is set to zero when we need to recompute _Status. Otherwise, it's up to date.
* mesa: reduce calls to _mesa_test_framebuffer_completeness()Brian Paul2011-02-281-2/+6
| | | | | | when doing glCopyTex[Sub]Image() and checking the source buffer's completeness. We only need to determine FBO completeness when the status is indeterminate.
* mesa: s/mesaFormat/attFormat/Brian Paul2011-02-281-4/+4
|
* rgtc: fix void pointer arith.Dave Airlie2011-03-011-2/+2
| | | | should fix scons build.
* glsl: Enable GL_OES_texture_3D extension for ES2.Kenneth Graunke2011-02-281-2/+1
|
* swrast: add RGTC supportDave Airlie2011-02-282-0/+20
|
* mesa: Add RGTC texture store/fetch support.Dave Airlie2011-02-287-3/+1286
| | | | | | | | | This adds support for the RGTC unsigned and signed texture storage and fetch methods. the code is a port of the DXT5 alpha compression code. Signed-off-by: Dave Airlie <[email protected]>
* mesa: make_float_temp_image non-staticDave Airlie2011-02-282-23/+32
| | | | We need this to do signed stuff for RGTC.
* mesa: move comment, change debug codeBrian Paul2011-02-221-3/+5
|
* mesa: Avoid undeclared ffs function warning on mingw.José Fonseca2011-02-221-0/+6
|
* Revert "mesa: convert macros to inline functions"Brian Paul2011-02-211-22/+22
| | | | | | This reverts commit e9ff76aa81d9bd973d46b7e46f1e4ece2112a5b7. Need to use macros so __FUNCTION__ reports the caller.
* mesa: convert macros to inline functionsBrian Paul2011-02-211-22/+22
|
* i965: Use compiler builtins when availableChris Wilson2011-02-212-9/+17
| | | | Signed-off-by: Chris Wilson <[email protected]>
* mesa: MESA_VERBOSE logging for glRead/Draw/CopyPixels, glBlitFramebufferBrian Paul2011-02-183-0/+38
|
* Point to bugs.freedesktop.org rather than bugzilla.freedesktop.orgCyril Brulebois2011-02-181-1/+1
| | | | | | Suggested by a freedesktop.org admin. Signed-off-by: Cyril Brulebois <[email protected]>
* mesa: fix comments for _mesa_clip_readpixels()Brian Paul2011-02-171-2/+2
|
* mesa: remove the MESA_NO_DITHER env varBrian Paul2011-02-173-16/+0
| | | | This was sometimes useful back when 16-bit framebuffers were prominent.
* mesa: make _mesa_write_renderbuffer_image() non-staticBrian Paul2011-02-162-3/+14
|
* mesa: 80-column wrapBrian Paul2011-02-161-2/+2
|
* mesa: fix texture3D mipmap generation for UNSIGNED_BYTE_3_3_2 and 4_4Marek Olšák2011-02-161-2/+2
| | | | | | | Oops, I copy-pasted a typo from 3_3_2. The 3_3_2 part is a candidate for 7.9 and 7.10. The 4_4 part isn't, because AL44 is in neither branches.
* mesa: fix mipmap generation for MESA_FORMAT_AL44Marek Olšák2011-02-164-1/+61
| | | | This was missed when implementing AL44.
* mesa: use gl_format type instead of GLuintBrian Paul2011-02-161-2/+2
|
* vbo: bind arrays only when necessaryMarek Olšák2011-02-142-0/+3
| | | | | We don't need to call bind_arrays in the vbo module if the states which the function depends on are not dirty.
* mesa: remove some unused gl_shader fieldsBrian Paul2011-02-111-2/+0
|
* mesa: remove unused BITFIELD64 macrosBrian Paul2011-02-081-16/+1
|
* mesa: remove _mesa_create_context_for_api()Brian Paul2011-02-082-32/+10
| | | | Just add the gl_api parameter to _mesa_create_context().
* mesa: remove _mesa_initialize_context_for_api()Brian Paul2011-02-082-35/+9
| | | | Just add the gl_api parameter to _mesa_initialize_context().
* mesa: add/update VERBOSE_API loggingBrian Paul2011-02-088-6/+113
|