summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'draw-instanced'Brian Paul2011-01-152-0/+15
|\ | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/draw/draw_llvm.c src/gallium/drivers/llvmpipe/lp_state_fs.c src/glsl/ir_set_program_inouts.cpp src/mesa/tnl/t_vb_program.c
| * mesa: enable GL_ARB_draw_instanced for software driversBrian Paul2010-12-101-0/+1
| |
| * mesa: add PROGRAM_SYSTEM_VALUE and related tokensBrian Paul2010-12-081-0/+14
| | | | | | | | | | | | System values are shader inputs which don't necessarily change from vertex to vertex or fragment to fragment. gl_InstanceID and gl_FrontFacing are examples.
* | mesa: Add glDepthRangef and glClearDepthf to APIspec.xml.Chia-I Wu2011-01-151-0/+2
| | | | | | | | | | Core mesa has gained support for GL_ARB_ES2_compatibility. Make GLES generated dispatch table use them.
* | mesa: Add getter for GL_SHADER_COMPILER with ARB_ES2_compatibility.Eric Anholt2011-01-141-0/+1
| | | | | | | | Fixes piglit arb_es2_compatibility-shadercompiler
* | mesa: Add getters for ARB_ES2_compatibility MAX_*_VECTORS.Eric Anholt2011-01-141-0/+9
| | | | | | | | Fixes piglit arb_es2_compatibility-maxvectors.
* | mesa: Add support for glDepthRangef and glClearDepthf.Eric Anholt2011-01-145-1/+21
| | | | | | | | | | These are ARB_ES2_compatibility float variants of the core double entrypoints. Fixes arb_es2_compatibility-depthrangef.
* | mesa: Add actual support for glReleaseShaderCompiler from ES2.Eric Anholt2011-01-141-2/+5
| | | | | | | | | | Fixes no-op dispatch warning in piglit arb_es2_compatibility-releaseshadercompiler.c.
* | mesa: Add extension enable bit for GL_ARB_ES2_compatibility.Eric Anholt2011-01-142-0/+2
| |
* | glapi: Regenerate for GL_ARB_ES2_compatibility.Eric Anholt2011-01-143-2522/+2584
| |
* | mesa: Simplify _mesa_base_fbo_format by making it exceptions to teximages.Eric Anholt2011-01-141-43/+24
| | | | | | | | | | | | The comment of "this is just like teximages except for..." is a pretty good clue that we're handling this wrong. By just using the teximage code, we catch a bunch of cases we'd missed, like GL_RED and GL_RG.
* | gles2: Also support GL_BGRA_EXT for glTexSubImage2dKristian Høgsberg2011-01-141-0/+8
| |
* | srgb: fix fbo base format picking.Dave Airlie2011-01-141-1/+1
| | | | | | | | Pointed out by Brian.
* | mesa: Change OES_standard_derivatives to be stand-alone extensionChad Versace2011-01-132-1/+3
| | | | | | | | | | | | | | | | Add a bit in struct gl_extensions for OES_standard_derivatives, and enable the bit by default. Advertise the extension only if the bit is enabled. Previously, OES_standard_derivatives was advertised in GLES2 contexts if ARB_framebuffer_object was enabled.
* | mesa: Add missing break statement in SARGB8 case.Vinson Lee2011-01-131-0/+1
| |
* | mesa/srgb: handle SARGB8 case in the sw fbo renderer.Dave Airlie2011-01-131-0/+4
| |
* | mesa/fbo: prevent assert trigger on i965 with piglit fbo-srgb test.Dave Airlie2011-01-131-0/+2
| |
* | mesa: Move loop variable declarations outside for loop in extensions.c.Vinson Lee2011-01-121-8/+15
| | | | | | | | Fixes MSVC build.
* | mesa: check for dummy renderbuffer in _mesa_FramebufferRenderbufferEXT()Brian Paul2011-01-121-0/+7
| | | | | | | | | | | | | | | | Fixes a failed assertion when a renderbuffer ID that was gen'd but not previously bound was passed to glFramebufferRenderbuffer(). Generate the same error that NVIDIA does. NOTE: This is a candidate for the 7.9 and 7.10 branches.
* | mesa: don't assert in GetIntegerIndexed, etcBrian Paul2011-01-121-6/+12
| | | | | | | | | | | | We were getting an assertion upon invalid pname. NOTE: This is a candidate for the 7.9 and 7.10 branches.
* | mesa: fix num_draw_buffers==0 in fixed-function fragment program generationBrian Paul2011-01-121-2/+2
| | | | | | | | | | | | | | | | This fixes a problem when glDrawBuffers(GL_NONE). The fragment program was writing to color output[0] but OutputsWritten was 0. That led to a failed assertion in the Mesa->TGSI translation code. NOTE: This is a candidate for the 7.9 and 7.10 branches.
* | mesa: Move declaration before code in extensions.c.Vinson Lee2011-01-121-6/+16
| | | | | | | | Fixes SCons build.
* | mesa: Change OES_point_sprite to depend on ARB_point_spriteChad Versace2011-01-121-1/+1
| | | | | | | | | | | | | | | | The extension string in GLES1 contexts always advertised GL_OES_point_sprite. Now advertisement depends on ARB_point_sprite being enabled. Reviewed-by: Ian Romanick <[email protected]>
* | mesa: Change dependencies of some OES extension stringsChad Versace2011-01-121-5/+5
| | | | | | | | | | | | | | Change all OES extension strings that depend on ARB_framebuffer_object to instead depend on EXT_framebuffer_object. Reviewed-by: Ian Romanick <[email protected]>
* | mesa: Add/remove extensions in extension stringChad Versace2011-01-121-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Add GL_OES_stencil8 to ES2. Remove the following: GL_OES_compressed_paletted_texture : ES1 GL_OES_depth32 : ES1, ES2 GL_OES_stencil1 : ES1, ES2 GL_OES_stencil4 : ES1, ES2 Mesa advertised these extensions, but did not actually support them. Reviewed-by: Ian Romanick <[email protected]>
* | mesa: Refactor handling of extension stringsChad Versace2011-01-122-490/+406
| | | | | | | | | | | | | | | | | | | | | | | | Place GL, GLES1, and GLES2 extensions in a unified extension table. This allows one to enable, disable, and query the status of GLES1 and GLES2 extensions by name. When tested on Intel Ironlake, this patch did not alter the extension string [as given by glGetString(GL_EXTENSIONS)] for any API. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* | mesa: include teximage.h to silence warningBrian Paul2011-01-111-0/+1
| |
* | mesa: do a debug check of _mesa_format_to_type_and_comps()Brian Paul2011-01-112-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
* | mesa: fix a few format table mistakes, assertionsBrian Paul2011-01-111-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.
* | mesa/swrast: handle sRGB FBOs correctly (v2)Dave Airlie2011-01-115-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 <[email protected]>
* | mesa: Clean up header file inclusion in cpuinfo.c.Vinson Lee2011-01-081-1/+1
| |
* | mesa: fix an error in uniform arrays in row calculating.Jian Zhao2011-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | Fix the error in uniform row calculating, it may alloc one line more which may cause out of range on memory usage, sometimes program aborted when free the memory. NOTE: This is a candidate for 7.9 and 7.10 branches. Signed-off-by: Brian Paul <[email protected]>
* | mesa: Directly include mfeatures.h in files that perform feature tests.Vinson Lee2011-01-0754-0/+54
| |
* | mesa: Clean up header file inclusion in version.c.Vinson Lee2011-01-061-1/+1
| | | | | | | | | | Include imports.h directly instead of indirectly through context.h. version.c does use any symbols that are added by context.h.
* | mesa: bump version to 7.11Vinson Lee2011-01-051-3/+3
| |
* | mesa: Include mtypes.h in files that use gl_context struct.Vinson Lee2011-01-0536-0/+36
| | | | | | | | | | | | Directly include mtypes.h if a file uses a gl_context struct. This allows future removal of headers that are not strictly necessary but indirectly include mtypes.h for a file.
* | mesa: Consider textures incomplete when maxlevel < baselevel.Eric Anholt2011-01-051-0/+6
| | | | | | | | | | See section 3.8.10 of the GL 2.1 specification. There's no way to do anything sane with that, and drivers would get all sorts of angry.
* | mesa: Fix the baseFormat for GL_COMPRESSED_SLUMINANCE_EXT.Eric Anholt2011-01-041-1/+1
| | | | | | | | | | | | | | It's just LUMINANCE, not LUMINANCE_ALPHA. Fixes fbo-generatemipmap-formats GL_EXT_texture_sRGB-s3tc assertion failure when it tries to pack the L8 channels into LUMINANCE_ALPHA and wonders why it's trying to do that.
* | intel: Merge our choosetexformat fallbacks into core.Eric Anholt2011-01-041-1/+47
| | | | | | | | | | | | We now share the type/format -> MESA_FORMAT_* mappings with software mesa, and the core supports most of the fallbacks hardware drivers will want.
* | mesa: Make _mesa_choose_tex_format() choose formats out of a supported table.Eric Anholt2011-01-043-91/+183
| | | | | | | | | | Right now this is just tweaking the current code to look at the table. Choosing actually supported formats will come later.
* | mesa: preserve 10 bits of precision in the texstore general path for ARGB2101010Marek Olšák2011-01-043-15/+25
| | | | | | | | | | Use make_temp_float_image instead of _make_temp_chan_image. The latter converts the texture to 8 bits/component, losing 2 bits.
* | mesa: Include mtypes.h in renderbuffer.h.Vinson Lee2011-01-031-0/+1
| | | | | | | | | | | | Include mtypes.h for gl_buffer_index symbol. This is a follow-up to commit 65da73c5f87bc39c76ba9e45945da95fff354308.
* | mesa: fix AL44 texture fetch function nybble -> float conversionBrian Paul2011-01-031-2/+2
| | | | | | | | Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32804
* | mesa: Also report the number of renderbuffer alpha bits for GL_LUMINANCE_ALPHA.Eric Anholt2011-01-031-1/+2
| | | | | | | | Noticed by code inspection.
* | mesa: Also report renderbuffer red/green size for GL_RED and GL_RG.Eric Anholt2011-01-031-0/+9
| | | | | | | | Noticed by code inspection.
* | mesa: Use the common logic for "is this baseformat a color format?"Eric Anholt2011-01-034-12/+16
| | | | | | | | | | | | When figuring out whether a renderbuffer should be used to set the visual bits of an FBO, we were missing important baseformats like GL_RED, GL_RG, and GL_LUMINANCE.
* | mesa: Allow color renderbuffers besides just RGB and RGBA.Eric Anholt2011-01-031-2/+1
| | | | | | | | | | | | We did so already for textures to do ARB_fbo's GL_ALPHA/GL_LUMINANCE/etc. support and for ARB_texture_rg's GL_RED and GL_RG, but this path was missed.
* | mesa: Update comment about the list of BaseFormats for gl_formats.Eric Anholt2011-01-031-3/+4
| |
* | mesa: s/GLuint/gl_buffer_index/Brian Paul2011-01-032-6/+10
| |
* | mesa: Assert format is not MESA_FORMAT_COUNT in _mesa_format_to_type_and_comps.Vinson Lee2010-12-231-1/+4
| | | | | | | | The case of format being MESA_FORMAT_COUNT should never occur.