summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-12-03Revert "android: enable llvm"android-ics-nextChia-I Wu2-3/+2
This reverts commit 14f249643b86fb86ed9636bf6d8df2619305c469.
2011-12-03android: enable llvmChia-I Wu2-2/+3
Revert this if you do not have or want patched versions of llvm, stlport, gralloc, and libEGL.
2011-12-03android: no global object in gallivmChia-I Wu1-12/+4
Fix a race condition between threads.
2011-12-03android: fix gallivm build issuesChia-I Wu1-5/+5
Android ICS uses a difference LLVM SVN revision than the one that gallivm supports.
2011-12-03android: fix build issues when LLVM is enabledChia-I Wu2-3/+0
stlport's assert.h does not like gallium.
2011-12-03android: add llvmpipe supportChia-I Wu7-1/+204
Disabled by default. It requires llvm, stlport, gralloc, and mesa itself to be patched.
2011-12-03android: advertise GL_ARB_texture_non_power_of_twoChia-I Wu1-1/+1
It maps to DisplayHardware::NPOT_EXTENSION in SurfaceFlinger. Does not seem to matter when EGL_ANDROID_image_native_buffer is available.
2011-12-03android: disable SSE translateChia-I Wu1-1/+1
It does not support FIXED and will fail anyway.
2011-12-03android: always flush softpipe to support SurfaceFlingerChia-I Wu1-1/+1
Just a hack. Is this still needed?
2011-12-03i915: enable GL_APPLE_texture_2D_limited_npotChia-I Wu2-0/+2
Enable GL_ARB_texture_non_power_of_two for GLESv1 to advertise GL_APPLE_texture_2D_limited_npo. The former is actually a superset of the latter, but we really want to enable NPOT support in some way.
2011-12-03intel: add support for GL_OES_EGL_image_externalChia-I Wu9-0/+13
The changes to i965 are untested.
2011-12-03egl_glx: fix eglDestroyContextChia-I Wu1-1/+2
Wrong pointers are passed to glXDestroyContext. Spotted by Brian Paul.
2011-12-02i965: Fix emit of a MOV with bad destination channel on gen6 math in FPs.Stuart Abercrombie1-5/+5
Previously a zero writemask would result in dst_chan == -1, meaning an unnecessary MOV with the destination register dictated by undefined memory contents would be emitted before returning. This caused intermittent GPU hangs, e.g. with glean/texCombine. Reviewed-by: Eric Anholt <eric@anholt.net>
2011-12-02mesa: Fix assertions for block size handling in glCompressedTexSubImage2D.Eric Anholt1-2/+2
Anything of less than (bw, bh) size is possible when you consider rectangular textures, and this code is (now) safe for those. Even for power-of-two textures, width could be 4 for FXT1 while not being aligned to block size. Fixes piglit compressedteximage GL_COMPRESSED_RGB_FXT1_3DFX Reviewed-by: Brian Paul <brianp@vmware.com>
2011-12-02mesa: Fix glCompressedTexSubImage (and non-Sub) for height == 2 or 1.Eric Anholt1-1/+1
Generally this code works with width and height aligned to compressed blocks, but at the 2x2 and 1x1 levels of a square texture (or height < bh in general), we were skipping uploading our single row of blocks. Fixes piglit compressedteximage GL_COMPRESSED_RGBA_S3TC_DXT5_EXT. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-12-02mesa: Fix glCompressedTexImage when dstRowStride != srcRowStride.Eric Anholt1-28/+9
Since the MapTextureImage changes on Intel, nwn had corruption in the scrollbar at the load game menu, and corrupted ground textures in the starting zone. Heroes of Newerth's intro screen was also thoroughly garbled. A new piglit test "compressedteximage" was created to regression test this. The issue was this code now seeing dstRowStride aligned to hardware requirements instead of a temporary buffer that gets uploaded to hardware later. The existing code was just trying to memcpy srcRowStride * height / bh, while the glCompressedTexSubImage2D() storage code nearby did the correct walking by blockheight rows at a time. Just reuse the subimage upload instead of duplicating that logic. v2: Update comment at the top of the function (suggestion by Joel Forsberg) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41451 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
2011-12-02nv50/nvc0: fix crash when channel allocation failsMarcin Slusarz2-2/+4
2011-12-02mesa: add casts to fix unpack_SIGNED_GR1616()Brian Paul1-2/+2
We were passing unsigned values to the macro before.
2011-12-02mesa: remove unreachable code in _mesa_unpack_color_span_ubyte()Brian Paul1-64/+0
We checked if srcType == GL_UNSIGNED_BYTE earlier so there was no way to reach this code. This was left-over code from the GLchan removal work. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2011-12-02vbo: remove unreachable _mesa_error() callBrian Paul1-3/+0
If mode is not GL_POINT/LINE/FILL we'll have already reported the error earlier in the function and returned so we can never get here. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2011-12-02mesa: move _mesa_error() call in compressedteximage()Brian Paul1-7/+2
We shouldn't call _mesa_error() if the target is a proxy texture. Errors are handled later in the function. Fixes a Coverity warning. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2011-12-02mesa: fix potential mem leak in generate_mipmap_compressed()Brian Paul1-0/+1
Fixes a coverity warning. Reviewed-by: Vinson Lee <vlee@vmware.com>
2011-12-02glsl: return visit_stop in ir_validate::visit_enter() to silence warningBrian Paul1-0/+1
2011-12-02mesa: fix some minor texstore commentsBrian Paul1-3/+3
For the texsubimage commands, we're not mapping the whole image/region.
2011-12-02mesa: rename MESA_FORMAT_RG88_REV to MESA_FORMAT_RG88Brian Paul7-19/+19
R is in the high byte, G in the low byte.
2011-12-02mesa: rename MESA_FORMAT_RG88 to MESA_FORMAT_GR88Brian Paul12-30/+30
To better reflect the component ordering and be consistent with other format names.
2011-12-02mesa: fix unpacking of RG88_REV texelsBrian Paul2-5/+5
R should be in the high byte and G in the low byte for this format.
2011-12-02i965: Make gen6_resolve_implied_move a no-op for MRF sources.Kenneth Graunke1-0/+3
Attempting to move an MRF to a MRF is not only pointless, it will fail because MRFs are read-only, resulting in garbage in your register. If we already set up a MRF source, there's nothing to resolve anyway. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
2011-12-02mesa: Renumber the tnl attributes to match VERT_ATTRIB*.Mathias Fröhlich1-29/+29
Also renumber the tnl modules vertex attributes to match the renumbered VERT_ATTRIB_* values. This should fix https://bugs.freedesktop.org/show_bug.cgi?id=43353 Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de> Tested-by: Vinson Lee <vlee@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2011-12-02mesa: Extend BITSET64_*_RANGE to work on arbitrary ranges.Mathias Fröhlich1-3/+18
The BITSET64_{TEST,SET,CLEAR}_RANGE macros only work on ranges wither in the lower 32 or in the upper 32 bits of the bitset. This change extends these macros to work on arbitrary ranges possibly crossing the bitset word boundary. Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de> Reviewed-by: Brian Paul <brianp@vmware.com>
2011-12-01i915g: Implement GL_STREAM_* for textures by using untiled textures.Stéphane Marchesin1-1/+1
2011-12-01i915g: Add unsupported PIPE_SHADER_CAP_OUTPUT_READ to silence warnings.Stéphane Marchesin1-0/+2
2011-12-02docs: list GL_OES_compressed_ETC1_RGB8_texture in 7.12 release notesChia-I Wu1-0/+1
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-12-02st/mesa: add support for GL_OES_compressed_ETC1_RGB8_textureChia-I Wu2-0/+20
Have st/mesa recognize MESA_FORMAT_ETC1_RGB8 then we are good to advertise the extension. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-12-02gallium: add PIPE_FORMAT_ETC1_RGB8Chia-I Wu8-2/+165
The format is defined by GL_OES_compressed_ETC1_RGB8_texture. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2011-12-02mesa: add support for GL_OES_compressed_ETC1_RGB8_textureChia-I Wu13-0/+130
Add support for GL_OES_compressed_ETC1_RGB8_texture to core mesa. There is no driver support yet. Unlike desktop GL compressed texture formats, GLES compressed texture formats usually can only be used with glCompressedTexImage2D. All other gl*Tex*Image* functions are updated to check for that. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-12-02mesa: add ETC1 decoding routinesChia-I Wu5-0/+249
The format is defined by GL_OES_compressed_ETC1_RGB8_texture. These routines will be used in the following commit. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-12-02glapi: regenerate files for GL_OES_compressed_ETC1_RGB8_textureChia-I Wu1-3035/+3038
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-12-02glapi: add GL_OES_compressed_ETC1_RGB8_texture for GLESChia-I Wu1-0/+4
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-12-01swrast: Fix signed/unsigned problems with negative strides.Mathias Fröhlich1-2/+2
In swrast_map_renderbuffer negative strides lead to render buffer map pointers that are off by 2^32. Make sure that intermediate negative values are not converted to an unsigned. Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de> Reviewed-by: Brian Paul <brianp@vmware.com>
2011-12-01u_vbuf: Silence uninitialized variable warnings.Vinson Lee1-0/+2
Fixes these GCC warnings. u_vbuf.c: In function ‘u_vbuf_draw_begin’: u_vbuf.c:839:20: warning: ‘max_index’ may be used uninitialized in this function [-Wuninitialized] u_vbuf.c:838:20: warning: ‘min_index’ may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Vinson Lee <vlee@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2011-12-01r600g: add some new pci idsAlex Deucher1-0/+8
Note: this is a candidate for the stable branches. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2011-12-01mesa: fix unpack_ARGB1555_REV()Brian Paul1-4/+5
We weren't doing the necessary byte swap. v2: use same arithmetic as unpack_ARGB1555() to be consistent. Reviewed-by: Michel Dänzer <michel@daenzer.net>
2011-11-30mesa: fix indentation in attrib.cBrian Paul1-1/+1
2011-11-30i965/fs: Fix regression in fbo-alphatest-nocolor.Eric Anholt1-1/+1
In the refactor for handling user-defined out params, we failed to set up the new color output tracking when there was no color drawbuffer in place but alpha testing was on. Just always set up at least one when handling gl_FragColor, since we won't make use of its value unless we need to. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42806
2011-11-30i965/fs: Make register file enum 0 be the undefined register file.Eric Anholt2-8/+25
In 6d874d0ee18b3694c49e0206fa519bd8b746ec24, I checked whether a register that had been stored was BAD_FILE (as opposed to a legitimate GRF), but actually the unset register was ARF NULL because it had been memset to 0. Finding BAD_FILE for unset values in debugging was my intention with that file, so make it the case more often by rearranging the enum. There was only one place we relied on the magic enum register_file to hardware register file correspondance anyway.
2011-11-30i965: Don't perform the precompile on fragment shaders by default.Eric Anholt4-2/+10
It is useful to have this option for shader-db, and it was also good at the time where we were rejecting shaders due to various internal limits we hadn't supported yet. However, at this point the precompile step takes extra time (since not all NOS is known at link time) and spews misleading debug in the common case of debugging a real app. This is left in place for VS, where we still have a couple of codegen failure paths that result in link failure through precompile. Those need to be fixed. shader-db can still get at the debug info it wants using "shader_precompile=true" driconf option. Long term, we can probably build a good-enough app for shader-db to trigger real codegen.
2011-11-30gallium/failover: Remove the deprecated module.Kai Wasserbäch15-1207/+12
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: José Fonseca <jfonseca@vmware.com>
2011-11-30st/mesa: fix indentationBrian Paul1-1/+1
2011-11-30mesa: use _mesa_is_bufferobj() in update_array()Brian Paul1-1/+1