summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_compile.c
AgeCommit message (Collapse)Author
2008-05-14mesa: dead code removalBrian Paul
2008-04-07mesa: call _mesa_remove_varying_reads() after compiling vertex shadersBrian
2007-10-26Re-implement GLSL texture sampler variables.Brian
GLSL sampler variables indicate which texture unit to use for TEX instructions. Previously, this was baked into the fragment/vertex program and couldn't be readily changed once set. Now, SamplerUnits[] array indicates which texture unit is to be used for each sampler variable. These values are set with glUniform1i(). This is extra state that must be passed to the fragment/vertex program executor at runtime.
2007-10-24Implement gl_PointCoord attribute for GLSL fragment shaders.Brian
Contains the normalized fragment position within a point sprite.
2007-07-24call ctx->Driver.NewProgram() instead of _mesa_new_program()Brian
2007-07-04Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian
of -I flags.
2007-05-11don't ignore return value of _slang_codegen_global_variable()Brian
2007-04-21Remove all the USE_MEMPOOL debug code.Brian
2007-04-21Use new memory pool allocator. Lots of debug code still in place...Brian
2007-04-19init A.curFuncEndLabel = NULLBrian
2007-04-10update SLANG version testBrian
2007-04-09plug in GLSL 1.20 unitBrian
2007-04-08support for GLSL 1.20 non-square matricesBrian
2007-03-24fix some mem leaksBrian
2007-03-12Implement GL_ARB_texture_rectangle supportBrian
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.Brian
2007-02-26fix logic for reporting errorsBrian
2007-02-26fix error flaggingBrian
2007-02-26Overhaul of error handling.Brian
2007-02-22get rid of some unused slang_variable fieldsBrian
2007-02-20forgot to return length in parse_array_len()Brian
2007-02-16change all enum tokens to uppercaseBrian
2007-02-16abort upon errors (temporary)Brian
2007-02-03Add literal_size field to slang_operation.Brian
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-upsBrian
2007-02-02s/slang_assembly_name_space/slang_name_space/Brian
2007-02-02remove more assembly-related codeBrian
2007-02-02move some functions, disable some code in preparation for removing assembly codeBrian
2007-02-02remove slang_export.c and related codeBrian
2007-02-02Remove all dependencies on the old slang interpreter/executor.Brian
2007-02-02use _slang_simplify() to evaluate array sizesBrian
2007-01-31disable all x86 code, broken and will eventually be removedBrian
2007-01-28Lots of vartable clean-ups, fixes. Report an error message when we run outBrian
of registers, rather than crash.
2007-01-13Rework code related to temp register allocation, both for user variablesBrian
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 ↵Brian
temporaries.
2007-01-10checkpoint: codegen for global vars w/ initializersBrian
2007-01-09Implement vertex attribute binding.Brian
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...Brian
2007-01-05Checkpoint glsl compiler work: sampler uniforms now implemented, linked ↵Brian
properly.
2007-01-04Fix some incorrect GL error values. Reorganize _mesa_compile_shader() code.Brian
2006-12-19Clean-up and re-org of the main GLSL object types.Brian
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 msgBrian
2006-12-14Updated #includes after splitting program.hBrian
2006-12-13Checkpoint new GLSL compiler back-end to produce fp/vp-style assembly ↵Brian
instructions.
2006-11-24call slang_variable_construct() inside slang_variable_scope_grow()Brian Paul
2006-11-24new slang_variable_scope_grow() functionBrian Paul
2006-11-15reindent, add some commentsBrian Paul
2006-09-26Add GLSL preprocessor.Michal Krol
2006-08-21More GLSL preprocessor code:Michal Krol
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 Krol