summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | | mesa: Remove unnecessary header from mm.h.Vinson Lee2010-07-311-3/+0
| | |
* | | mesa: Add headers containing sybmols used by mm.c.Vinson Lee2010-07-311-0/+5
| | |
* | | mesa: Reduce header file inclusion in get.h.Vinson Lee2010-07-311-1/+1
| | | | | | | | | | | | get.h only needs the GL headers.
* | | mesa: Include missing headers in vtxfmt.h.Vinson Lee2010-07-311-0/+3
| | | | | | | | | | | | | | | Include compiler.h for INLINE symbol. Include mtypes.h for GLcontext symbol.
* | | mesa: Include missing header in shared.h.Vinson Lee2010-07-311-0/+1
| | | | | | | | | | | | Include mtypes.h for GLcontext symbol.
* | | mesa: Include missing header in restart.h.Vinson Lee2010-07-311-0/+1
| | |
* | | mesa: Include missing headers in renderbuffer.h.Vinson Lee2010-07-311-0/+5
| | |
* | | mesa: Include missing header in remap.h.Vinson Lee2010-07-311-0/+1
| | | | | | | | | | | | Include compiler.h for INLINE symbol.
* | | mesa: Remove unnecessary headers.Vinson Lee2010-07-315-5/+0
| | |
* | | mesa: Include missing header in pixelstore.h.Vinson Lee2010-07-301-0/+1
| | | | | | | | | | | | Include mtypes.h for GLcontext symbol.
* | | mesa: Include missing headers in nvprogram.h.Vinson Lee2010-07-301-0/+2
| | |
* | | mesa: added gl_program::IndirectRegisterFiles fieldBrian Paul2010-07-301-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Now drivers, etc. can know which register files are accessed with indirect addressing. Before we just checked gl_program::NumAddressRegs but didn't know if that was the constant buffer, temp regs, or what. The only user of this new field so far will be the gallium state tracker.