Commit Graph

9145 Commits

Author SHA1 Message Date
Brian 8a48f35574 assorted code clean-ups 2007-01-10 12:18:50 -07:00
Brian ee11842bfc fix size bug in _mesa_add_attribute() 2007-01-10 12:18:33 -07:00
Brian 29bff4e12d simplify _mesa_add_state_reference() 2007-01-10 08:37:59 -07:00
Brian 88f7212312 Update _save_VertexAttrib() functions for non-aliasing behaviour. 2007-01-10 08:15:35 -07:00
Brian 01a91eb657 get rid of STATE_USER_ATTRIB/STATE_AUTO_ATTRIB 2007-01-09 19:26:22 -07:00
Brian b7978af693 clean up a bunch of program parameter stuff 2007-01-09 19:17:17 -07:00
Brian cc858bfa84 added a few more 2.0 functions 2007-01-09 17:49:53 -07:00
Brian 3209c3ed0d Implement vertex attribute binding.
Users can set explicit binding with glBindAttribLocation(), otherwise the
linker will allocate generic attribute slots.
2007-01-09 17:49:24 -07:00
Brian 5e75db12d7 more debug code (disabled) 2007-01-09 17:47:13 -07:00
Brian e8673143ea add code for generic attributes 16..31 2007-01-09 17:46:45 -07:00
Brian 048412473b added _mesa_count_texture_indirections(), _mesa_count_texture_instructions() 2007-01-09 11:00:47 -07:00
Brian 21f99792a9 Moved NumTexInstructions, NumTexIndirections, etc. into gl_program since
they can now apply to vertex programs.
2007-01-09 11:00:21 -07:00
Brian ae80d13f6d remove old comment 2007-01-09 10:10:59 -07:00
Brian 829da4c345 Vertex program texture samplers done, but untested (need to add TEX/TXB to
the T&L vertex program interpreter).
2007-01-09 09:31:30 -07:00
Brian 855ebb26d1 Implement shadow samplers and dFdx(), dFdy() code generation. 2007-01-09 09:14:32 -07:00
Brian 20aec24ac7 implement biased texture functions 2007-01-08 16:56:52 -07:00
Brian 41a4e828d9 check if _Current == NULL for TXB 2007-01-08 16:49:43 -07:00
Brian 8cad795a80 added 1D texture functions 2007-01-08 16:10:55 -07:00
Brian 9a78ef980d Remove if (tObj) conditional so that texture units without a texture image
return black (0,0,0,1) when sampled.
2007-01-08 16:10:34 -07:00
Brian 85e0634b54 update texture1D functions 2007-01-08 16:02:40 -07:00
Brian 42153d7858 Implement projective texture sampling, 3D textures. Disable some debug output. 2007-01-08 15:58:14 -07:00
Brian 483ca39bca Move some code around, add some comments. 2007-01-08 14:11:54 -07:00
Brian d3fe7398e3 Move storage allocation functions from slang_emit.c to slang_codegen.c 2007-01-08 14:06:00 -07:00
Brian 27cc9068ce checkpoint: more work on variable/storage allocation 2007-01-08 13:36:53 -07:00
Brian cf4d4342c9 Checkpoint: re-org of (global) variable allocation code. More to come... 2007-01-08 13:09:47 -07:00
Brian 5cf7326132 Checkpoint glsl compiler work: sampler uniforms now implemented, linked properly. 2007-01-05 16:02:45 -07:00
Brian b2ab693d68 added PROGRAM_SAMPLER 2007-01-05 16:01:43 -07:00
Brian eef70ff79a added Sampler field to prog_instruction struct 2007-01-05 16:01:26 -07:00
Brian 288c5396e6 added PROGRAM_SAMPLER 2007-01-05 16:01:11 -07:00
Brian 9805e76744 added _mesa_add_sampler() 2007-01-05 16:00:57 -07:00
Brian 4cc90ee0b0 update TexturesUsed[] in slang_update_inputs_outputs() 2007-01-04 17:44:04 -07:00
Brian 4428e8f20f update TexturesUsed[] in slang_update_inputs_outputs() 2007-01-04 17:43:53 -07:00
Brian 64f78dd6a8 compute InputsRead/OutputsWritten with slang_update_inputs_outputs() 2007-01-04 17:30:30 -07:00
Brian c9db223f90 move TexturesUsed[] into gl_program since vertex programs/shaders can use textures nowadays 2007-01-04 17:22:19 -07:00
Brian 7edd2ecb55 simplify update_texture_state() a bit, compute _EnabledCoordUnits for shaders 2007-01-04 16:19:54 -07:00
Brian ff81f074fb minor formatting fix 2007-01-04 15:25:29 -07:00
Brian de03fe4a3f added texture attribs in slang_find_input() 2007-01-04 15:06:50 -07:00
Brian 7b4d10b4a3 added glUniform1i_func 2007-01-04 14:40:56 -07:00
Brian e640300602 initial code to get texture sampling limping along 2007-01-04 14:40:02 -07:00
Brian 6a92d98d1a temporary disable some memory deallocations to work around a memory corruption bug 2007-01-04 14:38:45 -07:00
Brian 89dc48569a finish some loose ends in _mesa_uniform() 2007-01-04 14:35:44 -07:00
Brian 602045fd7b update_texture_state() updated for new shaders 2007-01-04 14:33:42 -07:00
Brian 439758353a Fix some incorrect GL error values. Reorganize _mesa_compile_shader() code. 2007-01-04 08:21:09 -07:00
Brian d8babcfc57 fix typos 2006-12-22 10:26:22 -07:00
Brian aa710c3e6b implement unary +, - 2006-12-22 10:18:50 -07:00
Brian 9b694589e9 chmod a-x 2006-12-21 18:12:03 -07:00
Brian 01f2e7f62f checkpoint: pre/post incr/decr operators 2006-12-21 18:05:06 -07:00
Brian 392d9701e3 added INTERP_VARYING code 2006-12-21 17:50:22 -07:00
Brian eb2a6d62f9 s/attribute/varying/ 2006-12-21 17:50:07 -07:00
Brian 2905385744 comment about uniforms 2006-12-21 11:21:26 -07:00