Commit graph

11028 commits

Author SHA1 Message Date
Brian
0fb0d9715c fix-up inlined/non-inlined function inconsistencies 2007-07-26 16:42:05 -06:00
Brian
e3cef58875 Fix function call bug 11731. Also, fix up IR_CALL/IR_FUNC confusion. 2007-07-26 15:32:02 -06:00
Brian
9ed040c3c9 generate error upon writing to varying var in fragment program (bug 11733) 2007-07-26 11:39:11 -06:00
Brian
daaee90a26 clamp float colors 2007-07-26 08:22:47 -06:00
Brian
51b728cf9a fix color interpolation for CHAN_BITS==32 2007-07-26 08:22:28 -06:00
Brian
efda5cb626 don't use rgba_line() if CHAN_BITS==32 2007-07-26 08:22:09 -06:00
Brian
03ec41ddc5 remove unused MAX_3D_TEXTURE_SIZE, reformattting 2007-07-24 17:45:14 -06:00
Brian
5b6858c023 call ctx->Driver.NewProgram() instead of _mesa_new_program() 2007-07-24 09:56:44 -06:00
Brian
ffc633c469 fix logic error, typos 2007-07-24 09:19:22 -06:00
Brian
da2f1e88bc fix GLX_STEREO handling (bug 11705) 2007-07-23 16:51:57 -06:00
Zhang
76fb808910 Fix a number of MINGW32 issues 2007-07-21 11:28:06 -06:00
Brian
af2aa8e9cf Remove ctx->Point._Size and ctx->Line._Width.
The clamping for these values depends on whether we're drawing AA or non-AA
points, lines.  Defer clamping until drawing time.  Drivers could compute and
keep clamped AA and clamped non-AA values if desired.
2007-07-21 10:06:41 -06:00
Brian
5842bc3bf9 remove VC6/VC7 project files until updated 2007-07-21 10:06:40 -06:00
Roland Scheidegger
82fceba231 fix bogus recently introduced function param comments 2007-07-20 11:47:06 +02:00
Roland Scheidegger
a1bc0d0f51 fix mesa's handling of fbo's / window fb (again)
Make sure the relevant fields in window fbs get updated at appropriate time
(those are NOT the same as fbos!!!), and fix up related code accordingly.
This is a bit ugly, but there's a reason the issues section in EXT_fbo is
a couple hundred pages long...
Hopefully correct now.
2007-07-19 17:59:59 +02:00
Roland Scheidegger
6075df53b5 more fixes for mesa's fbo handling (fixes tests/fbotest1/2) 2007-07-19 17:59:31 +02:00
Roland Scheidegger
f9ac01eac5 fix up mesa's probably bogus framebuffer updates with different read/write fbs
Conflicts:

	src/mesa/main/framebuffer.c
2007-07-19 17:58:21 +02:00
Roland Scheidegger
dbfb375805 fix mesa fb binding
Make sure that we bind the right buffer (draw or read) when rebinding
the window framebuffer (the api doesn't allow binding different draw and
read buffers at the same time, but the default window framebuffer is basically
2 fb objects, one for read, one for write, which can be different). Pass both
of these two down the driver api (no driver uses this right now).
2007-07-19 17:47:14 +02:00
Roland Scheidegger
b9f2cf9a4e increase MAX_RELOCS so never run out before batch buffer is full (fixes xdemos/shape) 2007-07-19 17:46:35 +02:00
Oliver McFadden
0b48ce450e r300: Oops, made a mistake on commit fb4e071bed. 2007-07-18 02:59:08 +00:00
Oliver McFadden
86ece0a920 r300: Cleaned up vertprog construction.
Construct the vertprog instruction in the 4 DWORD parts...

DWORD 0: Opcode and Output.
DWORD 1: First Argument.
DWORD 2: Second Argument.
DWORD 3: Third Argument.

Allow the opcode translation functions to generate more than one instruction;
useful for when an instruction must be emulated. FLR, XPD, etc.
2007-07-18 02:49:26 +00:00
Tommy Schultz Lassen
fb4e071bed r300: Corrected texcoord start when BFC1 is enabled. 2007-07-18 00:37:43 +00:00
Oliver McFadden
7b410f366f r300: Corrected some progs/fp/* regressions from the BFC patch.
I'm not completely sure this is correct; it restores the old behaviour.
2007-07-16 21:43:39 +00:00
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