Commit Graph

9920 Commits

Author SHA1 Message Date
Brian b03e1712b2 gl_ClipVertex not supported yet 2007-03-09 09:51:55 -07:00
Brian a706b0b8bd added missing bvec2/3/4 constructors 2007-03-08 16:08:55 -07:00
Brian 05b74e4ae4 fix broken vec4_seq, vec4_sne instructions 2007-03-08 15:59:20 -07:00
Brian 2f35a17f38 Update lessThan(), lessThanEqual() functions, improve some matrix constructors. 2007-03-08 15:53:05 -07:00
Brian 5761a93bba Added IR_SLE and IR_SLT for <= and < operations.
Using IR_SGE and IR_SGT with transposed args doesn't work since the __asm
calls don't do argument matching by name, but by position.
This fixes the broken lessThan() and lessThanEqual() functions.
2007-03-08 15:52:22 -07:00
Brian 3e0fbc7efc fix tmp storage problem for IR_I_TO_F 2007-03-08 15:45:25 -07:00
Brian 19a9050548 fix assertion 2007-03-08 15:19:34 -07:00
Brian ee931f8d4d ; and {} statements were broken 2007-03-08 14:48:34 -07:00
Brian ec89aba7c6 remove unused new_cjump() 2007-03-08 11:29:22 -07:00
Brian cce4e50569 IR_CJUMP0/1 no longer used/needed 2007-03-08 11:16:13 -07:00
Brian 63772e2a2c rewrite _slang_gen_select() to use IF node 2007-03-08 11:07:52 -07:00
Brian b3dd49429b s/_slang_gen_hl_if/_slang_gen_if/ 2007-03-08 10:53:50 -07:00
Brian 609306de17 s/_slang_gen_hl_if/_slang_gen_if/ 2007-03-08 10:43:57 -07:00
Brian c9f486c38f remove old assertion 2007-03-08 10:40:37 -07:00
Brian bf86ddaa20 check for attempted writes to read-only vars 2007-03-08 10:40:25 -07:00
Brian de8172673e Rework matrix-related code.
GLSL matrices are stored in column-major order while GL_ARB_vertex/fragment_program
use row-major.  So, need to use STATE_MATRIX_TRANSPOSE for built-in matrices.
Unfortunately, this means that the expression M * V isn't very efficient since we
need to extract the rows out of M.  And that's the typical expression for vertex
transformation:  gl_ModelViewProjectionMatrix * gl_Position.
Solve this inefficiency by looking for M*V expressions and replacing them
with V*Transpose(M).
Also, add support for GLSL 1.20's MatrixTranspose, Inverse and InverseTranspose
matrices.
2007-03-08 09:38:35 -07:00
Brian 6ff0a04f7c fix ProjectionMatrix typo 2007-03-08 07:53:30 -07:00
Brian 7e66cad998 fix gl_TextureMatrix indexing 2007-03-08 07:51:39 -07:00
Brian 9637c963f5 more DEBUG_PROG 2007-03-07 17:40:57 -07:00
Brian fb3f0beb42 update comments 2007-03-07 17:37:24 -07:00
Brian 0aec2bb8f2 remove unneeded return stmt 2007-03-07 16:13:33 -07:00
Brian da899d190e add missing gl_Point state, fix IR storage bug 2007-03-07 16:13:22 -07:00
Brian 29bc4b8974 s/diffuset/diffuse/ 2007-03-07 13:35:49 -07:00
Brian c3412e9a08 regenerated 2007-03-07 13:07:40 -07:00
Brian 842c782cee use 2.0, 2.1 version strings 2007-03-07 13:07:07 -07:00
Brian faeea574af remove end_label field 2007-03-07 13:00:06 -07:00
Brian 35d25c0ce4 Fix problem with nested function calls such as y = f(f(x))
Replace CurFunction with curFuncEndLabel.
2007-03-07 12:59:01 -07:00
Brian 5b5a80d011 s/equal/EQUAL/, fix bugs in logical or/and code. 2007-03-07 11:26:47 -07:00
Brian ab673c8527 fix broken __postDecr() 2007-03-07 11:25:37 -07:00
Brian 1dca089149 fix deferredTexture bug 2007-03-07 10:42:44 -07:00
Brian 3efd0c7b8d fix swizzled writemask bug 2007-03-07 09:59:26 -07:00
Brian f3da222839 remove bogus assertion 2007-03-07 09:58:45 -07:00
Brian d25046b648 fix incorrect HPOS write test 2007-03-07 08:56:09 -07:00
Brian e61ec95deb additional error detection 2007-03-07 08:55:42 -07:00
Brian cec81eef31 check for null program ptrs in _mesa_uniform() 2007-03-07 08:04:06 -07:00
Brian 55821d021d Generate an error if the vertex shader does not write to gl_Position. 2007-03-07 07:52:24 -07:00
Brian 6cb0aa12b8 more integer arithmetic updates 2007-03-06 16:32:03 -07:00
Brian e10a1457e8 fix some int arithmetic problems 2007-03-06 14:07:48 -07:00
Brian 28ab1125c2 more DEBUG_PROG code 2007-03-06 12:15:30 -07:00
Brian c6d930a114 fix vert/frag typo 2007-03-06 11:53:27 -07:00
Brian 07e62084bb info about how the compiler works 2007-02-27 16:45:40 -07:00
Brian 0e1bd23025 s/matrix_stack/gl_matrix_stack/ and s/mesa_list_state/gl_dlist_state/ 2007-02-27 09:54:50 -07:00
Brian 2cf8d24131 remove unused DriverMgrCtx 2007-02-26 18:35:34 -07:00
Brian fa4d036424 Add EmitHighLevelInstructions, EmitComments booleans to gl_shader_state.
These control code generation options.  May be overridden by drivers, debuggers, etc.
2007-02-26 18:33:50 -07:00
Brian 4f26a52908 re-enable var scope destruct in slang_operation_destruct() 2007-02-26 18:08:09 -07:00
Brian 553fe132d4 Fix a few bugs in slang_operation variable scoping. Seems to fix a double-free. 2007-02-26 18:07:26 -07:00
Brian aa6f4241f8 formatting fixes 2007-02-26 17:32:45 -07:00
Brian b58ea057fe fix mem leak in _mesa_ShaderSourceARB() 2007-02-26 17:00:06 -07:00
Brian 4b8d75e2e6 fix logic for reporting errors 2007-02-26 16:32:00 -07:00
Brian f446e58e45 disable execute bit 2007-02-26 15:13:34 -07:00