summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Force GL_SGIS_generate_mipmap to always be enabledIan Romanick2010-09-273-29/+9
| | | | As per discussions at XDS.
* mesa: Force GL_ARB_copy_buffer to always be enabledIan Romanick2010-09-272-10/+4
| | | | As per discussions at XDS.
* mesa/mipmap: fix warning since 1acadebd6270d3604b026842b8a21360968618a0Dave Airlie2010-09-251-1/+1
| | | | 1acadebd6270d3604b026842b8a21360968618a0 fixed the pointer but not the cast.
* mesa: Remove unnecessary headers.Vinson Lee2010-09-243-6/+0
|
* mesa: Fix type typo in glGenerateMipmap handling of GL_UNSIGNED_INT data.Eric Anholt2010-09-241-1/+1
| | | | Fixes ARB_depth_texture/fbo-generatemipmap-formats.
* mesa: fix assertions to handle srgb formatsBrian Paul2010-09-241-4/+8
| | | | | | http://bugs.freedesktop.org/show_bug.cgi?id=30333 NOTE: This is a candidate for the 7.9 branch.
* mesa: Remove EXT_convolution.Eric Anholt2010-09-2315-1855/+44
| | | | More optional code.
* mesa: Remove SGI_color_matrix.Eric Anholt2010-09-2311-172/+3
| | | | Another optional ARB_imaging subset extension.
* mesa: Remove SGI_color_table.Eric Anholt2010-09-2310-316/+4
| | | | Another optional ARB_imaging subset extension.
* mesa: Remove EXT_histogram.Eric Anholt2010-09-2311-1124/+10
| | | | This has always been optional, and not useful.
* mesa: Remove the non-required ARB_imaging extension.Eric Anholt2010-09-235-21/+15
| | | | | | | Many of the EXT_ extensions in the subset have significant code overhead with no users. It is not a required part of GL -- though text describing the extension is part of the core spec since 1.2, it is always conditional on the ARB_imaging extension.
* mesa: don't advertise bogus GL_ARB_shading_language_120 extensionBrian Paul2010-09-215-18/+43
| | | | | | | | | | | Instead of using the invalid GL_ARB_shading_language_120 extension to determine the GLSL version, use a new ctx->Const.GLSLVersion field. Updated the intel and r600 drivers, but untested. See fd.o bug 29910 NOTE: This is a candidate for the 7.9 branch (but let's wait and see if there's any regressions).
* mesa: don't call valid_texture_object() in non-debug buildsBrian Paul2010-09-201-5/+2
| | | | | | | | | This reverts commit c32bac57ed445e48856d74113364287ed6e5cdd4 and silences the warning differently. The _mesa_reference_texobj() function is called quite a bit and we don't want to call valid_texture_object() all the time in non- debug builds.
* mesa: Silence "'valid_texture_object' defined but not used" warning.Vinson Lee2010-09-171-1/+5
|
* mesa: bump version to 7.10Vinson Lee2010-09-171-3/+3
|
* glsl2: Add flags to enable variable index loweringIan Romanick2010-09-171-0/+10
|
* mesa: include mfeatures.h in formats.cBrian Paul2010-09-161-0/+1
| | | | | Otherwise, FEATURE_EXT_texture_sRGB was undefined. This is (part of?) the fix for fd.o bug 30177.
* mesa: Update ES APIspec.xml.Chia-I Wu2010-09-161-9/+5
| | | | | | Enable some extensions now that the needed tokens are defined in GLES/glext.h and GLES2/glext.h. Update the prototype of MultiDrawArrays now that the prototype of _mesa_MultiDrawArraysEXT has been updated.
* mesa: update to version 64 of GL/glext.hBrian Paul2010-09-144-9/+9
| | | | | | A number of other files had to be updated as well because const qualifiers were added to the glMultiDrawArrays() function. Also, GL_FIXED is now defined in glext.h.
* mesa: move, redefine MESA_GEOMETRY_PROGRAMBrian Paul2010-09-142-9/+15
|
* mesa: Less FEATURE_ARB_sync tests.Chia-I Wu2010-09-145-25/+60
| | | | | Add dummy static inline definitions to syncobj.h when FEATURE_ARB_sync is 0, and remove most FEATURE_ARB_sync tests.
* mesa: Remove unused _MESA_INIT_*_FUNCTIONS.Chia-I Wu2010-09-1411-90/+0
| | | | | They were intended to be used to build OpenGL ES only DRI drivers, but that never happened.
* mesa: Remove unused Emit flags from gl_shader_compiler_optionsIan Romanick2010-09-101-2/+0
|
* gallium: Add context profile support to st_api.Chia-I Wu2010-09-101-1/+5
| | | | | | | | | | | | | | | Add struct st_context_attribs to describe context profiles and attributes. Modify st_api::create_context to take the new struct instead of an st_visual. st_context_attribs can be used to support GLX_ARB_create_context_profile and GLX_EXT_create_context_es2_profile in the future. But the motivation for doing it now is to be able to replace ST_API_OPENGL_ES1 and ST_API_OPENGL_ES2 by profiles. Having 3 st_api's to provide OpenGL, OpenGL ES 1.1, and OpenGL ES 2.0 is not a sane abstraction, since all of them share glapi for current context/dispatch management.
* Revert "glapi: Implement optional dispatch logging"Kristian Høgsberg2010-09-095-47/+8
| | | | | | This reverts commit b9abc6139a310677a37754ea7172d976dbf56979 and the follow on fixes (7aae704 and 6fe1b47). It's changing the glapi/driver ABI and causes a number of problems for debug/non-debug builds.
* glsl2: Add EmitNoNoise flag, use it to remove noise opcodesIan Romanick2010-09-092-11/+3
|
* mesa: Only reference logging symbols in debug buildsKristian Høgsberg2010-09-091-0/+11
|
* mesa: Don't reuse DummyFramebuffer as the incomplete framebufferKristian Høgsberg2010-09-092-1/+10
| | | | | | Binding framebuffer 0 on a context that doesn't have a winsys drawable will try to bind the incomplete framebuffer. That fails when that's also the dummy framebuffer.
* glapi: Implement optional dispatch loggingKristian Høgsberg2010-09-095-8/+36
| | | | | | | There's a useful feature buried in glapi to log all API calls to stderr. Unfortunately it requires editing the code and then it's enabled unconditionally for that build. This patch builds in API logging for debug builds and makes it run-time switchable by setting MESA_DEBUG=dispatch.
* glsl: add several EmitNo* options, and MaxUnrollIterationsLuca Barbieri2010-09-082-2/+11
| | | | | | | | | This increases the chance that GLSL programs will actually work. Note that continues and returns are not yet lowered, so linking will just fail if not supported. Signed-off-by: Ian Romanick <[email protected]>
* glsl: make compiler options per-targetLuca Barbieri2010-09-083-15/+35
| | | | | | | This allows us to specify different options, especially useful for chips without unified shaders. Signed-off-by: Ian Romanick <[email protected]>
* mesa: add PIPE_SHADER_* like constants and conversions to/from enums (v2)Luca Barbieri2010-09-082-0/+40
| | | | | Changes in v2: - No longer adds tessellation enums
* mesa: Refactor parameter processing in set_combiner_(operand|source)Ian Romanick2010-09-081-68/+22
| | | | | The enum values were chosen to have sequential values for a reason. Use that to compact and simplify the code.
* mesa: Fix handling of texenv operands for EXT vs ARB versionIan Romanick2010-09-081-18/+19
| | | | | | | | | | GL_EXT_texture_env_combine has slightly more restrictive limits on the valid sources for some operands. This wasn't caught before because almost every driver in Mesa that supports the EXT version also supports the ARB version. Inspired by a patch posted the the mesa-dev mailing list by Andrew Randrianasulu.
* mesa: Enable GL_MAX_VERTEX_ATTRIBS in ES2.Kenneth Graunke2010-09-071-1/+16
| | | | | Signed-off-by: Kristian Høgsberg <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
* mesa: Set the base format of GL_ALPHA FBOs and teach swrast about it.Eric Anholt2010-09-071-0/+6
| | | | | Fixes assertion failures in fbo-alpha with a debug build of Mesa. Bug #29781.
* mesa: Define C99's __func__ macro on MSVC.José Fonseca2010-09-061-0/+12
|
* mesa: don't expose unsupported GL_ARB_geometry_shader4 for nowLuca Barbieri2010-09-051-1/+2
| | | | | | | The new GLSL compiler doesn't support it. Advertising it prevents Unigine Heaven from working, since it attempts to use it.
* mesa: fix up a commentBrian Paul2010-09-031-1/+2
|
* mesa: Fix printf-like warnings.Vinson Lee2010-09-026-16/+16
|
* mesa: fix some printf warnings with castsBrian Paul2010-09-023-8/+8
|
* mesa: Fix many printf-like warnings.Eric Anholt2010-09-013-11/+12
| | | | | | | | Most of these are just typecasting to long to match the arg type. I don't really care too much about getting a GLsizei or whatever appropriate type in. However, there were a number of real bugs, like missing arguments or passing floats to integer format specifiers. My favorite: printflike("%s, argument") is missing an argument.
* mesa: Add __printf__ attribute to printf-like functions to get warnings.Eric Anholt2010-09-012-5/+10
|
* mesa: fix out of bounds memory read in mipmap gen codeBrian Paul2010-09-011-5/+12
| | | | | | | Out of bounds reads could happen for reducing WxH to WxH/2 or WxH to W/2xH. Fixes fd.o bug 29918.
* mesa: initialize dummy framebuffer and renderbuffer mutexesVladimir Vukicevic2010-09-011-0/+2
| | | | | | See fd.o bug 29909. Signed-off-by: Brian Paul <[email protected]>
* Fix inverted version checks in check_extra.Kenneth Graunke2010-08-301-6/+12
| | | | | | | | | | Previously, if an attribute was enabled by either a specific GL version or an extension, the check would require -both- to be enabled. This bug was not discovered earlier because version checks are currently only ever used on their own. Signed-off-by: Kristian Høgsberg <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
* mesa: move null ptr check (fdo bug 29843)Brian Paul2010-08-271-2/+2
|
* mesa: Use the format info to identify packed depth/stencil formats.Nick Bowler2010-08-271-6/+2
| | | | | | | | | | | Due to a misunderstanding of the Z24_X8 and X8_Z24 formats, the earlier patch created depth/stencil wrappers for them. This broke swrast. Use the format info instead, which only identifies Z24_S8 and S8_Z24 as packed depth/stencil. It also has the advantage of being nicer code. Signed-off-by: Nick Bowler <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* mesa: use atexit() handler to release GLSL compiler memoryBrian Paul2010-08-271-0/+9
| | | | | | | | This releases a bunch of memory that was showing up as leaks with valgrind. If atexit() isn't widely supported we may need to add some #ifdef tests around the call.
* mesa: free the fallback texture object in free_shared_state()Brian Paul2010-08-271-0/+4
|