Brian
58af54c767
checkpoint: rewrite vec/mat products
pirms 19 gadiem
Brian
c155ae1dfe
fix typos
pirms 19 gadiem
Brian
a0d6b506cd
added IR_NEG for negation
pirms 19 gadiem
Brian
356f8ea213
checkpoint: matrix/float, unary negation rewrite
pirms 19 gadiem
Brian
c73e07405c
checkpoint: ivec/int and mat/mat operations
pirms 19 gadiem
Brian
bb1bf8b3aa
checkpoint: more basic math rewritting
pirms 19 gadiem
Brian
a33532f5f4
checkpoint: re-org assignment operator functions
pirms 19 gadiem
Brian
1ff1e89ff4
added glUniformMatrix2/3fv_func
pirms 19 gadiem
Brian
cec316c9eb
checkpoint: more basic math operator re-org
pirms 19 gadiem
Brian
8d239a6880
Checkpoing: re-organization of basic arithmetic functions.
pirms 19 gadiem
Brian
2a62cbd24b
handle PROGRAM_UNIFORM, fix a _mesa_problem() call
pirms 19 gadiem
Brian
3a8e2776a6
Uniform matrix support.
Implement _mesa_uniform_matrix()
Support for program parameters/uniforms with more than 4 elements.
Store 4x4 matrices in column-major order in registers.
Update mat mul built-in functions accordingly.
pirms 19 gadiem
Brian
83ca3ff384
added _mesa_print_parameter_list()
pirms 19 gadiem
Brian
2cc7dba718
New IR_COND node for evaluating conditional expressions (for if/while/for).
pirms 19 gadiem
Brian
79a340bc15
use cast wrappers for sanity checking
pirms 19 gadiem
Brian
f2923613a4
code re-org
pirms 19 gadiem
Brian
d881a9c136
Minor clean-ups, reformatting, comment changes.
pirms 19 gadiem
Brian
9e4bae9cca
Fix shader object reference counting and hash table deallocation.
pirms 19 gadiem
Brian
65a18442e5
Clean-up and re-org of the main GLSL object types.
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.
pirms 19 gadiem
Brian
0bf5dbe002
Overhaul of GLSL API functions, dispatching, etc.
pirms 19 gadiem
Brian
5b01c5e9d2
Overhaul of GLSL API functions, dispatching, etc.
pirms 19 gadiem
Brian
46b06bdb26
Massive re-org of GLSL-related API functions.
Added new GLSL functions to struct dd_function_table.
main/shaders.c calls GLSL functions through the dd_function_table.
shader/shader_api.c implements the API functions.
Other assorted changes, fixes everywhere else.
pirms 19 gadiem
Brian
2e76f0a846
check for null Parameters ptr in _mesa_clone_program()
pirms 19 gadiem
Brian
af1d46b68a
lots of clean-up and re-org
pirms 19 gadiem
Brian
bb8f7627f7
additional error checking
pirms 19 gadiem
Brian
8473ae475f
new error msg
pirms 19 gadiem
Brian
194bc5afbd
rewrite +=, -= etc for floats
pirms 19 gadiem
Brian
8e20c417d4
Implement array indexing of simple vec2/3/4 types. A bit of a hack for now...
pirms 19 gadiem
Brian
d22079217c
Added instruction counter to catch infinite loops (temporary).
pirms 19 gadiem
Brian
b50280e95f
Check for inst->CondUpdate, print .C suffix.
pirms 19 gadiem
Brian
fbb71da2b9
Generate IR code for for/while loops, break and continue statements.
pirms 19 gadiem
Brian
1aee657b0f
Implement if-conditionals and while loops, added temporary resolve-branches function in linker.
pirms 19 gadiem
Brian
34ae99d604
GLSL API functions.
pirms 19 gadiem
Brian
ad2519ac6b
Use _mesa_free_linked_program_data()
pirms 19 gadiem
Brian
962a9f2f9d
comments
pirms 19 gadiem
Brian
0031ea7d85
fix comment, handle NOP
pirms 19 gadiem
Brian
f7159552ae
Initial code for conditional constructs.
pirms 19 gadiem
Brian
3a2815370d
print BRA instructions
pirms 19 gadiem
Brian
3e1f4bc15b
added cases for BRA, NOP
pirms 19 gadiem
Brian
b456413d76
cases for NOP, BRA
pirms 19 gadiem
Brian
a4be104887
start implementing relational operators
pirms 19 gadiem
Brian
cb7ccc4b14
start rewriting the matrix/vector functions
pirms 19 gadiem
Brian
f167d0e7d5
added assertion to catch use of too many temporaries
pirms 19 gadiem
Brian
fa8059a89c
fix double-printing of comment info
pirms 19 gadiem
Brian
9b00fa9ac2
code movement
pirms 19 gadiem
Brian
bfc02dd30f
Lots of assorted changes.
Implement assignment/move for types larger than 4 floats.
Fix codegen bug for "return expr" in inlined functions.
More clean-up of storage allocation code (slang_resolve_storage).
pirms 19 gadiem
Brian
6579245800
redo mat4 addition, mat4 constructor from vec4s
pirms 19 gadiem
Brian
4b4632f94c
vertex/fragment program field changes
pirms 19 gadiem
Brian
d6aff512fe
varying var changes
pirms 19 gadiem
Brian
464b9f4f6c
varying var changes
pirms 19 gadiem