summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
Commit message (Collapse)AuthorAgeFilesLines
* Revert "mesa: Remove pointless comparison of unsigned integer with a ↵Vinson Lee2010-03-041-4/+9
| | | | | | | | | | | | | | negative constant." This reverts commit a05fdbcb719ac64e6be842372813f0f4ca2f4f93. Removing the comparison is wrong. The comparison with -1 should be changed to another value (probably PROGRAM_UNDEFINED) along with another change in the shader assembler. Conflicts: src/mesa/shader/prog_execute.c
* glsl: Remove unsigned greater than or equal zero comparison.Vinson Lee2010-03-041-1/+1
|
* glsl: Remove unsigned greater than or equal zero comparison.Vinson Lee2010-03-041-1/+1
|
* glsl: Return NULL on _slan_gen_asm error path on non-debug builds.Vinson Lee2010-03-041-0/+1
| | | | | Exit the function early on the error path, instead of continuing, to prevent a null pointer dereference later on.
* glsl: Add assert to check input to strcmp.Vinson Lee2010-03-041-0/+1
|
* glsl: Add assert to check input to strcmp.Vinson Lee2010-03-021-0/+1
|
* glsl: Move assert from outside to inside of _slang_gen_swizzle function.Vinson Lee2010-02-271-1/+1
|
* glsl: Assert input to strcmp is not null.Vinson Lee2010-02-271-0/+1
|
* glsl: Assert pointer is not null before dereferencing.Vinson Lee2010-02-271-0/+1
|
* glsl: implement support for GL_EXT_texture_arrayBrian Paul2010-02-259-83/+246
| | | | | | | | GL_EXT_texture_array is different from the existing GL_MESA_texture_array support in that the former is only supported for GLSL, not fixed-function. The shadow compare versions of the sampler functions haven't been tested yet. The non-shadow versions have been tested with a new piglit test.
* mesa: added texture array targets in sizeof_glsl_type()Brian Paul2010-02-251-0/+4
|
* mesa: added cases for texture array targetsBrian Paul2010-02-251-0/+2
|
* mesa: Move src/mesa/glapi/dispatch.h to mesa.Chia-I Wu2010-02-251-1/+1
| | | | | | glapi/dispatch.h is a core Mesa header file. Move the header file to main/ to make this clear. It also becomes clear after this change that IN_DRI_DRIVER is only used in core Mesa to enable the remap table.
* mesa: Silence compiler format warning.Vinson Lee2010-02-191-1/+1
|
* mesa: fix snprintf() typoBrian Paul2010-02-192-4/+4
|
* mesa: restore _mesa_snprintf() - it's needed for WindowsBrian Paul2010-02-198-22/+22
| | | | This reverts part of commit 298be2b028263b2c343a707662c6fbfa18293cb2
* mesa: casts to silence new warnings from printf()Brian Paul2010-02-191-1/+1
|
* mesa: remove abs/negate from fetch_vector1ui()Brian Paul2010-02-191-14/+1
| | | | | | This function is only used for the NV unpack instructions. Negate/abs make no sense and removing the code fixes Windows compiler warnings. Found by Karl Schultz.
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-1917-256/+256
|
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-1926-128/+128
|
* mesa: replace _mesa_bzero() with memset()Brian Paul2010-02-195-6/+6
|
* mesa: replace old MEMCPY macro with memcpyBrian Paul2010-02-194-4/+4
|
* Remove _mesa_memset in favor of plain memset.Kenneth Graunke2010-02-194-5/+5
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke2010-02-1912-15/+15
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Remove _mesa_atoi in favor of plain atoi.Kenneth Graunke2010-02-193-9/+9
|
* Remove _mesa_strncmp in favor of plain strncmp.Kenneth Graunke2010-02-194-8/+8
|
* Remove _mesa_strcmp in favor of plain strcmp.Kenneth Graunke2010-02-198-21/+20
|
* Remove _mesa_strlen in favor of plain strlen.Kenneth Graunke2010-02-1914-21/+21
|
* Remove _mesa_strcpy in favor of plain strcpy.Kenneth Graunke2010-02-193-3/+3
|
* Remove _mesa_strncat in favor of plain strncat.Kenneth Graunke2010-02-191-8/+8
|
* Remove _mesa_strstr in favor of plain strstr.Kenneth Graunke2010-02-192-9/+9
|
* glsl: Silence unused value warning.Vinson Lee2010-02-171-0/+2
|
* mesa: Remove pointless comparison of unsigned integer with a negative constant.Vinson Lee2010-02-151-9/+4
|
* glsl: use new program cloning functionsBrian Paul2010-02-141-2/+2
|
* mesa: added _mesa_clone_vertex/fragment_program()Brian Paul2010-02-141-0/+16
| | | | To reduce casting elsewhere...
* mesa: Fix compiler warningsKarl Schultz2010-02-135-12/+12
| | | | | Add explicit casts, fix constant types, fix variable types. Fixes about 340 warnings in MSFT Visual Studio.
* glsl: implement layout qualifiersBrian Paul2010-02-131-19/+110
| | | | | | | | | | | | | For GL_ARB_fragment_coord_conventions. This only applies to gl_FragCoord and controls pixel center origin and pixel center integer. For example: layout (origin_upper_left, pixel_center_integer) varying vec4 gl_FragCoord; This features introduces the idea of re-declaring variables with a changed type. This may also apply to arrays in some cases but that's not implemented at this time.
* glsl: added type layout field and new type compare funcBrian Paul2010-02-132-2/+45
| | | | | Note: because of a weird dependency checking bug, a 'make clean' may be needed before recompiling.
* mesa: copy frag coord layout fields tooBrian Paul2010-02-131-0/+2
|
* scons: User friendly message for code generated filesJosé Fonseca2010-02-101-2/+2
|
* Simplify GLSL extension mechanism.Michal Krol2010-02-101-2/+2
| | | | | Since extension name and extension name string are the same, collapse them into one name.
* glsl: GLSL extensions have the GL_ prefixBrian Paul2010-02-101-2/+2
| | | | | | | | | Both the #extension directive name and the preprocessor symbol start with the GL_ prefix. For example: ... New glean/glsl1 tests have been added to test the #extension feature.
* Merge branch 'gallium-nopointsizeminmax'Roland Scheidegger2010-02-092-0/+66
|\ | | | | | | | | | | | | Conflicts: src/gallium/drivers/nv10/nv10_state.c src/gallium/drivers/nv20/nv20_state.c src/gallium/drivers/nv50/nv50_program.c
| * gallium: add point size clamp to implementation limits in vertex shaderRoland Scheidegger2010-02-042-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The point size min/max registers (unused by mesa state tracker) were removed since most hardware couldn't do much with them. However, we don't want to have to rely on hw to do point size clamping correctly to implementation dependent limits, hence have to do that in the vertex shader. This should also solve a potential problem with (non-AA) points smaller than 1.0 which according to OGL still have size 1.0. Note that OGL point rendering is odd, in particular point sprites are rasterized differently to points. Some hardware might support those different modes, but in any case the different clamping values used for smooth/multisampled/sprite enabled points might help a bit for hw which rasterizes points the same as point sprites. Also tweak mesa's ff to vertex shader translation so don't have to clamp twice in case of point attenuation.
* | mesa: add back-door support for cylindrical texture wrap modeBrian Paul2010-02-091-0/+1
| | | | | | | | | | | | | | | | | | If the texture priority field is 0.125 set the PROG_PARAM_BIT_CYL_WRAP flag. The gallium state tracker will look for this flag. This feature is only for testing purposes and may be remove at some point. But if it's useful we could write a GL/Mesa extension to expose it properly.
* | mesa: debug output for ARLBrian Paul2010-02-051-0/+3
| |
* | mesa: change ctx->Driver.ProgramStringNotify() to return GLbooleanBrian Paul2010-02-044-12/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | GL_TRUE indicates that the driver accepts the program. GL_FALSE indicates the program can't be compiled/translated by the driver for some reason (too many resources used, etc). Propogate this result up to the GL API: set GL_INVALID_OPERATION error if glProgramString() was called. Set shader program link status to GL_FALSE if glLinkProgram() was called. At this point, drivers still don't do any program checking and always return GL_TRUE.
* | mesa: check/clamp texture/program matrix accessesBrian Paul2010-02-031-2/+6
| | | | | | | | Further testing should reveal if any these assertions are hit...
* | mesa: change _mesa_find_free_register() to find multiple free regsBrian Paul2010-02-013-29/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, _mesa_find_free_register() would scan the given shader to find a free/unused register of the given type. But subsequent calls would return the same register again. This caused a failure in the _mesa_remove_output_reads() function which sometimes needs several free temps. Now use a new function which build a vector of 'used' flags and another function which searches that vector for an unused register starting at a position that's incremented for each call. Fixes fd.o bug 26317. Note that a regression test for this has been added to the glean/glsl1 test. (cherry picked from commit e0d01c9d7f46ccd531f8dd1a04c5ac067200ef1e)
* | mesa: added _mesa_print_vp/p_inputs() functions (debug aids)Brian Paul2010-02-012-0/+47
| |