summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-12-18mesa/swrast/st: add ARB_occlusion_query2 support.Dave Airlie
This gets my vote for most pointless extension of all time, I'm guessing some driver could possibly optimise for this instead of counting it might just get a true/false, but I'm not really sure. need this to eventually advertise 3.3 despite its total uselessness. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-12-18mapi: Clean up sources.mk.Chia-I Wu
Rename MAPI_GLAPI_SOURCES to MAPI_UTIL_SOURCES. Rename macro MAPI_GLAPI_CURRENT to MAPI_MODE_UTIL. Update the comments to make it clear that mapi may be used in two ways and how.
2010-12-18mapi: Clean up u_current interface.Chia-I Wu
Try not to use macros to make u_current.h appear to be glapi.h. Use u_current.h to implement glapi.h instead whenever possible.
2010-12-18mapi: Add ABI-tag note.Chia-I Wu
TLS requires kernel >= 2.4.20. Per glapi.
2010-12-17Refresh autogenerated file builtin_function.cpp.Kenneth Graunke
NOTE: The 7.9 and 7.10 branches will need their builtins refreshed too. Rather than cherry-picking this commit, run 'make builtins'.
2010-12-17glsl/builtins: Compute the correct value for smoothstep(vec, vec, vec).Kenneth Graunke
These mistakenly computed 't' instead of t * t * (3.0 - 2.0 * t). Also, properly vectorize the smoothstep(float, float, vec) variants. NOTE: This is a candidate for the 7.9 and 7.10 branches.
2010-12-17gallivm: Cleanup util_format_xxx_fetch_xxx call generation.José Fonseca
No need to register function prototypes in the module now that we call the C function pointer directly -- less LLVM objects lying around. Limited testing with lp_test_format.
2010-12-17glsl: Expose a public glsl_type::void_type const pointer.Kenneth Graunke
This is analogous to glsl_type::int_type and all the others.
2010-12-17r300g: finally fix the texture corruption on r3xx-r4xxMarek Olšák
Even though a bound texture stays bound when calling set_fragment_sampler_views, it must be assigned a new cache region depending on the occupancy of other texture units. This fixes: https://bugs.freedesktop.org/show_bug.cgi?id=28800 Thanks to Álmos <aaalmosss@gmail.com> for finding the bug in the code. NOTE: This is a candidate for both the 7.9 and 7.10 branches.
2010-12-16Remove OES_compressed_paletted_texture from the ES2 extension list.Kenneth Graunke
We don't support it.
2010-12-16softpipe: remove sp_tex_tile_cache_border_color()Brian Paul
With swizzling done at the end of texture sampling, we can greatly simplify swizzling of the border color. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32460
2010-12-16softpipe: fix depth texture sampling regressionBrian Paul
We need to keep using the pipe_get_tile_swizzle() even though there's no swizzling because we need to explicitly pass in the surface format. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32459
2010-12-16gallivm: fix copy&paste error from previous commitBrian Paul
Fixes piglit regression, http://bugs.freedesktop.org/show_bug.cgi?id=32452 NOTE: This is a candidate for the 7.10 branch
2010-12-16r600c : inline vertex format is not updated in an app, switch to use vfetch ↵richard
constants. For the 7.9 and 7.10 branches as well.
2010-12-16intel: Support glCopyTexImage() from XRGB8888 to ARGB8888.Eric Anholt
The only mismatch between the two is that we have to clear the destination's alpha to 1.0. Fixes WOW performance on my Ironlake, from a few frames a second to almost playable.
2010-12-16intel: Try to sanely check that formats match for CopyTexImage.Eric Anholt
Before, we were going off of a couple of known (hopeful) matches between internalFormats and the cpp of the read buffer. Instead, we can now just look at the gl_format of the two to see if they match. We should avoid bad blits that might have been possible before, but also allow different internalFormats to work without having to enumerate each one.
2010-12-16intel: Drop commented intel_flush from copy_teximage.Eric Anholt
The blit that follows appears in the command stream so it's serialized with previous rendering. Any queued vertices in the tnl layer were already flushed up in mesa/main/.
2010-12-16intel: Update renderbuffers before looking up CopyTexImage's read buffer.Eric Anholt
Not fixing a particular bug, just noticed by code inspection.
2010-12-16gallivm: work around LLVM 2.6 bug when calling C functionsBrian Paul
Create a constant int pointer to the C function, then cast it to the function's type. This avoids using trampoline code which seem to be inadvertantly freed by LLVM in some situations (which leads to segfaults). The root issue and work-around were found by José. NOTE: This is a candidate for the 7.10 branch
2010-12-16draw: s/varient/variant/Brian Paul
2010-12-16svga: s/varient/variant/Brian Paul
2010-12-16i965g: s/varient/variant/Brian Paul
2010-12-16i915g: s/varient/variant/Brian Paul
2010-12-16softpipe: s/varient/variantBrian Paul
2010-12-16st/mesa: s/varient/variantBrian Paul
2010-12-16i965: Set the alternative floating point mode on gen6 VS and WM.Eric Anholt
This matches how we did the math instructions pre-gen6, though it applies to non-math as well. Fixes vp1-LIT test 2 (degenerate case: 0 ^ 0 -> 1)
2010-12-16i915: Fix INTEL_DEBUG=wm segmentation faultShuang He
The program should be disassembled after it's uploaded
2010-12-16nvfx: fix fragprog word swapping on big-endian machinesBen Skeggs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2010-12-15gallium: properly check for src->dst blit compatibilitiesJerome Glisse
Spotted by Christoph Bumiller & Jose Fonseca Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-15r600g: fix pow(0, 0) evaluating to NaNFredrik Höglund
We have to use the non-IEEE compliant version of MUL here, since log2(0) is -inf, and 0 * -inf is NaN in IEEE arithmetic. candidates for 7.10 branch
2010-12-15r600g: need to reference upload buffer as the might still live accross flushJerome Glisse
Can't get away from referencing upload buffer as after flush a vertex buffer using the upload buffer might still be active. Likely need to simplify the pipe_refence a bit so we don't waste so much cpu time in it. candidates for 7.10 branch Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-14st/mesa: fix incorrect prev pointer in destroy_program_variants()Brian Paul
2010-12-14softpipe: do texture swizzle during texture samplingBrian Paul
Instead of when we read texture tiles. Now swizzling happens after the shadow depth compare step. This fixes the piglit glsl-fs-shadow2d* tests (except for proj+bias because of a GLSL bug).
2010-12-14mesa: more program debug codeBrian Paul
2010-12-14tgsi: document texture opcodesBrian Paul
2010-12-14glsl: new glsl_strtod() wrapper to fix decimal point interpretationBrian Paul
We always want to use '.' as the decimal point. See http://bugs.freedesktop.org/show_bug.cgi?id=24531 NOTE: this is a candidate for the 7.10 branch.
2010-12-14gallivm: do texture swizzle after shadow compareBrian Paul
We need to swizzle after the shadow comparison so that the GL_DEPTH_MODE functionality is handled properly. This fixes all the piglit glsl-fs-shadow2d*.shader_test cases, except for glsl-fs-shadow2dproj-bias.shader_test which fails because of a bug in the GLSL compiler (fd.o 32395).
2010-12-14st/mesa: rename the varient release functionsBrian Paul
2010-12-14r600g: fix segfault when translating vertex bufferJerome Glisse
Note the support for non float vertex draw likely regressed need to find what we want to do there. candidates for 7.10 branches Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-14mesa: Clean up header file inclusion in prog_optimize.h.Vinson Lee
2010-12-14mesa: Clean up header file inclusion in prog_cache.h.Vinson Lee
2010-12-14mesa: Clean up header file inclusion in nvvertparse.h.Vinson Lee
2010-12-13i965: Add support for using the BLT ring on gen6.Eric Anholt
2010-12-13i965: Improve the hacks for ARB_fp scalar^scalar POW on gen6.Eric Anholt
This is still awful, but my ability to care about reworking the old backend so we can just get a temporary value into a POW is awfully low since the new backend does this all sensibly. Fixes: fp1-LIT test 1 fp1-LIT test 3 (case x < 0) fp1-POW test (exponentiation) fp-lit-mask
2010-12-13st/mesa: 80-columns wrapping, whitespace fixes in st_cb_bitmap.cBrian Paul
2010-12-13st/mesa: add geom program code in destroy_program_variants()Brian Paul
2010-12-13st/mesa: program struct commentsBrian Paul
2010-12-13st/mesa: use st_fragment_program() instead of castBrian Paul
2010-12-13st/mesa: rename variableBrian Paul
2010-12-13st/mesa: minor re-indentingBrian Paul