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
0360b49afb
Implement line stippling.
...
Also added draw_stage::reset_line_stipple(). There may be a better way
of doing that though.
2007-07-25 15:48:09 -06:00
Brian
1f6b4b0f75
rename some vars
2007-07-25 14:32:28 -06:00
Brian
8b2955b736
implement DDX, DDY instructions
2007-07-25 14:28:24 -06:00
Brian
be8725321c
Fix pinterp() to compute 1 / FRAG_ATTRIB_WPOS.w Update comments too.
2007-07-25 14:27:38 -06:00
Brian
d24e60a6b1
patch things up enough to allow texture sampling to work
2007-07-25 12:15:02 -06:00
Brian
03ec41ddc5
remove unused MAX_3D_TEXTURE_SIZE, reformattting
2007-07-24 17:45:14 -06:00
Brian
a502c08a25
use consistent indentation
2007-07-24 17:10:30 -06:00
Brian
2eb9061f73
check return value of tgsi_parse_init()
2007-07-24 16:50:46 -06:00
Brian
ed52adc64e
added PROGRAM_NAMED_PARAM in map_register_file()
2007-07-24 16:50:00 -06:00
Brian
3ffd30638a
added GL_FRAGMENT_PROGRAM_NV in st_new_program()
2007-07-24 16:49:41 -06:00
Brian
496ee38b71
Add VF_ATTRIB_VAR0..7 for varying variables.
...
The demos/fslight.c demo runs now.
2007-07-24 15:39:41 -06:00
Brian
5c2cff44d2
added PROGRAM_UNIFORM to map_register_file()
2007-07-24 15:38:41 -06:00
Brian
6a235d3fe5
comments
2007-07-24 14:45:57 -06:00
Brian
8c99f7ba61
s/GLuint/GLbitfield/
2007-07-24 14:45:38 -06:00
Brian
1475d74cfb
Compute need_z and need_w properly and use the correct const/linear/perspective interpolation in shade_quad().
2007-07-24 14:44:44 -06:00
Brian
2de4c7573e
Fix a typo (i << i) that was fouling up the vertex layout info.
2007-07-24 14:31:16 -06:00
Brian
67b61520ce
added missing OPCODE_ARL to TGSI_OPCODES[], added sanity check assertion
2007-07-24 13:48:20 -06:00
Brian
3af7876521
added code to test per-vertex colors
2007-07-24 12:28:01 -06:00
Brian
43d7c1fe9d
Basic fragment programs run now.
...
Handling of constants might change. For now, the st_fragment_program struct
contains a pipe_constant_buffer (not a pointer).
2007-07-24 12:27:38 -06:00
Brian
ef3849ffa0
rebuild quad pipeline when framebuffer changes too
2007-07-24 12:12:52 -06:00
Brian
9110dbd9b2
simple fragment shader test
2007-07-24 10:00:29 -06:00
Brian
47fafcf06f
use enabled/linked fragment shader in preference to a fragment program
2007-07-24 09:58:19 -06:00
Brian
4477a01372
call ctx->Driver.NewProgram() instead of _mesa_new_program()
2007-07-24 09:57:26 -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
5b737b7df2
Merge branch 'softpipe_0_1_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into softpipe_0_1_branch
2007-07-24 09:17:59 -06:00
Brian
da2f1e88bc
fix GLX_STEREO handling (bug 11705)
2007-07-23 16:51:57 -06:00
michal
98eaf5503d
Execute fs tokens.
...
Fix align128 bug.
2007-07-23 18:26:25 +02: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
36fce66034
set the _BaseFormat for window-framebuffers, could hit some assertion otherwise
2007-07-21 16:51:15 +02:00
Roland Scheidegger
82fceba231
fix bogus recently introduced function param comments
2007-07-20 11:47:06 +02:00
Roland Scheidegger
118bd626b1
fix bogus recently introduced function param comments
2007-07-20 11:34:26 +02:00
Roland Scheidegger
97cd87ef74
minor cleanups, disable debugging
2007-07-20 11:33:24 +02:00
Keith Whitwell
4824c342c8
Trigger tgsi compilation for fragment programs.
...
Not sure the generated program looks correct though...
2007-07-19 20:24:55 +01:00
Roland Scheidegger
e0850e52ee
remove some more really old ifdefed out code...
2007-07-19 18:11:48 +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
Roland Scheidegger
79ddb7f9a2
more cleanups (looks pretty reasonable now)
...
remove some already ifdefed out, no longer functional and used code.
Don't do our own scissor clipping in the pixeldraw/copy paths,
as meas already does that for us...
2007-07-19 17:42:14 +02:00
Roland Scheidegger
da21eff86b
fix drawables not getting freed if context is made current with new drawables
2007-07-19 16:41:14 +02:00
Roland Scheidegger
131a036312
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-18 20:17:14 +02:00
Roland Scheidegger
3f318c2eb9
more fixes for mesa's fbo handling (fixes tests/fbotest1/2)
2007-07-18 18:07:12 +02:00
Roland Scheidegger
ccb713cdb8
swapbuffers with non-current contexts, cleanups
...
manywin got broken (when intelPageflip got no longer called).
Make sure that intelFlush is getting called when a context gets unbound,
to handle later swapbuffer calls on that context's drawable better.
Related, fix non-current cliprects getting used on unbound drawables.
2007-07-18 15:18:43 +02:00
Oliver McFadden
0b48ce450e
r300: Oops, made a mistake on commit fb4e071bed.
2007-07-18 02:59:08 +00:00