summaryrefslogtreecommitdiff
path: root/src/mesa/main
AgeCommit message (Collapse)Author
2010-10-14mesa: remove post-convolution width/height varsBrian Paul
These were left-over bits from when convolution was removed.
2010-10-14Only install vtxfmt tables for OpenGLKristian Høgsberg
GLES1 and GLES2 install their own exec pointers and don't need the Save table. Also, the SET_* macros use different indices for the different APIs so the offsets used in vtxfmt.c are actually wrong for the ES APIs.
2010-10-14Drop the "neutral" tnl moduleKristian Høgsberg
Just always check for FLUSH_UPDATE_CURRENT and call Driver.BeginVertices when necessary. By using the unlikely() macros, this ends up as a 10% performance improvement (for isosurf, anyway) over the old, complicated function pointer swapping.
2010-10-13mesa: Clean up various 'unused parameter' warnings in shaderapiIan Romanick
2010-10-13mesa: Clean up two 'comparison between signed and unsigned' warningsIan Romanick
2010-10-13mesa: Refactor validation of shader targetsIan Romanick
Actually validate that the implementation supports the particular shader target as well. Previously if a driver only supported vertex shaders, for example, glCreateShaderObjectARB would gladly create a fragment shader. NOTE: this is a candidate for the 7.9 branch.
2010-10-13mesa: Silence unused variable warningIan Romanick
2010-10-13Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg
2010-10-13Drop GLframebuffer typedef and just use struct gl_framebufferKristian Høgsberg
2010-10-13Rename GLvisual and __GLcontextModes to struct gl_configKristian Høgsberg
2010-10-13gl: Remove unused GLcontextModes fieldsKristian Høgsberg
2010-10-13Get rid of GL/internal/glcore.hKristian Høgsberg
__GLcontextModes is always only used as an implementation internal struct at this point and we shouldn't install glcore.h anymore. Anything that needs __GLcontextModes should just include the struct in its headers files directly.
2010-10-12mesa: reformatting, comments, code movementBrian Paul
2010-10-12mesa: remove assertion w/ undeclared variable texelBytesBrian Paul
2010-10-13glsl: add support for shader stencil exportDave Airlie
This adds proper support for the GL_ARB_shader_stencil_export extension to the GLSL compiler. Thanks to Ian for pointing out where I need to add things.
2010-10-13mesa: improve texstore for 8/24 formats and add texstore for S8.Dave Airlie
this improves mesa texstore for 8/24 so it can create S24X8/X24S8 variants by keeping the depth bits static. it also adds a texstore for S8 so we can write out an S8 texture to use in the sampler for accel draw pixels to save memory bw. The logic seems sound here, I've worked it out a few times on paper, though it would be good to have some review. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-13mesa: add support for FRAG_RESULT_STENCIL.Dave Airlie
this is needed to add support for stencil shader export. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-12mesa: Validate assembly shaders when GLSL shaders are usedIan Romanick
If an GLSL shader is used that does not provide all stages and assembly shaders are provided for the missing stages, validate the assembly shaders. Fixes bugzilla #30787 and piglit tests glsl-invalid-asm0[12]. NOTE: this is a candidate for the 7.9 branch.
2010-10-08main: Enable GL_ARB_explicit_attrib_location for swrastIan Romanick
2010-10-07gles2: Add GL_EXT_texture_format_BGRA8888 supportKristian Høgsberg
2010-10-01rgtc: Detect RGTC formats as color formats and as compressed formatsIan Romanick
2010-10-01mesa: Trivial correction to commentIan Romanick
2010-10-01mesa: Fix misplaced #endifIan Romanick
If FEATURE_texture_s3tc is not defined, FXT1 formats would erroneously fall through to the MESA_FORMAT_RGBA_FLOAT32 case.
2010-10-01ARB_texture_rg: Add GL_COMPRESSED_{RED,RG} cases in _mesa_is_color_formatIan Romanick
2010-10-01mesa: Add ARB_texture_compression_rgtc as an alias for ↵Ian Romanick
EXT_texture_compression_rgtc Change the name in the extension tracking structure to ARB (from EXT).
2010-10-01mesa: Enable GL_ARB_texture_rg in software pathsIan Romanick
2010-10-01ARB_texture_rg: Allow RED and RG textures as FBO color buffer attachmentsIan Romanick
2010-10-01ARB_texture_rg: Add R8, R16, RG88, and RG1616 internal formatsIan Romanick
2010-10-01ARB_texture_rg: Handle RED and RG the same as RGB for tex envIan Romanick
2010-10-01ARB_texture_rg: Add GL_RED as a valid GL_DEPTH_TEXTURE_MODEIan Romanick
2010-10-01ARB_texture_rg: Add GL_TEXTURE_{RED,GREEN}_SIZE query supportIan Romanick
2010-10-01ARB_texture_rg: Correct some errors in RED / RG internal format handlingIan Romanick
Fixes several problems: The half-float, float, and integer internal formats depend on ARB_texture_rg and other extensions. RG_INTEGER is not a valid internal format. Generic compressed formats depend on ARB_texture_rg, not EXT_texture_compression_rgtc. Use GL_RED instead of GL_R.
2010-09-30mesa: Don't reference a W component in setting up a vec3 uniform component.Eric Anholt
The 965 driver would try to set up storage for the W component, and the offsets would get mixed up.
2010-09-30main: remove duplicated includesNicolas Kaiser
Remove duplicated includes. Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-28mesa: Move the list of builtin uniform info from ir_to_mesa to shared code.Eric Anholt
I'm still not pleased with how builtin uniforms are handled, but as long as we're relying on the prog_statevar stuff this seems about as good as it'll get.
2010-09-27Remove GL_EXT_cull_vertexIan Romanick
This is only used in the i915 driver where it provides little benefit for very few applications that use it with fixed function TNL.
2010-09-27Remove GL_MESA_packed_depth_stencilIan Romanick
This extension was never enabled in any driver.
2010-09-27mesa: Force GL_SGIS_generate_mipmap to always be enabledIan Romanick
As per discussions at XDS.
2010-09-27mesa: Force GL_ARB_copy_buffer to always be enabledIan Romanick
As per discussions at XDS.
2010-09-25mesa/mipmap: fix warning since 1acadebd6270d3604b026842b8a21360968618a0Dave Airlie
1acadebd6270d3604b026842b8a21360968618a0 fixed the pointer but not the cast.
2010-09-24mesa: Remove unnecessary headers.Vinson Lee
2010-09-24mesa: Fix type typo in glGenerateMipmap handling of GL_UNSIGNED_INT data.Eric Anholt
Fixes ARB_depth_texture/fbo-generatemipmap-formats.
2010-09-24mesa: fix assertions to handle srgb formatsBrian Paul
http://bugs.freedesktop.org/show_bug.cgi?id=30333 NOTE: This is a candidate for the 7.9 branch.
2010-09-23mesa: Remove EXT_convolution.Eric Anholt
More optional code.
2010-09-23mesa: Remove SGI_color_matrix.Eric Anholt
Another optional ARB_imaging subset extension.
2010-09-23mesa: Remove SGI_color_table.Eric Anholt
Another optional ARB_imaging subset extension.
2010-09-23mesa: Remove EXT_histogram.Eric Anholt
This has always been optional, and not useful.
2010-09-23mesa: Remove the non-required ARB_imaging extension.Eric Anholt
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.
2010-09-21mesa: don't advertise bogus GL_ARB_shading_language_120 extensionBrian Paul
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).
2010-09-20mesa: don't call valid_texture_object() in non-debug buildsBrian Paul
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.