summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-06-09Fix some typing issues in asin.Kenneth Graunke
CorrectFunction.vert now passes.
2010-06-09Add a completely bogus implementation of the noise[1234] builtins.Kenneth Graunke
idr suggested this. Eventually we will need a real one.
2010-06-09Implement 'acos' builtin.Kenneth Graunke
This is tacked on to the end of the 'asin' file because acos calls asin, whech means asin needs to be defined first. Alphabetical order fail.
2010-06-09Implement 'faceforward' builtin.Kenneth Graunke
2010-06-09Implement 'distance' builtin.Kenneth Graunke
2010-06-09Add remaining signatures for 'clamp' builtin.Kenneth Graunke
2010-06-09Add remaining signatures for 'max' builtin.Kenneth Graunke
2010-06-09Add remaining signatures for 'min' builtin.Kenneth Graunke
2010-06-09Add remaining signatures for 'mod' builtin.Kenneth Graunke
2010-06-09ir_function_cloning_visitor: Add support for ir_texture.Kenneth Graunke
2010-06-09Don't call _mesa_glsl_initialize_types for every builtin function.Kenneth Graunke
This was clearly wrong; types are now only initialized once.
2010-06-09Only initialize types after #extension directives have been processed.Kenneth Graunke
Since _mesa_glsl_initialize_types add types for various extensions, we can't call it until after processing "#extension foo : disable" lines. Fixes tex_rect_02.frag.
2010-06-09Commit output of texture_builtins.py and refresh builtin_function.cpp.Kenneth Graunke
2010-06-09texture_builtins.py: Support the EXT_texture_array extension.Kenneth Graunke
2010-06-09Add EXT_texture_array support.Kenneth Graunke
2010-06-09generate_builtins.pl: Support stage-specific builtins even for extensions.Kenneth Graunke
2010-06-09texture_builtins.py: Fixes for Array variants.Kenneth Graunke
The array layer is now included as part of the texture coordinate.
2010-06-09texture_builtins.py: Add support for 130 Proj variants.Kenneth Graunke
2010-06-09Add a python script to generate texture builtins.Kenneth Graunke
2010-06-09generate_builtins.pl: Support directiories for each extension.Kenneth Graunke
2010-06-09generate_builtins.pl: Support _fs directories as well as _vs.Kenneth Graunke
2010-06-09Set the type of ir_texture properly; infer it from the sampler type.Kenneth Graunke
2010-06-09ir_reader: Add support for reading ir_texture.Kenneth Graunke
2010-06-09ir_reader: Refactor reading of dereferences for later reuse.Kenneth Graunke
2010-06-09Add stub visitor support for ir_texture.Kenneth Graunke
2010-06-09ir_print_visitor: Add support for ir_texture.Kenneth Graunke
2010-06-09Add mappings between ir_texture_opcode and strings.Kenneth Graunke
2010-06-09Define IR instruction for texture look-upsIan Romanick
2010-06-09Use array delete operator to delete an arrayIan Romanick
This was detected by valgrind. I think GCC still does the right thing, but the C++ spec allows the compiler to do something stupid... like crash or only delete the first entry in the array.
2010-06-07Bump GL_MAX_TEXTURE_COORDS from 2 to 4Ian Romanick
Every platform that supports GLSL sets GL_MAX_TEXTURE_COORDS to at least 4, so hard-code 4 for now. This causes the following tests to pass: glslparsertest/glsl2/norsetto-bumptbn_sh_fp.vert glslparsertest/glsl2/xreal-lighting-d-omni.vert glslparsertest/glsl2/xreal-lighting-db-omni.vert glslparsertest/glsl2/xreal-lighting-dbs-omni.vert
2010-06-07Only allow global precision qualifier for int and floatIan Romanick
This causes the following tests to pass: glslparsertest/glsl2/precision-03.vert
2010-06-07Fix parsing of precision qualifiersIan Romanick
This causes the following tests to pass: glslparsertest/glsl2/precision-02.vert glslparsertest/glsl2/precision-04.vert glslparsertest/glsl2/precision-06.vert This causes the following test to fail. This shader was previously failing to compile, but it was failing for the wrong reasons. glslparsertest/glsl2/precision-03.vert
2010-06-07Don't process empty shadersIan Romanick
Some valid shaders, such as 'precision highp float;', evaluate to empty sets of instructions. This causes some of the optimization stages to enter infinite loops. Instead, don't bother processing the empty ones.
2010-06-07Generate an error on empty declaration listsIan Romanick
This causes an error for code such as 'float;'
2010-06-04Check variable mode when comparing qualifier lists.Kenneth Graunke
Fixes function-05.vert.
2010-06-02ir_dereference_array always operates on an r-valueIan Romanick
ir_dereference_array::array is always an r-value. If the dereference is of a varaible, that r-value will be an ir_dereference_variable. This simplifies the code a bit.
2010-06-02There is no class ir_label, so there's no need for ir_instruction::as_labelIan Romanick
2010-06-02Remove some cruft from the MakefileIan Romanick
This was affecting the build, but the files don't actually exist.
2010-06-01Add builtin gl_LightSource[].Eric Anholt
Fixes gst-gl-bumper.vert parsing.
2010-06-01builtins: Add support for reflect().Eric Anholt
Fixes glsl-orangebook-ch06.frag parsing.
2010-06-01builtins: Add ftransform().Eric Anholt
Fixes glsl-orangebook-ch06-bump.vert.
2010-06-01Allow arrays of floats as varyings.Eric Anholt
The comment just above the code said arrays were OK, then it didn't handle arrays. Whoops. Partially fixes CorrectUnsizedArray.frat.
2010-06-01gl_Normal is a vec3 not a vec4.Eric Anholt
Fixes CorrectSwizzle1.vert.
2010-06-01builtins: Add the mix(gentype, gentype, float) variant.Eric Anholt
The broken-in-mesa Regnum Online shader now parses, except for its preprocessor usage.
2010-06-01Handle GLSL 1.20 implicit type conversions.Eric Anholt
We were nicely constructing a new expression for the implicit type conversion, but then checking that the previous types matched instead of the new expression's type. Fixes errors in Regnum Online shaders.
2010-06-01builtins: Add atan().Eric Anholt
2010-06-01builtins: Add asin().Eric Anholt
2010-06-01ir_constant_expression: Handle several floating point unops.Eric Anholt
Cleans up a bunch of pointless operations in a GStreamer fragment shader.
2010-06-01ir_constant_variable: New pass to mark constant-assigned variables constant.Eric Anholt
This removes a bunch of gratuitous moving around of constant values from constructors. Makes a shader ir I was looking at for structure handling almost readable.
2010-06-01ir_constant_folding: Look at instructions in functions.Eric Anholt
This was broken in the ir_label -> ir_function rework.