Commit Graph

201327 Commits

Author SHA1 Message Date
Sean D'Epagnier af0190bc6e Updated keyboard input so that glut programs can read from stdin without
problems if tty input is used.  Also corrected a few stdin keycodes.
2006-12-21 01:50:33 -07:00
Brian a33532f5f4 checkpoint: re-org assignment operator functions 2006-12-20 18:04:59 -07:00
Brian 1ff1e89ff4 added glUniformMatrix2/3fv_func 2006-12-20 17:56:29 -07:00
Brian cec316c9eb checkpoint: more basic math operator re-org 2006-12-20 17:55:42 -07:00
Brian 8d239a6880 Checkpoing: re-organization of basic arithmetic functions. 2006-12-20 17:43:56 -07:00
Brian 2a62cbd24b handle PROGRAM_UNIFORM, fix a _mesa_problem() call 2006-12-20 17:19:45 -07:00
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.
2006-12-20 17:19:16 -07:00
Brian 83ca3ff384 added _mesa_print_parameter_list() 2006-12-20 17:17:38 -07:00
Brian 2cc7dba718 New IR_COND node for evaluating conditional expressions (for if/while/for). 2006-12-20 12:41:59 -07:00
Brian 79a340bc15 use cast wrappers for sanity checking 2006-12-20 09:57:56 -07:00
Brian f2923613a4 code re-org 2006-12-20 09:56:44 -07:00
Brian d881a9c136 Minor clean-ups, reformatting, comment changes. 2006-12-20 09:31:07 -07:00
Brian 9e4bae9cca Fix shader object reference counting and hash table deallocation. 2006-12-20 09:27:42 -07:00
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.
2006-12-19 18:46:56 -07:00
Brian 0bf5dbe002 Overhaul of GLSL API functions, dispatching, etc. 2006-12-19 18:02:41 -07:00
Brian 5b01c5e9d2 Overhaul of GLSL API functions, dispatching, etc. 2006-12-19 18:02:03 -07:00
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.
2006-12-19 17:59:32 -07:00
Dave Airlie e3358dea66 Merge branch 'nouveau-import' 2006-12-20 09:30:32 +11:00
Brian 2e76f0a846 check for null Parameters ptr in _mesa_clone_program() 2006-12-19 09:52:07 -07:00
Brian af1d46b68a lots of clean-up and re-org 2006-12-19 08:59:51 -07:00
Brian bb8f7627f7 additional error checking 2006-12-19 08:59:36 -07:00
Brian 8473ae475f new error msg 2006-12-19 08:59:19 -07:00
Brian 194bc5afbd rewrite +=, -= etc for floats 2006-12-19 08:58:56 -07:00
Brian 8e20c417d4 Implement array indexing of simple vec2/3/4 types. A bit of a hack for now... 2006-12-18 17:54:58 -07:00
Brian d22079217c Added instruction counter to catch infinite loops (temporary). 2006-12-18 16:22:27 -07:00
Brian b50280e95f Check for inst->CondUpdate, print .C suffix. 2006-12-18 16:21:58 -07:00
Brian fbb71da2b9 Generate IR code for for/while loops, break and continue statements. 2006-12-18 14:45:26 -07:00
Brian 1aee657b0f Implement if-conditionals and while loops, added temporary resolve-branches function in linker. 2006-12-18 10:05:24 -07:00
Brian 34ae99d604 GLSL API functions. 2006-12-18 08:28:54 -07:00
Brian ad2519ac6b Use _mesa_free_linked_program_data() 2006-12-18 08:28:06 -07:00
Brian 962a9f2f9d comments 2006-12-18 08:25:23 -07:00
Nian Wu ead0f46d5f Merge branch 'crestline' into crestline-qa 2006-12-17 10:49:43 -08:00
Ben Skeggs 53d40646bd Don't build passthrough shader on <NV40 2006-12-17 03:38:21 +00:00
Brian 0031ea7d85 fix comment, handle NOP 2006-12-16 12:52:55 -07:00
Brian f7159552ae Initial code for conditional constructs. 2006-12-16 12:52:19 -07:00
Brian 3a2815370d print BRA instructions 2006-12-16 12:51:34 -07:00
Brian 3e1f4bc15b added cases for BRA, NOP 2006-12-16 12:51:12 -07:00
Brian b456413d76 cases for NOP, BRA 2006-12-16 12:50:51 -07:00
Brian b497a0cb7c Don't update span->array->z[] values from SLANG_FRAGMENT_FIXED_FRAGDEPTH.
This restores the behaviour of Mesa 6.5.1, fixing a regression in 6.5.2.
See bug 9345.  Revisit someday...
2006-12-16 11:17:41 -07:00
Brian 6ec4a03b9f initial release notes for 6.5.3 2006-12-16 11:09:14 -07:00
Brian 6d982e53ee don't allow fog when using a fragment shader (bug 9346) 2006-12-16 11:07:00 -07:00
Ben Skeggs de947e8a5b Get nv10_swtcl.c working enough for glxgears on NV40. 2006-12-16 12:32:11 +00:00
Brian a4be104887 start implementing relational operators 2006-12-15 17:05:53 -07:00
Brian cb7ccc4b14 start rewriting the matrix/vector functions 2006-12-15 16:47:42 -07:00
Brian f167d0e7d5 added assertion to catch use of too many temporaries 2006-12-15 15:37:32 -07:00
Brian fa8059a89c fix double-printing of comment info 2006-12-15 15:36:29 -07:00
Brian 9b00fa9ac2 code movement 2006-12-15 15:36:09 -07:00
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).
2006-12-15 15:35:57 -07:00
Brian 6579245800 redo mat4 addition, mat4 constructor from vec4s 2006-12-15 15:32:11 -07:00
Gary Wong 24a495fd77 Fix copy-and-paste mistake in comment ("scaling" should read "translation").
Before _mesa_Translatef().
2006-12-15 17:18:36 -05:00