Commit graph

115447 commits

Author SHA1 Message Date
Brian
0a262998ef Move guts of vertex array drawing into the 'draw' module. 2007-08-20 15:11:11 -06:00
Brian
a83b72a672 implement DrawElements, still some rough spots 2007-08-20 12:52:33 -06:00
Brian
1dd55a77c8 implement draw_elements() 2007-08-20 12:52:00 -06:00
Brian
730df7662f don't map element buffer in _mesa_validate_DrawElements() unless necessary 2007-08-20 12:50:34 -06:00
Brian
7d14c3e538 remove debug printf 2007-08-20 11:53:36 -06:00
Brian
98d30cb2d4 call draw_trim() 2007-08-20 11:49:16 -06:00
Brian
904163e4e9 fix cache overflow bug in get_vertex() 2007-08-20 11:41:23 -06:00
Patrice Mandin
07b7e97fb4 Use correct object for GART 2007-08-20 19:36:52 +02:00
Brian
f252974121 fix VBO clean-up in vbo_exec_vtx_destroy() 2007-08-20 11:05:35 -06:00
Brian
df1df82f16 Merge branch 'softpipe_0_1_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into softpipe_0_1_branch 2007-08-20 10:23:28 -06:00
Brian
d8c6719f95 refactor bounds checking code 2007-08-20 13:12:20 +01:00
Brian
a3c3bc9ece don't map buffer in _mesa_validate_DrawElements() unless needed 2007-08-20 12:56:34 +01:00
Patrice Mandin
ef71a0fd45 nouveau: nv10: only one color buffer atm 2007-08-19 20:12:26 +02:00
Brian
14327705fd Fix some draw_arrays issues.
We weren't mapping all the needed vertex array buffers.
Move array state that was temporarily in draw_context to softpipe_context.
Remove a bunch of dead code.
2007-08-19 17:31:21 +01:00
Brian
53cf87be1b some fixes for compressed cube maps (bug 11986) 2007-08-18 16:25:16 +01:00
Brian
95e84a09ce remove dead code left over after fixing GL_READ/DRAW_BUFFER state issues 2007-08-18 16:11:31 +01:00
Brian
0453760a0b more work on vertex shaders, now using vertex shaders instead of TnL module by default 2007-08-18 16:06:49 +01:00
Brian
1f026d98dd Create a default vertex attribute buffer which mirrors ctx->Current.Attrrib[]
Used when the vertex shader references attributes which aren't present in VBOs.
2007-08-18 16:05:49 +01:00
Brian
b3f067e859 added tnl state atom 2007-08-18 16:04:49 +01:00
Brian
7274e14d4a fix xm_buffer_data 2007-08-18 09:22:15 +01:00
Brian
8339ca7d1e replace memcpy() with assignment, better type safety 2007-08-17 12:40:35 -06:00
Brian
74e58c5b82 added CLIP_x_SHIFT vals 2007-08-17 12:34:40 -06:00
Brian
48b09322ee write outputs according to vs.outputs_written 2007-08-17 12:31:13 -06:00
Brian
a2805a8165 added outputs_written field to pipe_shader_state 2007-08-17 12:30:30 -06:00
Brian
4973136e20 load machine.Inputs based on vs.inputs_read 2007-08-17 12:23:26 -06:00
Brian
a30939714c added pipe ptr to draw_context 2007-08-17 12:19:40 -06:00
Brian
e3647578d1 compute clipmask 2007-08-17 12:09:50 -06:00
Brian
7668e53c8c define CLIP_LEFT/RIGHT etc 2007-08-17 12:09:31 -06:00
Brian
83f428e799 shade four vertices at a time 2007-08-17 11:40:53 -06:00
Brian
cd3162f578 added align16() function 2007-08-17 11:40:06 -06:00
Brian
2fc54f5bb5 added uint64 type 2007-08-17 11:39:45 -06:00
Xiang, Haihao
dcfdb63b9f Brian's fix for bug9829 2007-08-17 13:36:13 -04:00
Xiang, Haihao
00b86ecf6f i965: align width/height for volume texture 2007-08-17 12:42:52 -04:00
Brian
8e4ed6323d added null VB->AttribPtr[i] check 2007-08-17 15:38:29 +01:00
Brian
bc3f87683a fix edgeflag bug 2007-08-17 15:37:22 +01:00
Brian
c5004c7db6 pack output vertex attributes in sequential slots 2007-08-17 15:28:17 +01:00
Brian
1e6d1ab6fc tell vbo module to use bufferobjs 2007-08-17 15:27:18 +01:00
Brian
305b83a415 added call to _mesa_load_state_parameters() 2007-08-17 15:27:00 +01:00
Brian
5568a7d301 added vbo_use_buffer_objects() to specify that immediate mode data should be put into bufferobjects 2007-08-17 15:26:33 +01:00
Brian
89cda7bdc8 replace assertion w/ conditionals in xmesa_clear() 2007-08-17 10:50:06 +01:00
Brian
5b59e6116d Use simple st->pipe->clear() in more cases for depth/stencil clears. 2007-08-17 10:49:36 +01:00
Brian
ae64d5c173 fix buffer clearing problems 2007-08-17 10:28:20 +01:00
Brian
93efcf50fa assertions 2007-08-17 10:27:53 +01:00
Brian
04f2078860 added assertions, disable debug output 2007-08-17 10:27:37 +01:00
Eric Anholt
3e168a0ec8 Convert TTM code to require the server provide buffers for front/back/depth.
This removes the use of fake buffers from the driver, such that it could
probably be removed from the interface.  It also should assist in proper
synchronization of access.
2007-08-16 14:38:33 -07:00
Eric Anholt
b6ad5e7de8 Move i915_disasm to later so we can use the hardware offset. 2007-08-16 14:37:26 -07:00
Eric Anholt
64297acf9e Fix bad printf on TTM fence_wait failure. 2007-08-16 14:35:06 -07:00
Eric Anholt
2b77a8696b Don't forget to update buffer offset after validation. 2007-08-16 14:34:24 -07:00
Eric Anholt
327e655119 Add decode for XY_COLOR_BLT and XY_SRC_COPY_BLT. 2007-08-16 14:28:12 -07:00
Patrice Mandin
b902a223c4 nouveau: nv10: clear a buffer 2007-08-16 21:50:34 +02:00