Commit graph

11105 commits

Author SHA1 Message Date
Oliver McFadden
8a016d2130 r300: Use _mesa_num_inst_src_regs for number of arguments. 2007-07-16 20:24:41 +00:00
Oliver McFadden
f66775184b r300: Corrected vertprog FLR and XPD instruction regression. 2007-07-16 20:07:30 +00:00
Oliver McFadden
3eba764df8 r300: Added code for vertprog opcode ARL. 2007-07-16 19:20:32 +00:00
Oliver McFadden
611674ed69 r300: Don't need vertprog scalar flag anymore; it's handled explicitly... 2007-07-16 19:13:46 +00:00
Oliver McFadden
b89a5c6e06 r300: Removed broken RCC vertprog opcode. 2007-07-16 19:10:13 +00:00
Oliver McFadden
15f1609922 r300: More vertprog rework; give each opcode it's own function. 2007-07-16 19:09:29 +00:00
Oliver McFadden
39766010cd Revert "r300: Gracefully exit after GART memory is exhausted."
This reverts commit 9457bf62bb.

Causes the X server to die with Compiz and Beryl.
2007-07-16 16:37:38 +00:00
Oliver McFadden
cc85860ccb r300: Reorder the vertprog code to the ARB specification. 2007-07-16 16:37:38 +00:00
Roland Scheidegger
cbfe29cdee fix bogus fb/drawable information
the framebuffer objects attached to drawables can have invalidate state
associated with them, since for the window framebuffer this is per-context
state and not per-fbo state. Since drivers rely on that information
(otherwise would need to check if currently the window-framebuffer is
bound in a lot of places) fix it up in _mesa_make_current (ugly).
(Brought over from i915tex_privbuffers, where it fixes xdemos/wincopy
when switching to front buffer rendering.)
2007-07-16 18:23:47 +02:00
Roland Scheidegger
fb3b9060d4 fix segfault with i915 drivers in swrast drawpixels path when resizing windows 2007-07-16 18:23:46 +02:00
Oliver McFadden
d895c5a08f r300: Use the R300_PVS_UPLOAD_* defines. 2007-07-16 15:42:16 +00:00
Oliver McFadden
4013382ea2 r300: Added the clip plane upload defines. 2007-07-16 15:39:12 +00:00
Oliver McFadden
81c333adbc r300: Enable the vertprog point size again. 2007-07-16 12:21:38 +00:00
Oliver McFadden
03105d7b3e r300: Corrected position bug with position invariant option. Bug #11594. 2007-07-16 11:34:40 +00:00
Oliver McFadden
aa9d77ca3c r300: Removed Vim modeline I left in the file by mistake. :-) 2007-07-16 07:17:22 +00:00
Oliver McFadden
72581241a8 r300: Make sure the modified value of u_temp_i is respected. 2007-07-16 07:12:29 +00:00
Oliver McFadden
87855fb32c r300: Added a function for vertex program default opcode translation. 2007-07-16 06:38:12 +00:00
Oliver McFadden
ddb74cb443 r300: Clean up the vertex program maximum length check. 2007-07-16 06:33:53 +00:00
Oliver McFadden
d0b3f3ce81 r300: Corrected indenting in r300_vertprog.c. 2007-07-16 06:27:29 +00:00
Oliver McFadden
79773ba13a r300: Major vertex program code clean up and rework. 2007-07-16 06:16:35 +00:00
Oliver McFadden
b0f0b4044c r300: Replaced the ugly VERTEX_SHADER_INSTRUCTION typedef. 2007-07-16 05:04:10 +00:00
Oliver McFadden
9457bf62bb r300: Gracefully exit after GART memory is exhausted. 2007-07-15 01:17:54 +00:00
Oliver McFadden
393558a933 r300: Disable vertex program point size; it's almost certainly wrong.
See the conversation between myself and Tommy Schultz Lassen on mesa3d-dev.
2007-07-14 18:31:29 +00:00
Oliver McFadden
491f646c79 r300: Clean up the vertex program output assignment. 2007-07-14 18:12:04 +00:00
Patrice Mandin
24f85f047b nouveau: nv10 and nv11,15 are different 2007-07-14 18:54:22 +02:00
Jan Dvorak
5a0f02a394 fix shader/info string length queries (bug 11588) 2007-07-13 16:36:00 -06:00
Ben Skeggs
8fcfaa3238 Play "nuke the typedef" 2007-07-13 23:39:45 +10:00
Oliver McFadden
5ec66cf62d Revert "r300: Corrected off-by-one error in r300_vertprog.c."
This reverts commit 07ac2386f5.
2007-07-13 09:39:23 +00:00
Oliver McFadden
07ac2386f5 r300: Corrected off-by-one error in r300_vertprog.c. 2007-07-13 04:58:32 +00:00
Oliver McFadden
42dcdb9372 r300: Moved some hardware initialization into appropriate functions. 2007-07-13 04:51:36 +00:00
Oliver McFadden
08a005e076 r300: Use a switch statement in r300UpdateCulling. 2007-07-13 04:51:36 +00:00
Oliver McFadden
4b08b9c3e9 r300: Setup the back facing color bits correctly.
Apparently for back facing color to work you must set all 3 color bits; I guess
the hardware cannot handle them separately.
2007-07-13 04:51:36 +00:00
Brian
7c4c82fc6d fix width/depth mix-up (bug 11577) 2007-07-12 21:33:05 -06:00
Brian
f5eb25e9c7 fix swizzle-related bug 11534 2007-07-12 14:50:53 -06:00
Patrice Mandin
e5dd389429 nv20 also don't support viewport_origin, like nv10 2007-07-12 18:36:41 +02:00
Ben Skeggs
cd8613e59d nouveau: match drm 0.0.9 interface 2007-07-12 11:08:17 +10:00
Brian
3ffa09b09d clean-up of stencil code 2007-07-11 16:33:15 -06:00
Brian
b755a2d9de Minor clean-up of polygon offset logic. Properly compute _MRD field. 2007-07-11 16:20:32 -06:00
Brian
34f6243bef Improve this demo in a few ways.
1. Use more reasonable hither/yon clip planes to make better use of shallow
(16-bit) z buffers.
2. Use different colors on cube faces to help detect Z fighting if it occurs.
3. Report GL_DEPTH_BITS on start-up.
2007-07-11 16:20:32 -06:00
Tommy Schultz Lassen
ee7fece054 r300: Added support for Back Facing Color. 2007-07-11 17:37:45 +00:00
Tommy Schultz Lassen
4bd04c9851 r300: Corrected r300UpdateCulling; would only set font face if culling was set. 2007-07-11 17:37:44 +00:00
Patrice Mandin
922dadf422 nouveau: nv20 does not support hw scissors 2007-07-11 19:25:32 +02:00
Arthur Huillet
a8ec5dac3c bumped nouveau DRM interface version number 2007-07-11 02:48:40 +02:00
Michel Dänzer
7c42222111 i915tex: Better procedure for dropping batchbuffer on virtual resolution change.
The previous procedure would often result in a GPU lockup.
2007-07-10 11:14:46 +02:00
Michel Dänzer
f1e1b2ed16 i915tex: Only wait for vblank when really necessary.
This avoids superfluous waits for vblank timing out under some circumstances.
2007-07-10 11:14:25 +02:00
Michel Dänzer
a903749b24 Clear pointers to freed cliprects.
Not doing this could lead to double frees under rare circumstances.
2007-07-10 11:05:41 +02:00
Brian
aa328291c5 Fix size test bug in _mesa_test_proxy_teximage().
width/height/depth == 0 is a legal texture size (no error generated).
Later, the texture will be considered incomplete, however, and texturing
will effectively be disabled.
See bug 11309.
2007-07-08 09:59:05 -06:00
Brian
37ece4df7c Check if 'indices' parameter is NULL (bug 11314) 2007-07-08 09:20:42 -06:00
Brian
25cfb68f0b Change float depthScale param to _mesa_unpack_depth_span() to GLuint depthMax. 2007-07-08 09:02:36 -06:00
Brian
64359af071 check depthScale value for optimized ushort->uint case (fixes bug 11474) 2007-07-08 08:53:19 -06:00