summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang
Commit message (Collapse)AuthorAgeFilesLines
* mesa: move shader/slang/* sources to main/slang/*Brian Paul2010-06-1049-27869/+0
| | | | Reduce the source tree depth a bit.
* mesa: move uniforms.c to main/Brian Paul2010-06-101-1/+1
|
* mesa: refactor shader api / object codeBrian Paul2010-06-101-2/+4
| | | | | Remove the unneeded ctx->Driver hooks for shader-related functions. Move state and API-related things into main/.
* glsl: handle indirectly indexed input registers in linkerBrian Paul2010-06-021-29/+108
| | | | | | | | | | For example, if the fragment shader reads gl_TexCoord[i] with a dynamic index we need to set all the InputsRead bits for all texcoords. We were already doing this for shader outputs. Refactored the later code so inputs and outputs are handled with similar code. Fixes a swrast failure with piglit's glsl-texcoord-array.shader_test
* glsl: fix bad sanity-check assertionBrian Paul2010-06-021-1/+1
|
* glsl: silence unused var warningsBrian Paul2010-05-242-0/+4
|
* mesa: Handle FEATURE_es2_glsl differences at runtime tooKristian Høgsberg2010-05-243-16/+29
| | | | | | | Now that we can support different APIs at runtime, we need to check the context for the API we're currently providing as well. https://bugs.freedesktop.org/show_bug.cgi?id=28194
* glsl: change variable declared assertion into conditionalBrian Paul2010-05-032-3/+2
| | | | | | | | | The slang_variable::declared field originated as a debug field but can be promoted for use during sematic error checking. Fixes fd.o bug 27921. NOTE: this is a candidate for back-porting to the 7.8 stable branch.
* glsl: s/sprintf/_mesa_snprintf/Vinson Lee2010-05-017-29/+29
|
* mesa: Don't overwrite a driver's shader infolog with generic failure message.Eric Anholt2010-04-291-1/+4
|
* glsl: fix bad return value in link_transform_feedback()Brian Paul2010-04-011-1/+1
|
* glsl: remove obsolete commentBrian Paul2010-04-011-1/+0
|
* glsl: do extra link checking for transform feedbackBrian Paul2010-04-011-3/+83
|
* glsl: append built-in, used varying vars to the varying vars listBrian Paul2010-04-011-0/+27
|
* glsl: pass datatype to _mesa_add_varying()Brian Paul2010-04-012-2/+2
| | | | Will be needed later for transform feedback support.
* glsl: add more vertex/fragment output info helpersBrian Paul2010-04-012-13/+64
|
* glsl: avoid using rcp in length() functionsBrian Paul2010-03-291-3/+3
| | | | See prev commit for related info.
* glsl: remove rcp from sqrt()Brian Paul2010-03-291-10/+4
| | | | | | | Per a patch from Marek Olšák, we can simply multiply the incoming value by 1/sqrt(x) instead of using rcp. We're keeping the x==0 check to avoid generating NaN for sqrt(0).
* Replace _mesa_strtod with _mesa_strtof.Marcin Baczyński2010-03-151-2/+2
| | | | Reviewed-by: Ian Romanick <[email protected]>
* Grammar and spelling fixesJeff Smith2010-03-121-1/+1
| | | | | Signed-off-by: Jeff Smith <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* 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: restore _mesa_snprintf() - it's needed for WindowsBrian Paul2010-02-193-5/+5
| | | | This reverts part of commit 298be2b028263b2c343a707662c6fbfa18293cb2
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-196-22/+22
|
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-199-32/+32
|
* mesa: replace _mesa_bzero() with memset()Brian Paul2010-02-192-3/+3
|
* Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke2010-02-194-7/+7
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Remove _mesa_strncmp in favor of plain strncmp.Kenneth Graunke2010-02-191-1/+1
|
* Remove _mesa_strcmp in favor of plain strcmp.Kenneth Graunke2010-02-194-8/+7
|
* Remove _mesa_strlen in favor of plain strlen.Kenneth Graunke2010-02-197-11/+11
|
* Remove _mesa_strcpy in favor of plain strcpy.Kenneth Graunke2010-02-193-3/+3
|
* Remove _mesa_strstr in favor of plain strstr.Kenneth Graunke2010-02-191-1/+1
|
* glsl: Silence unused value warning.Vinson Lee2010-02-171-0/+2
|
* glsl: use new program cloning functionsBrian Paul2010-02-141-2/+2
|
* mesa: Fix compiler warningsKarl Schultz2010-02-132-2/+2
| | | | | 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.
* 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.
* mesa: change ctx->Driver.ProgramStringNotify() to return GLbooleanBrian Paul2010-02-041-5/+12
| | | | | | | | | | | | | 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: fix double->float assignment warnings, int/uint comparison warningsBrian Paul2010-01-271-1/+1
| | | | Reported by Karl Schultz.
* Merge branch 'mesa_7_7_branch'Brian Paul2010-01-225-7/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/draw/draw_context.c src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c src/gallium/auxiliary/pipebuffer/Makefile src/gallium/auxiliary/pipebuffer/SConscript src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/auxiliary/tgsi/tgsi_scan.c src/gallium/drivers/i915/i915_surface.c src/gallium/drivers/i915/i915_texture.c src/gallium/drivers/llvmpipe/lp_setup.c src/gallium/drivers/llvmpipe/lp_tex_sample_c.c src/gallium/drivers/llvmpipe/lp_texture.c src/gallium/drivers/softpipe/sp_prim_vbuf.c src/gallium/state_trackers/xorg/xorg_dri2.c src/gallium/winsys/drm/intel/gem/intel_drm_api.c src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c src/gallium/winsys/drm/radeon/core/radeon_drm.c src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c src/mesa/state_tracker/st_cb_clear.c