Commit graph

10967 commits

Author SHA1 Message Date
Roland Scheidegger
d9499a151d 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-17 17:29:55 +02:00
Roland Scheidegger
04d49ff24d remove old code, remaining bits of static handles, disable (no longer functional anyway) rotation code 2007-07-17 15:56:43 +02:00
Roland Scheidegger
4dd8e2648d increase MAX_RELOCS so never run out before batch buffer is full (fixes xdemos/shape) 2007-07-17 12:56:30 +02:00
Roland Scheidegger
cc9cf90b09 fix resize bugs (fb size updated too late), fix typos, cleanups... 2007-07-16 20:53:33 +02:00
Roland Scheidegger
5fc7973d54 small cleanups 2007-07-16 19:01:47 +02:00
Roland Scheidegger
894557d625 get rid of more cliprects... 2007-07-16 17:41:22 +02:00
Roland Scheidegger
56cbdfd7d5 more cliprect elimination (swrast span) 2007-07-16 15:53:23 +02:00
Roland Scheidegger
6104044f6b get rid of more fake cliprects (drawpixel), and enable blit draw with scissor 2007-07-16 15:33:09 +02:00
Roland Scheidegger
8b93d9238e get rid of more cliprects (readpixel)... 2007-07-16 13:57:49 +02:00
Roland Scheidegger
d69cae95a0 allow blit path for read pixels if pack->alignment isn't 1.
pack->alignment doesn't matter usually if the image is sufficiently aligned
anyway. Speeds up some tests/readrate cases by a factor of 100 (since
the pack->alignment default which noone ever bothers to change is 4).
2007-07-16 11:51:08 +02:00
Roland Scheidegger
99c7e38d83 change back driver change from previous commit 2007-07-15 22:53:59 +02:00
Roland Scheidegger
a1ec23a30f fix bogus fb/drawable information (fixes xdemos/wincopy)
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 may 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).
2007-07-15 22:47:42 +02:00
Roland Scheidegger
8172f50419 fix the texture copypixels path 2007-07-15 20:15:19 +02:00
Roland Scheidegger
cd3afa2a95 begin getting rid of fake clip rects (copy_pixel) 2007-07-15 18:17:36 +02:00
Roland Scheidegger
a04056d313 fix assertion, z/stencil swarst readback, (still looks suspicious) copyTexSubimage 2007-07-14 14:24:20 +02:00
Roland Scheidegger
f022bff5aa bugfixes (wrt fb updates), cleanups
move drawable validation back to where it was now that the driDrawable
information isn't used directly anymore.
Fix bogus fb updates (the context we get for SwapBuffer processing
may not have the drawable being processed attached!)
glthreads behaves a bit better but still not correct.
2007-07-13 20:47:17 +02:00
Roland Scheidegger
8b6517abfc don't use driDrawable information directly, don't resize at makecurrent
driDrawable information now isn't used in most parts of the driver.
makecurrent only updates fb information when the context is new
(driDrawable is still updated by the dri common code).
2007-07-12 21:52:02 +02:00
Roland Scheidegger
9870f7bccc restrict blitted area to size of rendered area 2007-07-11 20:18:51 +02:00
Keith Whitwell
20cf13e03b Fix screen corruption on resize.
Move buffer resize check to immediately after swapbuffers.

Update cliprects inside the locked region of swapbuffers.
2007-07-11 17:01:30 +01:00
Roland Scheidegger
fb67b1609e remove bogus assertion, change drawable updates
don't update driDrawable information until later at all
(blit needs fixing).
2007-07-11 17:30:01 +02:00
Roland Scheidegger
eb2a896f68 drop some more code no longer needed 2007-07-11 16:08:14 +02:00
Roland Scheidegger
43e24ff507 some fixes, fake frontbuffer
still doesn't work quite right (resize).
Fake frontbuffer doesn't copy in real frontbuffer.
Don't even think about doing rotation/page flip/triple buffering for now...
More cleanups needed (fake cliprects etc.)
2007-07-11 14:20:39 +02:00
Roland Scheidegger
1278514ff4 copybuffer/cliprect fixups 2007-07-10 19:56:44 +02:00
Roland Scheidegger
d348a48ac3 First attempt at using private back/z buffers.
Allocate and use private back and z/stencil buffers.
This is still very broken.
2007-07-10 18:07:38 +02:00
Dave Airlie
5657fc5b4c r300: only init swtcl on tcl-less cards 2007-07-04 15:30:40 +10:00
Brian
7ff4359a3b added vec2(vec4) constructor, bug 11404 2007-07-03 11:41:56 -06:00
Brian
a36b5c6d47 add code for stpq, rgba writemasks in make_writemask(), bug 11404 2007-07-03 11:41:21 -06:00
Brian
3d04682b7a fix StepX/StepY typo 2007-07-03 10:06:13 -06:00
Brian
f9b53f648d use _mesa_unpack_stencil_span() in draw_stencil_pixels(), bug 11457 2007-07-03 08:54:29 -06:00
Roland Scheidegger
9a45176dd8 fix GL_DOT3_RGBA texture combiner mode in generated fragment programs (bug #11030) 2007-07-03 14:27:41 +02:00
Brian
9220255d75 add const to wglSetPixelFormat() to match .h declaration 2007-07-02 10:16:02 -06:00
Brian
06542019a8 avoid unnecessary clamping of depth values (bug 11448) 2007-07-02 08:46:57 -06:00
Dave Airlie
6257ed8663 r300: fix compiz crash on swtcl - doesn't fix compiz though.
Compiz for some reason looks like ass, everything with textures
looks like it has a 2x width/height multiplier on the texture coords...
2007-07-02 17:22:35 +10:00
Claudio Ciccani
a49570794a Compute the amount of time to sleep on idle event using timers as reference. 2007-07-01 12:24:44 +02:00
Claudio Ciccani
33da6cb133 Fixed initialization of render buffer and deinitialization of context. 2007-07-01 12:23:12 +02:00
Dave Airlie
ad19038080 r300: oops wrong logic for swtcl 2007-07-01 19:27:26 +10:00
Dave Airlie
0caee6b006 r300: oops turn back off cmd buf debugging 2007-07-01 18:52:47 +10:00
Dave Airlie
f556b7f84c Merge branch 'r300-swtcl' 2007-07-01 18:50:14 +10:00
Dave Airlie
646ed82e6b fix tabbing 2007-07-01 18:46:39 +10:00
Dave Airlie
6564e4bffa r300: add authorship 2007-07-01 18:43:22 +10:00
Dave Airlie
2d5313db72 r300: remove some unused code 2007-07-01 18:42:27 +10:00
Dave Airlie
b691d46046 r300: cleanup some of the swtcl code 2007-07-01 18:40:26 +10:00
Dave Airlie
8f7478e5cb r300: fixup manytex, we needed to emit the vic/vir/vof every time 2007-07-01 18:29:23 +10:00
Dave Airlie
885c1326c3 r300: fix tabbing 2007-07-01 17:15:50 +10:00
Brian
f4b103dc99 simplify INIT_SPAN code 2007-06-29 21:52:18 -06:00
Brian
fcc77d3ece s/SPAN_RGBA/SPAN_INDEX/ in clear_ci_buffer_with_masking() 2007-06-29 21:33:59 -06:00
Brian
9dca42a4a1 Undo some prev glDraw/CopyPixel changes which fixed a bug in which colors were overwritten by interpolating attributes.
Now just set the span->arrayAttribs mask in glDraw/CopyPixels and be sure
we don't overwrite the values in interpolate_active_attribs().
2007-06-29 21:29:30 -06:00
Brian
fb4f4e2d18 Obsolete 2007-06-29 21:13:20 -06:00
Brian
fc5bf53644 overhaul point rasterization, no longer use s_pointtemp.h 2007-06-29 21:12:46 -06:00
Brian
66d0784f13 regenerated 2007-06-29 07:53:11 -06:00