aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* mesa: fix double-underscore namingBrian Paul2010-08-271-4/+4
|
* Fix typo in function name "shading_laguage_version".Kenneth Graunke2010-08-261-2/+2
|
* i965: Start building 965 FS backend.Eric Anholt2010-08-262-11/+26
|
* mesa: fix mixed-up function call nameBrian Paul2010-08-261-2/+2
|
* mesa: Identify packed depth/stencil buffers using the Format field.Nick Bowler2010-08-263-2/+21
| | | | | | | | | | | | | | | | | | | | Intel sometimes uses packed depth/stencil buffers even when only a depth buffer or only a stencil buffer was requested. Common code currently uses the _BaseFormat field to determine whether a depth/stencil wrapper is necessary. But unless the user explicitly requested a packed depth/stencil buffer, the _BaseFormat field does not encode this information, and the required wrappers are not created. The problem was introduced by commit 45e76d2665b38b ("mesa: remove a bunch of gl_renderbuffer fields"), which killed off the _ActualFormat field upon which the decision to create a wrapper used to be made. This patch changes the logic to use the Format field instead, which is more like the old code. Fixes fdo bug 27590. Signed-off-by: Nick Bowler <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* mesa: Don't warn when the desired result of s3tc lib available occurs.Eric Anholt2010-08-251-1/+0
|
* Revert "mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH."Eric Anholt2010-08-251-0/+2
| | | | | | | | | | This reverts commit 001a7bfdfc8b3c8930d5ced21982dbdfb8cd35b3. I hadn't found the section of the spec clarifying that the old behavior was right. Reverting fixes the new version of the testcase, and the Humus demos that could no longer find their uniforms. Bug #29782 Bug #29783
* glsl/mesa: fixes for MSVCAras Pranckevicius2010-08-251-0/+1
| | | | Signed-off-by: Brian Paul <[email protected]>
* glsl: Set up uniform initializers by walking the shaders after linking.Eric Anholt2010-08-242-49/+74
| | | | | | | | | | | | | Previously, uniform initializers were handled by ir_to_mesa as it made its Parameters list. However, uniform values are global to all shaders, and the value set in one Parameters list wasn't propagated to the other gl_program->Parameters lists. By going back through the general Mesa uniform handling, we make sure that all gl_programs get updated values, and also successfully separate uniform initializer handling from ir_to_mesa gl_program generation. Fixes: glsl-uniform-initializer-5.
* mesa: added isblank() for MSVCBrian Paul2010-08-241-0/+1
|
* mesa: Remove extraneous semicolon.Chia-I Wu2010-08-241-1/+1
|
* mesa: Add core.h.Chia-I Wu2010-08-243-47/+81
| | | | | | | | core.h is the public header of core mesa. GLX, WGL, and GLSL are supposed to include this header file. It should be noted that headers included by core.h must not perform feature tests (#if FEATURE_xxx). Otherwise, we cannot, for example, mix a FEATURE_ES2 libmesagallium.a with a FEATURE_GL libglsl.a.
* glsl2: Include imports.h to get snprintf wrapper for MSVCIan Romanick2010-08-231-0/+6
| | | | Signed-off-by: José Fonseca <[email protected]>
* mesa: Fix msvc build of glsl.Aras Pranckevicius2010-08-231-2/+7
| | | | Signed-off-by: José Fonseca <[email protected]>
* mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH.Eric Anholt2010-08-231-2/+0
| | | | Fixes: glsl-getactiveuniform-length.
* mesa: Assorted fixes for es_generator.py on win32.Chia-I Wu2010-08-231-0/+6
| | | | | Fix mixed use of GL_APIENTRY and GLAPIENTRY. Parameter list of a function prototype should never be empty.
* mesa: use driver hook for creating new renderbuffersBrian Paul2010-08-221-2/+2
|
* mesa: Fix GetUniformLocation while compiling display lists.Nick Bowler2010-08-201-1/+9
| | | | | | | | | | | | This function was apparently missing from the display list dispatch table, causing the generic no-op function to be called instead. To make matters worse, the no-op function is indistinguishable from a successful call to GetUniformLocation. GL specifies that GetUniformLocation is executed immediately when compiling display lists. Fixes fdo bug 29622. Signed-off-by: Nick Bowler <[email protected]>
* mesa: Decorate functions with GL_APIENTRY in es_generator.py.Chia-I Wu2010-08-201-2/+2
| | | | Note that GLES headers use GL_APIENTRY, not GLAPIENTRY.
* mesa: Include compiler.h for ASSERT.Chia-I Wu2010-08-206-0/+12
| | | | | mfeatures.h defines ASSERT_NO_FEATURE to ASSERT, which is defined in compiler.h. Header files using the macro should include compiler.h.
* mesa: Silence uninitialized variable warnings in dummy_enum_func.Vinson Lee2010-08-191-10/+10
|
* mesa: Remove unnecessary heaaders from shaderapi.c.Vinson Lee2010-08-181-2/+0
|
* mesa: fpclassify is available on OpenSolaris.Vinson Lee2010-08-181-1/+2
| | | | | | | | | | There is no explicit predefined macro to distinguish between OpenSolaris and Solaris. This patch assumes that the difference is in the compilers. OpenSolaris uses GCC and not the Sun Studio compiler. Assume that the availability of fpclassify is due to GCC. This patch was not tested on Solaris. It would break the build on Solaris with GCC if GCC on Solaris does not have fpclassify.
* mesa: Free linked shaders when deleting the shader program.Eric Anholt2010-08-181-0/+6
|
* Merge branch 'glsl2'Ian Romanick2010-08-166-15/+111
|\ | | | | | | | | Conflicts: src/mesa/program/prog_optimize.c
| * mesa: Check that _XOPEN_SOURCE is defined before using it.Vinson Lee2010-08-151-1/+1
| |
| * mesa: Recent versions of MSVC define the single precision functions already.José Fonseca2010-08-141-1/+2
| |
| * mesa: atan2f and powf need two args.José Fonseca2010-08-141-2/+2
| |
| * Merge branch 'master' into glsl2Ian Romanick2010-08-1347-24/+75
| |\
| * | mesa: Work-arounds for platforms that lack C99 math functionsIan Romanick2010-08-131-0/+28
| | |
| * | glsl2: Move ir_to_mesa handling to driver CompileShader and LinkShader hooks.Eric Anholt2010-08-132-0/+23
| | | | | | | | | | | | | | | This lets drivers override ir_to_mesa with their own codegen, or at least have a native alternative.
| * | glsl2: remove stray semicolonBrian Paul2010-08-111-1/+1
| | |
| * | Merge remote branch 'origin/master' into glsl2Eric Anholt2010-07-2659-5647/+13081
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This pulls in multiple i965 driver fixes which will help ensure better testing coverage during development, and also gets past the conflicts of the src/mesa/shader -> src/mesa/program move. Conflicts: src/mesa/Makefile src/mesa/main/shaderapi.c src/mesa/main/shaderobj.h
| * | | linker: Link built-in functions instead of including them in every shaderIan Romanick2010-07-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an invasive set of changes. Each user shader tracks a set of other shaders that contain built-in functions. During compilation, function prototypes are imported from these shaders. During linking, the shaders are linked with these built-in-function shaders just like with any other shader.
| * | | linker: Track and validate GLSL versions used in shadersIan Romanick2010-07-191-0/+4
| | | |
| * | | i915: Ask the compiler to flatten out all the if statements that it can.Eric Anholt2010-07-191-0/+5
| | | |
| * | | linker: Don't dynamically allocate slots for linked shadersIan Romanick2010-06-301-1/+6
| | | | | | | | | | | | | | | | | | | | The can be at most one shader per stage. There are currently only two stages. There is zero reason to dynamically size this array.
| * | | glsl2: Use Mesa's gl_shader_program instead of our own struct glsl_program.Eric Anholt2010-06-301-0/+3
| | | | | | | | | | | | | | | | This avoids more allocation and shuffling of data around.
| * | | glsl2: Move our data from a glsl_shader* on the side to the main gl_shader *.Eric Anholt2010-06-301-0/+3
| | | | | | | | | | | | | | | | | | | | This saves recompiling at link time. gl_shader->ir is made a pointer so that we don't have to bring exec_list into mtypes.h.
* | | | mesa: fpclassify is available with MinGW.Vinson Lee2010-08-121-3/+3
| | | | | | | | | | | | | | | | This patch fixes the MinGW build.
* | | | mesa: Fix FreeBSD build with llvm enabled.Vinson Lee2010-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | On FreeBSD LC_CTYPE_MASK is not available but 'llvm-config --cppflags' adds the compiler flag -D_GNU_SOURCE to the build.
* | | | mesa: use switch stmt in init_program_limits()Brian Paul2010-08-101-5/+10
| | | |
* | | | mesa: remove obsolete commentsBrian Paul2010-08-101-9/+9
| | | |
* | | | mesa: fix comment typoBrian Paul2010-08-101-1/+1
| |_|/ |/| |
* | | mesa: Reduce header file inclusion in texgen.h.Vinson Lee2010-08-031-1/+4
| | | | | | | | | | | | texgen.h doesn't use any symbols additionally added by mtypes.h.
* | | mesa: Reduce header file inclusion in texcompress_fxt1.h.Vinson Lee2010-08-031-1/+3
| | | | | | | | | | | | texcompress_fxt1.h doesn't use any additional symbols added by mtypes.h.
* | | mesa: Reduce header file inclusion in syncobj.h.Vinson Lee2010-08-021-1/+4
| | | | | | | | | | | | syncobj.h doesn't use any additional symbols that is added by context.h.
* | | mesa: Remove inclusion of compiler.h from mtypes.h.Vinson Lee2010-07-312-1/+1
| | | | | | | | | | | | | | | | | | | | | mtypes.h does not use any symbols from compiler.h. Also add the required headers for files that depended on symbols from compiler.h but were indirectly including compiler.h through mtypes.h.