summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_compile.c
AgeCommit message (Collapse)AuthorFilesLines
2007-03-24fix some mem leaksBrian1-6/+9
2007-03-12Implement GL_ARB_texture_rectangle supportBrian1-2/+10
This includes the sampler2DRect and sampler2DRectShadow types and the texture2DRect(), texture2DRectProj(), etc. built-in functions.
2007-03-07s/equal/EQUAL/, fix bugs in logical or/and code.Brian1-2/+2
2007-02-26fix logic for reporting errorsBrian1-9/+23
2007-02-26fix error flaggingBrian1-9/+2
2007-02-26Overhaul of error handling.Brian1-109/+5
2007-02-22get rid of some unused slang_variable fieldsBrian1-1/+0
2007-02-20forgot to return length in parse_array_len()Brian1-0/+2
2007-02-16change all enum tokens to uppercaseBrian1-112/+112
2007-02-16abort upon errors (temporary)Brian1-1/+4
2007-02-03Add literal_size field to slang_operation.Brian1-0/+3
Used to track the number of components in a float/int/bool literal. Helps with some typechecking things. Fixes problems with calls such as "distance(v2, vec2(1.0, 2.0))"
2007-02-02clean-upsBrian1-18/+2
2007-02-02s/slang_assembly_name_space/slang_name_space/Brian1-1/+1
2007-02-02remove more assembly-related codeBrian1-69/+1
2007-02-02move some functions, disable some code in preparation for removing assembly codeBrian1-5/+8
2007-02-02remove slang_export.c and related codeBrian1-51/+0
2007-02-02Remove all dependencies on the old slang interpreter/executor.Brian1-27/+1
2007-02-02use _slang_simplify() to evaluate array sizesBrian1-2/+6
2007-01-31disable all x86 code, broken and will eventually be removedBrian1-3/+2
2007-01-28Lots of vartable clean-ups, fixes. Report an error message when we run outBrian1-1/+14
of registers, rather than crash.
2007-01-13Rework code related to temp register allocation, both for user variablesBrian1-16/+40
and expression temporarires. Much better register utilization now. Lots of other fixes. The OpenGL GLSL "orange book" brick shader demo works now.
2007-01-11Fix a problem with inlined "return" statements. Make some attempt to free ↵Brian1-0/+2
temporaries.
2007-01-10checkpoint: codegen for global vars w/ initializersBrian1-2/+18
2007-01-09Implement vertex attribute binding.Brian1-0/+1
Users can set explicit binding with glBindAttribLocation(), otherwise the linker will allocate generic attribute slots.
2007-01-08Checkpoint: re-org of (global) variable allocation code. More to come...Brian1-2/+4
2007-01-05Checkpoint glsl compiler work: sampler uniforms now implemented, linked ↵Brian1-59/+8
properly.
2007-01-04Fix some incorrect GL error values. Reorganize _mesa_compile_shader() code.Brian1-28/+66
2006-12-19Clean-up and re-org of the main GLSL object types.Brian1-2/+21
Use the gl_shader struct as it should be. Renamed gl_linked_program to gl_shader_program. Store both shaders and programs in the same hash table and use the Type field to distinguish them.
2006-12-19new error msgBrian1-1/+1
2006-12-14Updated #includes after splitting program.hBrian1-0/+1
2006-12-13Checkpoint new GLSL compiler back-end to produce fp/vp-style assembly ↵Brian1-56/+192
instructions.
2006-11-24call slang_variable_construct() inside slang_variable_scope_grow()Brian Paul1-6/+0
2006-11-24new slang_variable_scope_grow() functionBrian Paul1-32/+14
2006-11-15reindent, add some commentsBrian Paul1-1545/+1625
2006-09-26Add GLSL preprocessor.Michal Krol1-12/+22
2006-08-21More GLSL preprocessor code:Michal Krol1-0/+5
Rename slang_version.syn to slang_pp_version.syn. The #version directive understands version 120. Cosmetic changes in version preprocessor. Checks if requested version is supported by the compiler.
2006-08-02Enable vec4 extension for x86 back-end.Michal Krol1-31/+46
2006-05-16Cleanup code.Michal Krol1-262/+176
2006-03-21Silencium gcc warnings.Michal Krol1-122/+117
2006-02-27More GLSL code:Michal Krol1-32/+38
- add x86 code generator; - add full support for uniforms in ARB_shader_objects; - add assembly instruction: global_addr; - reorganize #includes; - built-in uniforms accessed by index, rather than by name; - add some entries to x86sse rtasm; - add configurations to VC6 projects: 'Release x86' and 'Debug x86'; - #define SLANG_X86 active only on VC6 x86 builds; - introduce code export table for a shader; - remove GNU license from the noise library;
2006-02-21More GLSL code:Michal Krol1-119/+127
- uniforms (only GetLocation, Uniform1f and Uniform4fv for now for demos); - fix bugs and optimize array size handling; - 2D texture sampling (needs Enable(TEXTURE_2D) to work); - decrease built-in library assembly size by 30%.
2006-02-18More GLSL code.Michal Krol1-707/+706
- general constructors allowed; - implement noise functions (from Stefan Gustavson - thanks!) - cosmetic stuff.
2006-02-15Fix a few warnings:Brian Paul1-6/+8
- nested comments (use #if 0 / #endif instead) - missing default clause in switch statements - use of possibly undefined variables
2006-02-15Add support for forward function declarations.Michal Krol1-38/+43
2006-02-13Get it running for ARB_vertex_shader.Michal Krol1-373/+585
Add experimental print functions to builtin library. Some functionality missing: - automatic arrays; - general constructors; - local variable initialization; - texture sampling and noise; - semantic error checking; - function prototypes.
2006-01-30Split slang_compile.c into several smaller files - it was just too big.Michal Krol1-829/+401
Minor fixes and cosmetic changes.
2006-01-16remove some test code;Michal Krol1-120/+99
rewrite the intermediate code executor to address 64-bit platforms and global memory; store built-in library code in a precompiled form only;
2005-09-19additional wrapper updates, bug 4468Brian Paul1-7/+8
2005-09-16use mesa import wrappers, bug 4468Brian Paul1-2/+2
2005-06-01 Committing in .Jouk Jansen1-10/+10
Update OpneVMS compilesupport Modified Files: Mesa/src/mesa/shader/descrip.mms Mesa/src/mesa/shader/slang/descrip.mms Mesa/src/mesa/shader/slang/slang_compile.c Mesa/src/mesa/shader/slang/slang_storage.c Mesa/src/mesa/shader/slang/slang_storage.h ----------------------------------------------------------------------