Commit Graph

74545 Commits

Author SHA1 Message Date
Roland Scheidegger 46e454863e decrease the current vertex count by 1 if an uneven number of vertices is copied by _tnl_copy_vertices. Otherwise, since in this case it will copy an extra vertex to avoid problems with vertex order in the new buffer, one triangle will be drawn twice. This fixes bug #9062. 2006-11-22 22:07:35 +00:00
Brian Paul 40c7cb7e17 const correctness 2006-11-22 21:59:28 +00:00
Brian Paul 98ea0a3f1f new comments 2006-11-22 21:49:14 +00:00
Brian Paul f9f4625367 clean-up, comments 2006-11-22 21:34:47 +00:00
Brian Paul 958a8af3b0 reindent 2006-11-22 21:34:30 +00:00
Brian Paul 982ceb6773 fix comments 2006-11-22 21:33:44 +00:00
Ben Skeggs 7398748add Some missing state init 2006-11-22 20:15:56 +00:00
Roland Scheidegger 7f9afedeb5 remove unneded call to _tnl_invalidate_state() in _tnl_need_projected_coords(). Connected to bug #9103, though that bug got fixed without this change too. 2006-11-22 17:54:31 +00:00
Brian Paul 9540c9c04f GLX protocol fixes for glMap* functions (bug 8899) 2006-11-22 16:01:48 +00:00
Keith Whitwell 96c0a6de25 Prune incoming state to the atoms of interest. Hopefully this will
prevent driver-initiated statechanges in the middle of
DrawElements/DrawArrays from disturbing this code.
2006-11-22 15:27:58 +00:00
Keith Whitwell b72fbcbe63 Another fix 2006-11-22 13:53:21 +00:00
Keith Whitwell 96228d952d Set _NEW_LIGHT when materials are present in display lists also. 2006-11-22 09:35:19 +00:00
Keith Whitwell c8238aa0ff Move setting of _NEW_LIGHT to only occur when materials are present. 2006-11-22 09:34:55 +00:00
Roland Scheidegger 49a3ea8110 fix segfault with ATI_fs when trying to use a not enabled texture unit (bug #9110). 2006-11-21 23:37:21 +00:00
Patrice Mandin 3e4a5c0642 Enable nv10 tcl state 2006-11-21 21:44:16 +00:00
Patrice Mandin ac09b567a8 nv10,nv20: nvX0ShadeModel static function 2006-11-21 21:15:49 +00:00
Patrice Mandin 677666eb70 nv10,nv20,nv30: color light components renamed from a,b,c to r,g,b 2006-11-21 21:11:58 +00:00
Patrice Mandin 81ae0bd249 ah, correct revision now 2006-11-21 20:38:14 +00:00
Patrice Mandin 4ed78e20a4 update from renouveau 2006-11-21 20:29:09 +00:00
Patrice Mandin b5e800068b nv10: update state 2006-11-21 19:56:15 +00:00
Brian Paul 8f008056b2 list header files in sources files (Dan Nicholson) 2006-11-21 16:04:22 +00:00
Keith Whitwell f332da515c blend, logicop changes for intelEmitCopyBlit backported to i915 2006-11-21 14:43:30 +00:00
Ben Skeggs a75440bcf0 nouveauCreateDmaObject 2006-11-21 14:03:06 +00:00
Keith Whitwell b1c102d37b More fixes, glean seems to run now. 2006-11-21 13:22:34 +00:00
Stephane Marchesin fb65450704 Remaining state cache changes 2006-11-21 13:07:48 +00:00
Stephane Marchesin 0ea45b1ad8 Add the state caching mechanism. It seems to work, from what I can see. 2006-11-21 12:43:16 +00:00
Alan Hourihane 33d2835182 Don't define as const's to avoid compiler optimization & warning. 2006-11-21 10:59:31 +00:00
Keith Whitwell 64920ed10a Fix more typos. 2006-11-21 10:50:01 +00:00
Keith Whitwell 46c04525d2 Gary Wong's patches for CopyPixels Logiop (enable) and Blend
(disallow).  Slightly cleaned to disallow on all blend states for code
consiseness and turn a table lookup into a function to match other
code in the driver.
2006-11-21 10:43:16 +00:00
Keith Whitwell f58ec215c5 Gary Wong's fix for 64 bit cleanness of vertex program inputs bitmask. 2006-11-21 10:16:37 +00:00
Keith Whitwell d6f89107ba Commit Gary Wong & Keith Packard's changes for bug 8867 -- adjust code
after repositioning of INDEX value in BRW_ATTRIB enum.
2006-11-21 10:11:02 +00:00
Sean D'Epagnier 0570fcfd93 Added correct include files to files,
No longer modify cmap if the device is truecolor (messes up dual monitors
	with vt switching)
2006-11-21 09:35:49 +00:00
Sean D'Epagnier 0337e5635f glTexCoord3dv was not using third coordinate 2006-11-21 08:48:44 +00:00
Jeremy Kolb a20cf73053 More state. 2006-11-21 02:47:13 +00:00
Rune Petersen 25e495d605 Disable fragment program debug messages. 2006-11-20 19:57:10 +00:00
Jeremy Kolb afb49fef90 Add state initialization to context creation. 2006-11-20 17:25:54 +00:00
Keith Whitwell 479aca6bf1 Fix typos that meant vbos were never unmapped 2006-11-20 15:15:24 +00:00
Brian Paul 7cc5522f86 fix glPopAttrib/color material bug #9091 2006-11-20 15:14:35 +00:00
Jouk Jansen d2fc1c8384 Committing in .
Solve small definition problem for OpenVMS

 Modified Files:
 	Mesa/src/mesa/shader/descrip.mms
2006-11-20 14:04:04 +00:00
Keith Whitwell dd60eaa6d9 Don't perform dangling attribute check on POS attribute. It can't by
definition dangle (every vertex has a position).  However
save->currentsz isn't properly maintained for this attribute, as there
is no current position value to track.  Based on patch from Haihao Xiang.
2006-11-20 11:49:58 +00:00
Keith Whitwell 87f602dd82 Don't perform dangling attribute check on POS attribute. It can't by
definition dangle (every vertex has a position).  However
save->currentsz isn't properly maintained for this attribute, as there
is no current position value to track.  Reported by Haihao Xiang.
2006-11-20 11:45:34 +00:00
Stephane Marchesin 50c85daf02 Cleanup the swtcl code. 2006-11-19 23:47:24 +00:00
Stephane Marchesin ac208c95cd Use NONINC_METHOD for vertex data. 2006-11-19 23:39:16 +00:00
Stephane Marchesin 4165a10972 More work on the swtcl 2006-11-19 23:16:29 +00:00
Stephane Marchesin fe2e6100ec More fifo debug fixes 2006-11-19 22:16:54 +00:00
Stephane Marchesin a8d34992ea Oops. 2006-11-19 21:51:28 +00:00
Stephane Marchesin 3613eba085 Fix the fifo debugging feature. 2006-11-19 21:29:41 +00:00
Stephane Marchesin 327e2c9220 New swtcl implementation. It's simpler than the previous one (doesn't use
templates) and it is probably faster as well
2006-11-19 20:18:45 +00:00
Ben Skeggs a7139168d2 Don't bother touching lighting stuff if shaders are in use 2006-11-19 16:05:59 +00:00
Ben Skeggs 80a0ce37df Fix nv30LineWidth, hw expects a ubyte. 2006-11-19 15:52:18 +00:00