summaryrefslogtreecommitdiff
path: root/src/mesa/main
AgeCommit message (Collapse)Author
2011-03-11mesa: Move texenvprogram.c to ff_fragment_shader.cpp.Eric Anholt
This file is about to change to generating a shader program instead of a fragment program.
2011-03-11mesa: Don't try to remove an internal shader_program from the hash.Eric Anholt
It fails on assertions if the key isn't actually present.
2011-03-11mesa: move location of some geometry program limitsBrian Paul
The gl_program_constants struct is for limits that are applicable to any/all shader stages. Move the geometry shader-only fields into the gl_constants struct. Remove redundant MaxGeometryUniformComponents field too.
2011-03-11mesa: replace NEED_SECONDARY_COLOR(), RGBA_LOGICOP_ENABLED() with inlinesBrian Paul
and rename them.
2011-03-11mesa: call FLUSH_VERTICES() before deleting shaders, buffers, query objectsBrian Paul
Need to flush rendering (or at least indicate that the rug might be getting pulled out from underneath us) when a shader, buffer object or query object is about to be deleted. Also, this helps to tell the VBO module to unmap its current vertex buffer.
2011-03-08mesa: add ATI_texture_compression_3dcMarek Olšák
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.
2011-03-08mesa: add EXT_texture_compression_latcMarek Olšák
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.
2011-03-07mesa: return after invalidating renderbufferMarek Olšák
2011-03-07mesa: invalidate framebuffer if internal format of renderbuffer is changedMarek Olšák
RenderTexture doesn't have to be called in invalidate_rb, I guess.
2011-03-07mesa: initialize DummyBufferObject's mutexBrian Paul
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.
2011-03-07mesa: remove stray _mesa_finish() call in _mesa_CopyPixels()Brian Paul
Leftover debug code from 6364d75008b4fa580c1cb47c59ba1cf3e0caa6cd.
2011-03-02mesa: added gl_program_constants::MaxAddressOffsetBrian Paul
See https://bugs.freedesktop.org/show_bug.cgi?id=29418
2011-03-02Revert "mesa: reduce calls to _mesa_test_framebuffer_completeness()"Brian Paul
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.
2011-03-02rgtc: remove GL types from this file.Dave Airlie
I'd like to share this file with gallium u_format stuff. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02rgtc: move the texel fetch into common unsigned/signed code.Dave Airlie
This function can be done in the include file also. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02rgtc: fix issues with compressor and signed types.Dave Airlie
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 <airlied@redhat.com>
2011-03-02rgtc: don't try to access off the end of the block.Dave Airlie
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 <airlied@redhat.com>
2011-03-02rgtc: move to using ubyte for fetch instead of chan + fix limitDave Airlie
My previous fix to the byte max was incorrect. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02rgtc: fix fetch function limits for signed typesDave Airlie
2011-03-02rgtc: fixup mipmap generationDave Airlie
this allows swrast to pass mipmap generation for these formats.
2011-03-02swrast/rgtc: fix rendering issues introduced when fix constantsDave Airlie
The max value was wrong and this showed up in the piglit tests.
2011-03-01rgtc: shared the compressor code between signed/unsignedDave Airlie
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 <airlied@redhat.com>
2011-02-28mesa: move PBO-related functions into a new fileBrian Paul
2011-02-28mesa: always generate error in glColorTableParameter[fi]v()Brian Paul
These were only used by GL_SGI_texture_color_table, which is gone now.
2011-02-28mesa: remove GL_SGI_texture_color_table supportBrian Paul
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.
2011-02-28mesa: consolidate framebuffer target lookup codeBrian Paul
2011-02-28mesa: remove some old do-nothing codeBrian Paul
2011-02-28mesa: reduce calls to _mesa_test_framebuffer_completeness()Brian Paul
when updating/validating framebuffer state. The _Status field is set to zero when we need to recompute _Status. Otherwise, it's up to date.
2011-02-28mesa: reduce calls to _mesa_test_framebuffer_completeness()Brian Paul
when doing glCopyTex[Sub]Image() and checking the source buffer's completeness. We only need to determine FBO completeness when the status is indeterminate.
2011-02-28mesa: s/mesaFormat/attFormat/Brian Paul
2011-03-01rgtc: fix void pointer arith.Dave Airlie
should fix scons build.
2011-02-28glsl: Enable GL_OES_texture_3D extension for ES2.Kenneth Graunke
2011-02-28swrast: add RGTC supportDave Airlie
2011-02-28mesa: Add RGTC texture store/fetch support.Dave Airlie
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 <airlied@redhat.com>
2011-02-28mesa: make_float_temp_image non-staticDave Airlie
We need this to do signed stuff for RGTC.
2011-02-22mesa: move comment, change debug codeBrian Paul
2011-02-22mesa: Avoid undeclared ffs function warning on mingw.José Fonseca
2011-02-21Revert "mesa: convert macros to inline functions"Brian Paul
This reverts commit e9ff76aa81d9bd973d46b7e46f1e4ece2112a5b7. Need to use macros so __FUNCTION__ reports the caller.
2011-02-21mesa: convert macros to inline functionsBrian Paul
2011-02-21i965: Use compiler builtins when availableChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-18mesa: MESA_VERBOSE logging for glRead/Draw/CopyPixels, glBlitFramebufferBrian Paul
2011-02-18Point to bugs.freedesktop.org rather than bugzilla.freedesktop.orgCyril Brulebois
Suggested by a freedesktop.org admin. Signed-off-by: Cyril Brulebois <kibi@debian.org>
2011-02-17mesa: fix comments for _mesa_clip_readpixels()Brian Paul
2011-02-17mesa: remove the MESA_NO_DITHER env varBrian Paul
This was sometimes useful back when 16-bit framebuffers were prominent.
2011-02-16mesa: make _mesa_write_renderbuffer_image() non-staticBrian Paul
2011-02-16mesa: 80-column wrapBrian Paul
2011-02-16mesa: fix texture3D mipmap generation for UNSIGNED_BYTE_3_3_2 and 4_4Marek Olšák
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.
2011-02-16mesa: fix mipmap generation for MESA_FORMAT_AL44Marek Olšák
This was missed when implementing AL44.
2011-02-16mesa: use gl_format type instead of GLuintBrian Paul
2011-02-14vbo: bind arrays only when necessaryMarek Olšák
We don't need to call bind_arrays in the vbo module if the states which the function depends on are not dirty.