summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * glsl: Remove unnecessary header from slang_emit.c.Vinson Lee2010-01-161-1/+0
| |
| * glsl: Remove unnecessary header from slang_builtin.c.Vinson Lee2010-01-161-1/+0
| |
| * glsl: Remove unnecessary headers from slang_compile.c.Vinson Lee2010-01-161-3/+0
| |
| * glsl: Remove unnecessary header from slang_link.c.Vinson Lee2010-01-161-1/+0
| |
| * glsl: Remove unnecessary header from slang_log.c.Vinson Lee2010-01-161-1/+0
| |
* | Merge branch 'mesa_7_7_branch'Brian Paul2010-01-041-3/+4
|\| | | | | | | | | | | | | | | | | Conflicts: docs/relnotes.html src/gallium/drivers/llvmpipe/lp_tex_sample_c.c src/gallium/drivers/r300/r300_cs.h src/mesa/drivers/dri/i965/brw_wm_surface_state.c src/mesa/main/enums.c
| * glsl: use varName variable in _slang_gen_assignment()Brian Paul2010-01-041-3/+4
| |
* | Merge branch 'mesa_7_7_branch'Brian Paul2009-12-314-0/+13
|\| | | | | | | | | | | | | | | Conflicts: configs/darwin src/gallium/auxiliary/util/u_clear.h src/gallium/state_trackers/xorg/xorg_exa_tgsi.c src/mesa/drivers/dri/i965/brw_draw_upload.c
| * glsl: added uniform initializer checkBrian Paul2009-12-293-0/+12
| | | | | | | | | | | | | | | | | | GLSL 1.10 disallows initializers for uniforms but GLSL 1.20 and later allows them. This patch uses the #version directive to allow/disallow uniform initializers. This addresses bug 25807, but piglit also needs to be fixed to specify the GLSL version in the shader.
| * Merge branch 'mesa_7_6_branch' into mesa_7_7_branchBrian Paul2009-12-271-0/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/util/u_network.c src/gallium/auxiliary/util/u_network.h src/gallium/drivers/i915/i915_state.c src/gallium/drivers/trace/tr_rbug.c src/gallium/state_trackers/vega/bezier.c src/gallium/state_trackers/vega/vg_context.c src/gallium/state_trackers/xorg/xorg_crtc.c src/gallium/state_trackers/xorg/xorg_driver.c src/gallium/winsys/xlib/xlib_brw_context.c src/mesa/main/mtypes.h
| | * glsl: Initialize member a_obj of struct slang_operation.Vinson Lee2009-12-231-0/+1
| | |
* | | mesa: adjust OPCODE_IF/ELSE BranchTarget fields to point to ELSE/ENDIF instr.Brian Paul2009-12-221-5/+17
| | | | | | | | | | | | This is a little more logical. Suggested in bug report 25654.
* | | mesa: adjust BRK/CONT BranchTarget to always point to ENDLOOP instructionBrian Paul2009-12-221-3/+3
| | | | | | | | | | | | To be more consistant.
* | | glsl: assorted clean-ups in slang_compile.cBrian Paul2009-12-211-36/+9
| | |
* | | Merge branch 'mesa_7_7_branch'Brian Paul2009-12-212-11/+14
|\| | | | | | | | | | | | | | | | | Conflicts: src/mesa/main/version.h src/mesa/state_tracker/st_atom_shader.c
| * | Merge branch 'mesa_7_6_branch' into mesa_7_7_branchBrian Paul2009-12-211-11/+13
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac progs/demos/morph3d.c progs/demos/textures.c progs/glsl/shtest.c progs/glsl/texaaline.c progs/tests/packedpixels.c progs/xdemos/corender.c src/mesa/main/version.h
| | * glsl: clear out shader code before compilingBrian Paul2009-12-181-11/+13
| | | | | | | | | | | | | | | | | | | | | When we start compiling a shader, first free the existing gl_program. This (mostly) fixes the piglit glsl-reload-source test. Without this change, we were actually appending the new GPU code onto the previous program.
| | * mesa: remove //-style commentsBrian Paul2009-12-161-1/+1
| | |
| * | Merge branch 'mesa_7_6_branch' into mesa_7_7_branchIan Romanick2009-12-151-0/+1
| |\| | | | | | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_quad_blend.c
| | * glsl: Initialize member label of struct slang_operation to NULL.Vinson Lee2009-12-121-0/+1
| | |
* | | slang: Update after glsl cl interface changes.Michal Krol2009-12-201-77/+0
| | |
* | | slang: Add gitignore for autogenerated files.Michal Krol2009-12-201-0/+1
| | |
* | | slang: Update after glsl pp changes.Michal Krol2009-12-201-22/+11
| | |
* | | Remove grammar module -- no dependencies left.Michal Krol2009-12-121-1/+1
| | |
* | | slang: Delete a file that is now autogenerated.Michal Krol2009-12-121-880/+0
| | | | | | | | | | | | | | | | | | This file has been modified in master and removed in feature branch. This gave a merge conflict I couldn't resolve by removing and git adding it to index.
* | | Merge branch 'master' into glsl-pp-rework-2Michal Krol2009-12-1212-93/+1156
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: progs/perf/drawoverhead.c progs/perf/teximage.c progs/perf/vbo.c progs/perf/vertexrate.c src/mesa/shader/slang/library/slang_common_builtin_gc.h
| * | | Merge branch 'mesa_7_7_branch'Brian Paul2009-12-112-5/+5
| |\| | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_xv.c src/mesa/drivers/dri/intel/intel_span.c
| | * | Merge branch 'mesa_7_6_branch' into mesa_7_7_branchBrian Paul2009-12-112-5/+5
| | |\|
| | | * glsl: Increase size of array in_slang_lookup_constant from 4 to 16.Vinson Lee2009-12-101-1/+1
| | | | | | | | | | | | | | | | For some cases, _mesa_GetIntegerv reads up to params[15].
| | | * glsl: Fix array out-of-bounds access by _slang_lookup_constant.Vinson Lee2009-12-101-4/+5
| | | |
| | | * glsl: Remove unused member x from struct slang_operation.Vinson Lee2009-12-091-1/+0
| | | |
| | | * glsl: fix memory leakBrian Paul2009-10-271-2/+6
| | | | | | | | | | | | | | | | A slightly modified version of a patch from Vinson Lee.
| * | | slang: Fix allocation size.Michal Krol2009-11-241-2/+2
| | | | | | | | | | | | | | | | We don't need 16K+ to store a single pointer.
| * | | slang: Check return value from emit_instruction().Michal Krol2009-11-231-6/+67
| | | |
| * | | slang: Be more robust with memory in concat_shaders().Michal Krol2009-11-231-3/+19
| |/ /
| * | Merge branch 'outputswritten64'Ian Romanick2009-11-171-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a GLbitfield64 type and several macros to operate on 64-bit fields. The OutputsWritten field of gl_program is changed to use that type. This results in a fair amount of fallout in drivers that use programs. No changes are strictly necessary at this point as all bits used are below the 32-bit boundary. Fairly soon several bits will be added for clip distances written by a vertex shader. This will cause several bits used for varyings to be pushed above the 32-bit boundary. This will affect any drivers that support GLSL. At this point, only the i965 driver has been modified to support this eventuality. I did this as a "squash" merge. There were several places through the outputswritten64 branch where things were broken. I foresee this causing difficulties later for bisecting. The history is still available in the branch. Conflicts: src/mesa/drivers/dri/i965/brw_wm.h
| * | mesa: fix assorted compiler warningsBrian Paul2009-11-171-1/+1
| | |
| * | slang: Fix return value check.Michal Krol2009-11-101-1/+1
| | |
| * | slang: Check OOM conditions for alloc_node_storage().Michal Krol2009-11-101-4/+15
| | |
| * | slang: Check return value from new_instruction().Michal Krol2009-11-101-1/+3
| | |
| * | slang: Fix signed/unsigned int handling in _slang_free_temp().Michal Krol2009-11-101-2/+2
| | |
| * | slang: Handle OOM condition in new_instruction().Michal Krol2009-11-101-20/+81
| | |
| * | glsl: fix memory leakBrian Paul2009-10-271-2/+6
| | | | | | | | | | | | A slightly modified version of a patch from Vinson Lee.
| * | Merge branch 'mesa_7_6_branch'Brian Paul2009-10-051-0/+1
| |\| | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/util/u_cpu_detect.c
| | * glsl: fix mem leakBrian Paul2009-10-011-0/+1
| | |
| * | Merge branch 'mesa_7_6_branch'Brian Paul2009-10-016-83/+103
| |\|
| | * glsl: regenerated fileBrian Paul2009-09-291-49/+57
| | |