mesa.git
17 years agoadded PROGRAM_SAMPLER
Brian [Fri, 5 Jan 2007 23:01:11 +0000 (16:01 -0700)]
added PROGRAM_SAMPLER

17 years agoadded _mesa_add_sampler()
Brian [Fri, 5 Jan 2007 23:00:57 +0000 (16:00 -0700)]
added _mesa_add_sampler()

17 years agoupdate TexturesUsed[] in slang_update_inputs_outputs()
Brian [Fri, 5 Jan 2007 00:44:04 +0000 (17:44 -0700)]
update TexturesUsed[] in slang_update_inputs_outputs()

17 years agoupdate TexturesUsed[] in slang_update_inputs_outputs()
Brian [Fri, 5 Jan 2007 00:43:53 +0000 (17:43 -0700)]
update TexturesUsed[] in slang_update_inputs_outputs()

17 years agocompute InputsRead/OutputsWritten with slang_update_inputs_outputs()
Brian [Fri, 5 Jan 2007 00:30:30 +0000 (17:30 -0700)]
compute InputsRead/OutputsWritten with slang_update_inputs_outputs()

17 years agomove TexturesUsed[] into gl_program since vertex programs/shaders can use textures...
Brian [Fri, 5 Jan 2007 00:22:19 +0000 (17:22 -0700)]
move TexturesUsed[] into gl_program since vertex programs/shaders can use textures nowadays

17 years agosimplify update_texture_state() a bit, compute _EnabledCoordUnits for shaders
Brian [Thu, 4 Jan 2007 23:19:54 +0000 (16:19 -0700)]
simplify update_texture_state() a bit, compute _EnabledCoordUnits for shaders

17 years agominor formatting fix
Brian [Thu, 4 Jan 2007 22:25:29 +0000 (15:25 -0700)]
minor formatting fix

17 years agoadded texture attribs in slang_find_input()
Brian [Thu, 4 Jan 2007 22:06:50 +0000 (15:06 -0700)]
added texture attribs in slang_find_input()

17 years agoadded glUniform1i_func
Brian [Thu, 4 Jan 2007 21:40:56 +0000 (14:40 -0700)]
added glUniform1i_func

17 years agoinitial code to get texture sampling limping along
Brian [Thu, 4 Jan 2007 21:40:02 +0000 (14:40 -0700)]
initial code to get texture sampling limping along

17 years agotemporary disable some memory deallocations to work around a memory corruption bug
Brian [Thu, 4 Jan 2007 21:38:45 +0000 (14:38 -0700)]
temporary disable some memory deallocations to work around a memory corruption bug

17 years agofinish some loose ends in _mesa_uniform()
Brian [Thu, 4 Jan 2007 21:35:44 +0000 (14:35 -0700)]
finish some loose ends in _mesa_uniform()

17 years agoupdate_texture_state() updated for new shaders
Brian [Thu, 4 Jan 2007 21:33:42 +0000 (14:33 -0700)]
update_texture_state() updated for new shaders

17 years agoFix some incorrect GL error values. Reorganize _mesa_compile_shader() code.
Brian [Thu, 4 Jan 2007 15:21:09 +0000 (08:21 -0700)]
Fix some incorrect GL error values.  Reorganize _mesa_compile_shader() code.

17 years agofix typos
Brian [Fri, 22 Dec 2006 17:26:22 +0000 (10:26 -0700)]
fix typos

17 years agoimplement unary +, -
Brian [Fri, 22 Dec 2006 17:18:50 +0000 (10:18 -0700)]
implement unary +, -

17 years agochmod a-x
Brian [Fri, 22 Dec 2006 01:12:03 +0000 (18:12 -0700)]
chmod a-x

17 years agocheckpoint: pre/post incr/decr operators
Brian [Fri, 22 Dec 2006 01:05:06 +0000 (18:05 -0700)]
checkpoint: pre/post incr/decr operators

17 years agoadded INTERP_VARYING code
Brian [Fri, 22 Dec 2006 00:50:22 +0000 (17:50 -0700)]
added INTERP_VARYING code

17 years agos/attribute/varying/
Brian [Fri, 22 Dec 2006 00:50:07 +0000 (17:50 -0700)]
s/attribute/varying/

17 years agocomment about uniforms
Brian [Thu, 21 Dec 2006 18:21:26 +0000 (11:21 -0700)]
comment about uniforms

17 years agocheckpoint: rewrite vec/mat products
Brian [Thu, 21 Dec 2006 17:56:09 +0000 (10:56 -0700)]
checkpoint: rewrite vec/mat products

17 years agofix typos
Brian [Thu, 21 Dec 2006 17:49:27 +0000 (10:49 -0700)]
fix typos

17 years agoadded IR_NEG for negation
Brian [Thu, 21 Dec 2006 17:47:28 +0000 (10:47 -0700)]
added IR_NEG for negation

17 years agocheckpoint: matrix/float, unary negation rewrite
Brian [Thu, 21 Dec 2006 17:45:49 +0000 (10:45 -0700)]
checkpoint: matrix/float, unary negation rewrite

17 years agocheckpoint: ivec/int and mat/mat operations
Brian [Thu, 21 Dec 2006 17:03:15 +0000 (10:03 -0700)]
checkpoint: ivec/int and mat/mat operations

17 years agocheckpoint: more basic math rewritting
Brian [Thu, 21 Dec 2006 16:40:08 +0000 (09:40 -0700)]
checkpoint: more basic math rewritting

17 years agocheckpoint: re-org assignment operator functions
Brian [Thu, 21 Dec 2006 01:04:59 +0000 (18:04 -0700)]
checkpoint: re-org assignment operator functions

17 years agoadded glUniformMatrix2/3fv_func
Brian [Thu, 21 Dec 2006 00:56:29 +0000 (17:56 -0700)]
added glUniformMatrix2/3fv_func

17 years agocheckpoint: more basic math operator re-org
Brian [Thu, 21 Dec 2006 00:55:42 +0000 (17:55 -0700)]
checkpoint: more basic math operator re-org

17 years agoCheckpoing: re-organization of basic arithmetic functions.
Brian [Thu, 21 Dec 2006 00:43:56 +0000 (17:43 -0700)]
Checkpoing: re-organization of basic arithmetic functions.

17 years agohandle PROGRAM_UNIFORM, fix a _mesa_problem() call
Brian [Thu, 21 Dec 2006 00:19:45 +0000 (17:19 -0700)]
handle PROGRAM_UNIFORM, fix a _mesa_problem() call

17 years agoUniform matrix support.
Brian [Thu, 21 Dec 2006 00:19:16 +0000 (17:19 -0700)]
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.

17 years agoadded _mesa_print_parameter_list()
Brian [Thu, 21 Dec 2006 00:17:38 +0000 (17:17 -0700)]
added _mesa_print_parameter_list()

17 years agoNew IR_COND node for evaluating conditional expressions (for if/while/for).
Brian [Wed, 20 Dec 2006 19:41:59 +0000 (12:41 -0700)]
New IR_COND node for evaluating conditional expressions (for if/while/for).

17 years agouse cast wrappers for sanity checking
Brian [Wed, 20 Dec 2006 16:57:56 +0000 (09:57 -0700)]
use cast wrappers for sanity checking

17 years agocode re-org
Brian [Wed, 20 Dec 2006 16:56:44 +0000 (09:56 -0700)]
code re-org

17 years agoMinor clean-ups, reformatting, comment changes.
Brian [Wed, 20 Dec 2006 16:31:07 +0000 (09:31 -0700)]
Minor clean-ups, reformatting, comment changes.

17 years agoFix shader object reference counting and hash table deallocation.
Brian [Wed, 20 Dec 2006 16:27:42 +0000 (09:27 -0700)]
Fix shader object reference counting and hash table deallocation.

17 years agoClean-up and re-org of the main GLSL object types.
Brian [Wed, 20 Dec 2006 01:46:56 +0000 (18:46 -0700)]
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.

17 years agoOverhaul of GLSL API functions, dispatching, etc.
Brian [Wed, 20 Dec 2006 01:02:41 +0000 (18:02 -0700)]
Overhaul of GLSL API functions, dispatching, etc.

17 years agoOverhaul of GLSL API functions, dispatching, etc.
Brian [Wed, 20 Dec 2006 01:02:03 +0000 (18:02 -0700)]
Overhaul of GLSL API functions, dispatching, etc.

17 years agoMassive re-org of GLSL-related API functions.
Brian [Wed, 20 Dec 2006 00:59:32 +0000 (17:59 -0700)]
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.

17 years agocheck for null Parameters ptr in _mesa_clone_program()
Brian [Tue, 19 Dec 2006 16:52:07 +0000 (09:52 -0700)]
check for null Parameters ptr in _mesa_clone_program()

17 years agolots of clean-up and re-org
Brian [Tue, 19 Dec 2006 15:59:51 +0000 (08:59 -0700)]
lots of clean-up and re-org

17 years agoadditional error checking
Brian [Tue, 19 Dec 2006 15:59:36 +0000 (08:59 -0700)]
additional error checking

17 years agonew error msg
Brian [Tue, 19 Dec 2006 15:59:19 +0000 (08:59 -0700)]
new error msg

17 years agorewrite +=, -= etc for floats
Brian [Tue, 19 Dec 2006 15:58:56 +0000 (08:58 -0700)]
rewrite +=, -= etc for floats

17 years agoImplement array indexing of simple vec2/3/4 types. A bit of a hack for now...
Brian [Tue, 19 Dec 2006 00:54:58 +0000 (17:54 -0700)]
Implement array indexing of simple vec2/3/4 types.  A bit of a hack for now...

17 years agoAdded instruction counter to catch infinite loops (temporary).
Brian [Mon, 18 Dec 2006 23:22:27 +0000 (16:22 -0700)]
Added instruction counter to catch infinite loops (temporary).

17 years agoCheck for inst->CondUpdate, print .C suffix.
Brian [Mon, 18 Dec 2006 23:21:58 +0000 (16:21 -0700)]
Check for inst->CondUpdate, print .C suffix.

17 years agoGenerate IR code for for/while loops, break and continue statements.
Brian [Mon, 18 Dec 2006 21:45:26 +0000 (14:45 -0700)]
Generate IR code for for/while loops, break and continue statements.

17 years agoImplement if-conditionals and while loops, added temporary resolve-branches function...
Brian [Mon, 18 Dec 2006 17:05:24 +0000 (10:05 -0700)]
Implement if-conditionals and while loops, added temporary resolve-branches function in linker.

17 years agoGLSL API functions.
Brian [Mon, 18 Dec 2006 15:28:54 +0000 (08:28 -0700)]
GLSL API functions.

17 years agoUse _mesa_free_linked_program_data()
Brian [Mon, 18 Dec 2006 15:28:06 +0000 (08:28 -0700)]
Use _mesa_free_linked_program_data()

17 years agocomments
Brian [Mon, 18 Dec 2006 15:25:23 +0000 (08:25 -0700)]
comments

17 years agofix comment, handle NOP
Brian [Sat, 16 Dec 2006 19:52:55 +0000 (12:52 -0700)]
fix comment, handle NOP

17 years agoInitial code for conditional constructs.
Brian [Sat, 16 Dec 2006 19:52:19 +0000 (12:52 -0700)]
Initial code for conditional constructs.

17 years agoprint BRA instructions
Brian [Sat, 16 Dec 2006 19:51:34 +0000 (12:51 -0700)]
print BRA instructions

17 years agoadded cases for BRA, NOP
Brian [Sat, 16 Dec 2006 19:51:12 +0000 (12:51 -0700)]
added cases for BRA, NOP

17 years agocases for NOP, BRA
Brian [Sat, 16 Dec 2006 19:50:51 +0000 (12:50 -0700)]
cases for NOP, BRA

17 years agostart implementing relational operators
Brian [Sat, 16 Dec 2006 00:05:53 +0000 (17:05 -0700)]
start implementing relational operators

17 years agostart rewriting the matrix/vector functions
Brian [Fri, 15 Dec 2006 23:47:42 +0000 (16:47 -0700)]
start rewriting the matrix/vector functions

17 years agoadded assertion to catch use of too many temporaries
Brian [Fri, 15 Dec 2006 22:37:32 +0000 (15:37 -0700)]
added assertion to catch use of too many temporaries

17 years agofix double-printing of comment info
Brian [Fri, 15 Dec 2006 22:36:29 +0000 (15:36 -0700)]
fix double-printing of comment info

17 years agocode movement
Brian [Fri, 15 Dec 2006 22:36:09 +0000 (15:36 -0700)]
code movement

17 years agoLots of assorted changes.
Brian [Fri, 15 Dec 2006 22:35:57 +0000 (15:35 -0700)]
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).

17 years agoredo mat4 addition, mat4 constructor from vec4s
Brian [Fri, 15 Dec 2006 22:32:11 +0000 (15:32 -0700)]
redo mat4 addition, mat4 constructor from vec4s

17 years agovertex/fragment program field changes
Brian [Fri, 15 Dec 2006 17:10:23 +0000 (10:10 -0700)]
vertex/fragment program field changes

17 years agovarying var changes
Brian [Fri, 15 Dec 2006 17:10:01 +0000 (10:10 -0700)]
varying var changes

17 years agovarying var changes
Brian [Fri, 15 Dec 2006 17:09:49 +0000 (10:09 -0700)]
varying var changes

17 years agovarying changes
Brian [Fri, 15 Dec 2006 17:09:33 +0000 (10:09 -0700)]
varying changes

17 years agoupdated includes
Brian [Fri, 15 Dec 2006 17:09:12 +0000 (10:09 -0700)]
updated includes

17 years agoupdated includes
Brian [Fri, 15 Dec 2006 17:08:59 +0000 (10:08 -0700)]
updated includes

17 years agouse MAX_VARYING
Brian [Fri, 15 Dec 2006 17:08:24 +0000 (10:08 -0700)]
use MAX_VARYING

17 years agouse MAX_VARYING
Brian [Fri, 15 Dec 2006 17:08:15 +0000 (10:08 -0700)]
use MAX_VARYING

17 years agomore debug output
Brian [Fri, 15 Dec 2006 17:08:02 +0000 (10:08 -0700)]
more debug output

17 years agoLots of assorted changes for new GLSL compiler backend.
Brian [Fri, 15 Dec 2006 17:07:26 +0000 (10:07 -0700)]
Lots of assorted changes for new GLSL compiler backend.

New datatypes, constants, variables.

17 years agoUse extfuncs.h helper. Added command line options for loading
Brian [Fri, 15 Dec 2006 16:31:14 +0000 (09:31 -0700)]
Use extfuncs.h helper.  Added command line options for loading
vertex/fragment shaders from files.

17 years agosimple extension function wrangler
Brian [Fri, 15 Dec 2006 16:30:31 +0000 (09:30 -0700)]
simple extension function wrangler

17 years agochange/add/rm several filenames
Brian [Fri, 15 Dec 2006 15:55:49 +0000 (08:55 -0700)]
change/add/rm several filenames

17 years agoRenamed s_nvfragprog.[ch] to s_fragprog.[ch]
Brian [Fri, 15 Dec 2006 15:50:02 +0000 (08:50 -0700)]
Renamed s_nvfragprog.[ch] to s_fragprog.[ch]

17 years agoRenamed s_nvfragprog.[ch] to s_fragprog.[ch], program_instruction.h to prog_instruction.h
Brian [Fri, 15 Dec 2006 15:49:27 +0000 (08:49 -0700)]
Renamed s_nvfragprog.[ch] to s_fragprog.[ch], program_instruction.h to prog_instruction.h

17 years agoremove unneeded includes
Brian [Thu, 14 Dec 2006 22:54:01 +0000 (15:54 -0700)]
remove unneeded includes

17 years agoremove unneeded includes
Brian [Thu, 14 Dec 2006 22:53:49 +0000 (15:53 -0700)]
remove unneeded includes

17 years agoremove unneded includes
Brian [Thu, 14 Dec 2006 22:50:34 +0000 (15:50 -0700)]
remove unneded includes

17 years agoremove some unneeded includes
Brian [Thu, 14 Dec 2006 22:49:09 +0000 (15:49 -0700)]
remove some unneeded includes

17 years agoinclude prog_print.h
Brian [Thu, 14 Dec 2006 22:47:54 +0000 (15:47 -0700)]
include prog_print.h

17 years agoRemove some moved extern decls.
Brian [Thu, 14 Dec 2006 22:47:34 +0000 (15:47 -0700)]
Remove some moved extern decls.

17 years agoMove some code from prog_print.c to prog_instruction.c
Brian [Thu, 14 Dec 2006 22:47:08 +0000 (15:47 -0700)]
Move some code from prog_print.c to prog_instruction.c

17 years agoRenamed from s_nvfragprog.[ch]
Brian [Thu, 14 Dec 2006 22:14:14 +0000 (15:14 -0700)]
Renamed from s_nvfragprog.[ch]

17 years agoUpdated includes.
Brian [Thu, 14 Dec 2006 22:13:06 +0000 (15:13 -0700)]
Updated includes.

17 years agochmod a-x
Brian [Thu, 14 Dec 2006 22:03:33 +0000 (15:03 -0700)]
chmod a-x

17 years agoUpdated includes.
Brian [Thu, 14 Dec 2006 22:03:04 +0000 (15:03 -0700)]
Updated includes.

17 years agoUpdated includes.
Brian [Thu, 14 Dec 2006 22:02:37 +0000 (15:02 -0700)]
Updated includes.

17 years agoUpdated #includes after splitting program.h
Brian [Thu, 14 Dec 2006 22:02:19 +0000 (15:02 -0700)]
Updated #includes after splitting program.h

17 years agoMove many functions into new files.
Brian [Thu, 14 Dec 2006 22:01:28 +0000 (15:01 -0700)]
Move many functions into new files.

17 years agoSplit the program.[ch] files into several new files.
Brian [Thu, 14 Dec 2006 22:01:06 +0000 (15:01 -0700)]
Split the program.[ch] files into several new files.

17 years agoModify _mesa_strdup() so it handles NULL correctly.
Brian [Thu, 14 Dec 2006 20:59:53 +0000 (13:59 -0700)]
Modify _mesa_strdup() so it handles NULL correctly.