Commit Graph

9981 Commits

Author SHA1 Message Date
Brian 10b5895597 Implement gl_FrontFacing for fragment shaders.
For the time being, we put the gl_FrontFacing value in the FOGC.Y input
register.  Combining FOGC and FrontFacing in one register is a bit of a
hack and may need to be changed someday.
2007-03-10 11:30:19 -07:00
Brian 1fcb4ecc07 clean-up formatting 2007-03-10 10:56:06 -07:00
Brian c9872b80c8 add NULL ptr check in emit_cond() 2007-03-10 10:37:18 -07:00
Brian 46bd63819e use gl_ModelViewProjectionMatrixTranspose in ftransform() 2007-03-09 17:02:12 -07:00
Brian ff95925e70 add NULL ptr check 2007-03-09 16:53:44 -07:00
Brian b9ea936150 added GL_CURRENT_PROGRAM 2007-03-09 15:41:25 -07:00
Brian 2cf5fd48d1 Merge branch 'origin' into glsl-compiler-1
Conflicts:

	src/mesa/main/context.c
2007-03-09 11:43:53 -07:00
Brian 9f44247acf fix _mesa_uniform_matrix() transpose bug 2007-03-09 11:34:18 -07:00
Brian b03e1712b2 gl_ClipVertex not supported yet 2007-03-09 09:51:55 -07:00
Brian f9f79c8d77 New IMAGE_RED_TO_LUMINANCE flag passed to _mesa_pack_rgba_span_float() to fix glGetTexImage(GL_LUMINANCE) bug #10232. 2007-03-09 09:13:49 -07:00
Michel Dänzer 4d9901a1ca r300: Also update window state when it's already bound but its stamp changed.
And set new cliprects before deriving other state from them. This ensures
cliprects aren't accessed after having been freed.

Thanks to Panagiotis Papadakos for testing various iterations of this.
2007-03-09 09:43:17 +01: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
Xiang, Haihao d85667950f remove a if-statement
glMaterial changes the current specular exponent or glLight changes
    the intensity distribution of the light, but _mesa_update_state doesn't
    update the corresponding light table. So they must be updated at this time.
2007-03-08 22:54:14 +08: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
J.Jansen 79d59d0173 Updates of the OpenVMS makefiles.
-include missing definitions
	 -add files to compile
	 -remove files from compile list which are removed from the repositry
	 -add support for vbo

	new file:   src/mesa/vbo/descrip.mms
	modified:   src/mesa/descrip.mms
	modified:   src/mesa/drivers/osmesa/descrip.mms
	modified:   src/mesa/drivers/x11/descrip.mms
	modified:   src/mesa/swrast_setup/descrip.mms
	modified:   src/mesa/tnl/descrip.mms
2007-03-08 09:53:28 +01: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
Michel Dänzer 9adf6e9d6c i945_miptree_layout: Adapt cubemap fixes from i915_miptree_layout.
Cubemaps aren't working fully correctly yet, but at least they don't seem to
cause crashes anymore.
2007-03-07 17:52:44 +01: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 2282d81536 destroy window during cleanup 2007-03-06 16:33:00 -07:00