summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-01-12getopt: Make code more portable.José Fonseca3-12/+18
2011-01-12getopt: Import OpenBSD getopt implementation for MSVC.José Fonseca5-0/+607
2011-01-12scons: Update windows build for vgapi->openvg rename.José Fonseca1-1/+1
2011-01-12scons: Fix build on systems without libOpenVG.soJosé Fonseca2-5/+6
2011-01-12egl: When EGL_DRIVER is set, do not add other drivers.Chia-I Wu1-5/+14
Setting EGL_DRIVER forces the driver to be loaded, as documented. There should be no fallbacks.
2011-01-12egl: libEGL depends on LOCAL_LIBS.Chia-I Wu1-1/+1
So that libEGL is rebuilt whenever LOCAL_LIBS changes.
2011-01-12egl_dri2: Fix eglGetProcAddress.Chia-I Wu1-1/+2
The driver struct is zeroed after dri2_load. Oops.
2011-01-12scons: Updates for targets/egl-static.Chia-I Wu8-33/+187
Update SConscripts to re-enable or add support for EGL on windows and x11 platforms respectively. targets/egl-gdi is replaced by targets/egl-static, where "-static" means pipe drivers and state trackers are linked to statically by egl_gallium, and egl_gallium is a built-in driver of libEGL. There is no more egl_gallium.dll on Windows.
2011-01-12targets/egl-static: New EGL target for scons.Chia-I Wu7-129/+469
This target is based on and replaces egl-gdi. It is suitable for both windows and x11.
2011-01-11glsl: Add type inference support for remaining expression opcodes.Kenneth Graunke1-0/+48
2011-01-11i965: Tighten up the check for flow control interfering with coalescing.Eric Anholt1-12/+26
This greatly improves codegen for programs with flow control by allowing coalescing for all instructions at the top level, not just ones that follow the last flow control in the program.
2011-01-12r600g: texture instructions also work fine with TGSI_FILE_INPUTChristian König1-1/+3
2011-01-12r600g: DP4 also supports writemaskingChristian König1-8/+6
2011-01-12r600g: Why all this fiddling with tgsi_helper_copy?Christian König1-21/+41
tgsi_helper_copy is used on several occasions to copy a temporary result into the real destination register to emulate writemasks for OP3 and reduction operations. According to R600 ISA that's unnecessary. This patch fixes this use for MAD, CMP and DP4.
2011-01-12r600g: fix tex and vtx joiningChristian König1-2/+2
2011-01-11glsl: Fix the lowering of variable array indexing to not lose write_masks.Eric Anholt1-13/+37
Fixes glsl-complex-subscript on 965.
2011-01-11i965: Remove dead fallback for stencil _Enabled but no stencil buffer.Eric Anholt1-8/+0
The _Enabled field is the thing that takes into account whether there's a stencil buffer. Tested with piglit glx-visuals-stencil.
2011-01-11r600g: Fixed SIN/COS/SCS for the case where the operand is a literal.Tilman Sauerbeck1-2/+15
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de> Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
2011-01-11r600c: add evergreen ARL support.Alberto Milone1-14/+69
Signed-off-by: Alberto Milone <alberto.milone@canonical.com>
2011-01-11noop: remove dead dri targetJerome Glisse4-141/+0
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-01-11r600g: move user fence into base radeon structureJerome Glisse6-43/+42
This avoid any issue when context is free and we still try to access fence through radeon structure. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-01-11configure: bump libdrm version requirement to 2.4.23Brian Paul1-3/+3
NOTE: This is a candidate for the 7.10 (and 7.9?) branch.
2011-01-11mesa: include teximage.h to silence warningBrian Paul1-0/+1
2011-01-11mesa: do a debug check of _mesa_format_to_type_and_comps()Brian Paul2-1/+28
Make sure that all formats are handled in this function. It's easy to miss this function when adding new pixel formats. See also http://bugs.freedesktop.org/show_bug.cgi?id=31544
2011-01-11mesa: fix a few format table mistakes, assertionsBrian Paul1-7/+8
The BaseFormat field was incorrect for a few R and RG formats. Fix a couple assertions too. NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-01-10glsl: Autogenerate builtin_functions.cpp as part of the build process.Kenneth Graunke6-13652/+40
Python is already necessary for other parts of Mesa, so there's no reason we can't just generate it. This patch updates both make and SCons to do so.
2011-01-10glsl: Disallow 'in' and 'out' on globals in GLSL 1.20Ian Romanick1-5/+5
Fixes piglit tests glsl-1.20/compiler/qualifiers/in-01.vert and glsl-1.20/compiler/qualifiers/out-01.vert and bugzilla #32910. NOTE: This is a candidate for the 7.9 and 7.10 branches. This patch also depends on the previous two commits.
2011-01-10glsl: Refresh autogenerated parser file.Ian Romanick1-259/+258
For the previous commit.
2011-01-10glsl: Add version_string containing properly formatted GLSL versionIan Romanick2-14/+14
2011-01-10glcpp: Refresh autogenerated lexer and parser files.Ian Romanick1-184/+181
For the previous commit.
2011-01-10glcpp: Generate an error for division by zeroIan Romanick1-1/+6
When GCC encounters a division by zero in a preprocessor directive, it generates an error. Since the GLSL spec says that the GLSL preprocessor behaves like the C preprocessor, we should generate that same error. It's worth noting that I cannot find any text in the C99 spec that says this should be an error. The only text that I can find is line 5 on page 82 (section 6.5.5 Multiplicative Opertors), which says, "The result of the / operator is the quotient from the division of the first operand by the second; the result of the % operator is the remainder. In both operations, if the value of the second operand is zero, the behavior is undefined." Fixes 093-divide-by-zero.c test and bugzilla #32831. NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-01-10glcpp: Regenerate glcpp-parse.cChad Versace1-0/+21
2011-01-10glcpp: Fix segfault when validating macro redefinitionsChad Versace1-0/+21
In _token_list_equal_ignoring_space(token_list_t*, token_list_t*), add a guard that prevents dereferncing a null token list. This fixes test src/glsl/glcpp/tests/092-redefine-macro-error-2.c and Bugzilla #32695.
2011-01-10i965: Use a new miptree to avoid software fallbacks due to drawing offset.Eric Anholt2-40/+67
When attaching a small mipmap level to an FBO, the original gen4 didn't have the bits to support rendering to it. Instead of falling back, just blit it to a new little miptree just for it, and let it get revalidated into the stack later just like any other new teximage. Bug #30365.
2011-01-10intel: Drop the speculatively-use-firstImage-mt in validation.Eric Anholt1-17/+0
It's been replaced by just setting texObj->mt to image->mt at TexImage time.
2011-01-10intel: Don't relayout the texture on maxlevel change.Eric Anholt1-7/+6
This avoids relayouts in the common case of glGenerateMipmap() or people doing similar things. Bug #30366.
2011-01-10intel: When making a new teximage miptree, make a full one.Eric Anholt1-79/+68
If we hit this path, we're level 1+ and the base level got allocated as a single level instead of a full tree (so we don't match intelObj->mt). This tries to recover from that so that we end up with 2 allocations and 1 validation blit (old -> new) instead of allocations equal to number of levels and levels - 1 blits.
2011-01-10meta: Don't tweak BaseLevel when doing glGenerateMipmap().Eric Anholt1-4/+1
We don't need to worry about levels other than MaxLevel because we're minifying -- the lower levels (higher detail) won't contribute to the result. By changing BaseLevel, we forced hardware that doesn't support BaseLevel != 0 to relayout the texture object.
2011-01-10Revert "intel: Always allocate miptrees from level 0, not tObj->BaseLevel."Eric Anholt10-82/+152
This reverts commit 7ce6517f3ac41bf770ab39aba4509d4f535ef663. This reverts commit d60145d06d999c5c76000499e6fa9351e11d17fa. I was wrong about which generations supported baselevel adjustment -- it's just gen4, nothing earlier. This meant that i915 would have never used the mag filter when baselevel != 0. Not a severe bug, but not an intentional regression. I think we can fix the performance issue another way.
2011-01-10i965: Add #defines for HiZ and separate stencil buffer commands.Kenneth Graunke1-0/+3
2011-01-10i965: Add new HiZ related bits to WM_STATE.Kenneth Graunke1-1/+8
2011-01-10i965: Rename more #defines to 3DSTATE rather than CMD or CMD_3D.Kenneth Graunke3-22/+22
Again, this makes it match the documentation.
2011-01-10i965: Remove unused #defines which only contain the sub-opcode.Kenneth Graunke1-22/+0
Most _3DSTATE defines contain the command type, sub-type, opcode, and sub-opcode (i.e. 0x7905). These, however, contain only the sub-opcode (i.e. 0x05). Since they are inconsistent with the rest of the code and nothing uses them, simply delete them. The _3DOP and _3DCONTROL defines seemed similar, and were also unused.
2011-01-10glsl: At link-time, check that globals have matching centroid qualifiersChad Versace1-0/+6
Fixes bug 31923: http://bugs.freedesktop.org/show_bug.cgi?id=31923
2011-01-10Add GLX_TLS setting to configs/default.Tom Fogal1-0/+1
Should have gone in with 31351dc029ff0e12a250e3ffc509f4f01e025a24, thanks to Dan Nicholson for noticing.
2011-01-11mesa/swrast: handle sRGB FBOs correctly (v2)Dave Airlie5-16/+33
From reading EXT_texture_sRGB and EXT_framebuffer_sRGB and interactions with FBO I've found that swrast is converting the sRGB values to linear for blending when an sRGB texture is bound as an FBO. According to the spec and further explained in the framebuffer_sRGB spec this behaviour is not required unless the GL_FRAMEBUFFER_SRGB is enabled and the Visual/config exposes GL_FRAMEBUFFER_SRGB_CAPABLE_EXT. This patch fixes swrast to use a separate Fetch call for FBOs bound to SRGB and avoid the conversions. v2: export _mesa_get_texture_dimensions as per Brian's comments. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-01-10Export TLS support in gl.pc.Tom Fogal4-1/+10
2011-01-10r300g: add debug option for buffer upload loggingMarek Olšák3-0/+9
2011-01-10st/egl: Fix a void pointer arithmetic warning.Chia-I Wu1-1/+1
2011-01-10mesa: Remove GLES overlay.Chia-I Wu9-162/+18
With core mesa doing runtime API checks, GLES overlay is no longer needed. Make --enable-gles-overlay equivalent to --enable-gles[12]. There may still be places where compile-time checks are done. They could be fixed case by case.