summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'primitive-restart-cleanup'Brian Paul2010-10-219-3079/+3155
|\ | | | | | | | | | | | | | | Conflicts: docs/relnotes-7.10.html This branch is a re-do of the primitive-restart branch with all the intermediate/temporary stuff cleaned out.
| * mesa: plug in primitive restart functionBrian Paul2010-10-213-0/+18
| |
| * mesa: regenerated files with primitive restartBrian Paul2010-10-212-3073/+3096
| |
| * mesa: set/get primitive restart stateBrian Paul2010-10-213-6/+40
| |
| * mesa: driver hook for primitive restartBrian Paul2010-10-211-0/+1
| |
* | mesa: add missing cases for packing red/green imagesBrian Paul2010-10-211-0/+48
| |
* | mesa: add GL_RG case to _mesa_source_buffer_exists()Brian Paul2010-10-211-0/+1
|/ | | | Fixes failure with glReadPixels(format=GL_RG)
* mesa: Remove unused vtxfmt_tmp.h.Chia-I Wu2010-10-211-603/+0
| | | | | It was used by the "neutral" tnl module that was dropped in 81ccb3e2ce708619f4c23537a237d61bdffdd35f.
* mesa: Remove FEATURE_ARB_shading_language_120 macro.Kenneth Graunke2010-10-202-5/+0
| | | | Everything should be able to support 1.20 at this point.
* mesa: Add missing else in do_row_3DBrian Rogers2010-10-181-1/+1
| | | | | | This fixes erroneous "bad format in do_row()" messages Signed-off-by: Brian Paul <[email protected]>
* mesa: Add missing header to shaderobj.h.Vinson Lee2010-10-151-0/+1
| | | | Include compiler.h for ASSERT symbol.
* glsl: Slightly change the semantic of _LinkedShadersIan Romanick2010-10-143-19/+20
| | | | | | | | | | | | | | | Previously _LinkedShaders was a compact array of the linked shaders for each shader stage. Now it is arranged such that each slot, indexed by the MESA_SHADER_* defines, refers to a specific shader stage. As a result, some slots will be NULL. This makes things a little more complex in the linker, but it simplifies things in other places. As a side effect _NumLinkedShaders is removed. NOTE: This may be a candidate for the 7.9 branch. If there are other patches that get backported to 7.9 that use _LinkedShader, this patch should be cherry picked also.
* mesa: remove post-convolution width/height varsBrian Paul2010-10-141-35/+19
| | | | These were left-over bits from when convolution was removed.
* Only install vtxfmt tables for OpenGLKristian Høgsberg2010-10-141-2/+4
| | | | | | 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.
* Drop the "neutral" tnl moduleKristian Høgsberg2010-10-144-113/+2
| | | | | | | 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.
* mesa: Clean up various 'unused parameter' warnings in shaderapiIan Romanick2010-10-131-6/+14
|
* mesa: Clean up two 'comparison between signed and unsigned' warningsIan Romanick2010-10-131-2/+2
|
* mesa: Refactor validation of shader targetsIan Romanick2010-10-131-10/+33
| | | | | | | | | 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.
* mesa: Silence unused variable warningIan Romanick2010-10-131-0/+1
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-13137-1219/+1219
|
* Drop GLframebuffer typedef and just use struct gl_framebufferKristian Høgsberg2010-10-136-19/+18
|
* Rename GLvisual and __GLcontextModes to struct gl_configKristian Høgsberg2010-10-136-46/+33
|
* gl: Remove unused GLcontextModes fieldsKristian Høgsberg2010-10-133-38/+0
|
* Get rid of GL/internal/glcore.hKristian Høgsberg2010-10-135-8/+131
| | | | | | | __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.
* mesa: reformatting, comments, code movementBrian Paul2010-10-121-78/+99
|
* mesa: remove assertion w/ undeclared variable texelBytesBrian Paul2010-10-121-1/+0
|
* glsl: add support for shader stencil exportDave Airlie2010-10-132-0/+2
| | | | | 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.
* mesa: improve texstore for 8/24 formats and add texstore for S8.Dave Airlie2010-10-131-119/+144
| | | | | | | | | | | | | 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 <[email protected]>
* mesa: add support for FRAG_RESULT_STENCIL.Dave Airlie2010-10-131-2/+3
| | | | | | this is needed to add support for stencil shader export. Signed-off-by: Dave Airlie <[email protected]>
* mesa: Validate assembly shaders when GLSL shaders are usedIan Romanick2010-10-121-12/+40
| | | | | | | | | | 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.
* main: Enable GL_ARB_explicit_attrib_location for swrastIan Romanick2010-10-081-1/+2
|
* gles2: Add GL_EXT_texture_format_BGRA8888 supportKristian Høgsberg2010-10-073-1/+15
|
* rgtc: Detect RGTC formats as color formats and as compressed formatsIan Romanick2010-10-011-0/+9
|
* mesa: Trivial correction to commentIan Romanick2010-10-011-1/+1
|
* mesa: Fix misplaced #endifIan Romanick2010-10-011-1/+1
| | | | | If FEATURE_texture_s3tc is not defined, FXT1 formats would erroneously fall through to the MESA_FORMAT_RGBA_FLOAT32 case.
* ARB_texture_rg: Add GL_COMPRESSED_{RED,RG} cases in _mesa_is_color_formatIan Romanick2010-10-011-0/+2
|
* mesa: Add ARB_texture_compression_rgtc as an alias for ↵Ian Romanick2010-10-014-8/+9
| | | | | | EXT_texture_compression_rgtc Change the name in the extension tracking structure to ARB (from EXT).
* mesa: Enable GL_ARB_texture_rg in software pathsIan Romanick2010-10-011-0/+1
|
* ARB_texture_rg: Allow RED and RG textures as FBO color buffer attachmentsIan Romanick2010-10-011-2/+8
|
* ARB_texture_rg: Add R8, R16, RG88, and RG1616 internal formatsIan Romanick2010-10-018-30/+515
|
* ARB_texture_rg: Handle RED and RG the same as RGB for tex envIan Romanick2010-10-011-0/+6
|
* ARB_texture_rg: Add GL_RED as a valid GL_DEPTH_TEXTURE_MODEIan Romanick2010-10-011-1/+2
|
* ARB_texture_rg: Add GL_TEXTURE_{RED,GREEN}_SIZE query supportIan Romanick2010-10-011-0/+10
|
* ARB_texture_rg: Correct some errors in RED / RG internal format handlingIan Romanick2010-10-011-9/+32
| | | | | | | | | | | | | | 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.
* mesa: Don't reference a W component in setting up a vec3 uniform component.Eric Anholt2010-09-301-1/+5
| | | | | The 965 driver would try to set up storage for the W component, and the offsets would get mixed up.
* main: remove duplicated includesNicolas Kaiser2010-09-303-6/+1
| | | | | | Remove duplicated includes. Signed-off-by: Brian Paul <[email protected]>
* mesa: Move the list of builtin uniform info from ir_to_mesa to shared code.Eric Anholt2010-09-282-1/+245
| | | | | | 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.
* Remove GL_EXT_cull_vertexIan Romanick2010-09-277-1782/+1719
| | | | | This is only used in the i915 driver where it provides little benefit for very few applications that use it with fixed function TNL.
* Remove GL_MESA_packed_depth_stencilIan Romanick2010-09-272-2/+0
| | | | This extension was never enabled in any driver.
* mesa: Force GL_SGIS_generate_mipmap to always be enabledIan Romanick2010-09-273-29/+9
| | | | As per discussions at XDS.