Commit graph

12212 commits

Author SHA1 Message Date
Zou Nan hai
c9c64a100d [i965] This is to fix random crash in some maps of Ut2004 demo.
e.g. bridge of fate.
 	If vs output is big, driver may fall back to use 8 urb entries for vs,
	unfortunally, for some unknown reason, if vs is working at 4x2 mode,
	8 entries is not enough, may lead to gpu hang.
2008-04-22 15:50:40 +08:00
Xiang, Haihao
f61e51ee98 i965: save the offset of target buffer after last execution, not relocatee buffer. 2008-04-22 11:11:42 +08:00
Xiang, Haihao
7c2a3fced8 intel: fix an assertion failure. fix bug #15575 2008-04-21 17:34:00 +08:00
Xiang, Haihao
33107357a1 i965: clear the PRESUMED_OFFSET flag from bo_req.hint, not bo_req.flags. fix #15574 2008-04-21 14:02:50 +08:00
Eric Anholt
711222bb7b autoconf: Default the build to DRI on OS+CPU combos where it's expected. 2008-04-18 15:04:21 -07:00
Dave Airlie
27e06a5234 i965: fixup depth buffer check 2008-04-18 15:37:54 +10:00
Dave Airlie
fda4895d26 i965: fix vb aperture space check 2008-04-18 15:14:48 +10:00
Dave Airlie
e92e3848e7 965: fix vb upload size check 2008-04-18 15:09:46 +10:00
Dave Airlie
e149e1b953 i965: fix gs_prog aperture check 2008-04-18 15:09:46 +10:00
Dave Airlie
f2a6404ef3 i915: check for depth region before accounting its buffer size
fd.o bz #15573
2008-04-18 12:13:13 +10:00
Dave Airlie
008653ac55 i965: initial attempt at fixing the aperture overflow
Makes state emission into a 2 phase, prepare sets things up and accounts
the size of all referenced buffer objects. The emit stage then actually
does the batchbuffer touching for emitting the objects.

There is an assert in dri_emit_reloc if a reloc occurs for a buffer
that hasn't been accounted yet.
2008-04-18 11:57:38 +10:00
Xiang, Haihao
08f9b190a7 Revert "[i965] renable regative rhw test"
This reverts commit 3158e981f5.
rhw issue has gone away on IGD.
2008-04-17 16:50:42 +08:00
Andrew Randrianasulu
8642dd30f9 r200: accept PROGRAM_CONSTANT inputs due to mesa changes 2008-04-17 02:51:30 +02:00
Dave Airlie
b64448b3e4 bufmgr_fake: disable debugging again 2008-04-16 16:49:32 +10:00
Dave Airlie
96338dd147 intel: fix _mesa_error ctx I introduced at lsat minute 2008-04-16 16:37:13 +10:00
Dave Airlie
7cc7ff7051 intel/fake_bufmgr: Attempt to restrict references to objects in a batchbuffer > aperture size.
So with compiz on Intel hw with fake bufmgr, opening 4 firefox windows at 1680x1050 and hitting alt-tab, could cause the batchbuffer to try and reference more than the 32MB of RAM allocated.

Fix 1:
Fix 1 is to pre-verify the list of buffers against the current batchbuffer and if it can't possibly fit in the aperture to flush the batchbuffer to the hardware
and try again. If the buffers still can't fit well then you are hosed as I'm not sure there is a nice way to tell anyone.

Fix 2:
Next problem was that even with a simple check for total < aperture, we ran
into fragmentation issues, this meant that half way down a set of buffers,
we would fail as no blocks were available. Fix this by nuking the memory
manager from orbit and letting it start again and relayout the blocks in a
manner that fits.

Fix 3:
Finally the initial problem we were seeing was a memcpy to a NULL backing store.
We seem to end up with a texture at some point that never gets mapped but ends up with data in it. compiz al-tab icons have this property. So I created a card dirty bit that memcpy's any buffer that is !static and is written to back to memory. This probably is wrong but it makes compiz work for now.

Caveats:
965 support is still fail.
2008-04-16 16:22:05 +10:00
Brian
bbb042f0b8 fix multi-draw buffer regression 2008-04-14 21:02:34 -06:00
Brian Paul
118c2bc860 only use __x86_64__, not __amd64__ (bug 15503) 2008-04-14 14:10:32 -06:00
Brian Paul
8fd2b7d9dd fix GL_ARB_texture_rectangle breakage 2008-04-14 13:43:24 -06:00
Brian Paul
3403f9fe13 check for _WIN32 and __WIN32__ 2008-04-14 13:41:39 -06:00
David Flynn
7be8d5664a define #extension GL_ARB_texture_rectangle 2008-04-14 13:41:39 -06:00
Roland Scheidegger
32134b5508 r200: fix XPD vertex program instruction when using temps as inputs
due to the two read ports limit into temp memory may need the MAD_2 instruction
for the second instruction of the decomposed XPD.
While here, also try to avoid MAD_2 for MAD if all 3 inputs are temps but the
temps aren't actually distinct.
2008-04-12 02:40:27 +02:00
Brian Paul
51ad219d6f fix failed assertion (parameter can be a PROGRAM_CONSTANT) 2008-04-11 09:35:18 -06:00
Brian Paul
b69eb0360a add missing glViewport calls 2008-04-11 08:59:39 -06:00
Brian Paul
3f4e80c06b comments 2008-04-11 08:59:39 -06:00
Michel Dänzer
23635510e3 Get the default GLXPixmap texture target from the server when appropriate.
Fixes compiz with direct rendering when both GLX_TEXTURE_2D_EXT and
GLX_TEXTURE_RECTANGLE_EXT are supported for a GLXPixmap and the
application didn't specify the texture target as a GLX drawable attribute
when creating the GLX drawable.
2008-04-10 15:47:46 -04:00
Brian
842b8b4c33 more make clean items 2008-04-09 22:30:42 -06:00
Brian
26f0b8f506 use InitUniforms() 2008-04-09 22:30:42 -06:00
Brian
2dca3373ae Replace duplicated code with new shaderutil.c functions 2008-04-09 22:30:42 -06:00
Brian
90caba3d76 shader utility functions 2008-04-09 22:30:42 -06:00
Hasso Tepper
f9c8af31c5 Add support for dfbsd to mklib script. 2008-04-09 11:03:05 -07:00
Hasso Tepper
43887cf396 Add $(X11_INCLUDES) to shut makedepend up. 2008-04-09 10:56:12 -07:00
Hasso Tepper
9f8df2d07f autoconf: Add dfbsd support. 2008-04-09 10:51:21 -07:00
Jie Luo
2771862adc Handle fbconfig comparison correctly for attributes the X server didn't send. 2008-04-08 19:17:06 -04:00
Kristian Høgsberg
c016f329ab Only convert configs if screen creation was successful.
Thanks to Adam Jackson for pointing it out.
2008-04-08 18:31:07 -04:00
Michel Dänzer
da3e48186d r300: Fix r300VAPInputRoute{0,1} for big endian platforms. 2008-04-07 10:28:42 +02:00
Brian
5d73502625 7.0.3 updates 2008-04-04 19:28:33 -06:00
Brian
fad7933c44 updated w/ 7.0.3 release 2008-04-04 19:28:33 -06:00
Brian
6eddb4cb20 import 7.0.3 relnotes from 7.0 branch 2008-04-04 19:28:33 -06:00
Brian
c3240b5ff8 added glGetActiveUniform_func 2008-04-04 19:28:33 -06:00
Brian
40905c909d mesa: add missing glPush/PopMatrix() calls 2008-04-04 19:28:33 -06:00
Brian
ae0ea14ff6 mesa: add missing glPush/PopMatrix() calls 2008-04-04 19:28:33 -06:00
Brian
1757acc293 rewrite some of the mat*mat, mat*vec intrinsics
Also, remove obsolete matrix codegen code.
2008-04-03 21:51:31 -06:00
Brian
96b4ac05be silence warning 2008-04-03 20:12:32 -06:00
Kristian Høgsberg
e786924bf0 Pick up dri2proto from the standard proto header include path. 2008-04-02 19:17:31 -04:00
Kristian Høgsberg
dc836edf49 Initialize GLX_EXT_texture_from_pixmap attributes correctly. 2008-04-02 19:05:43 -04:00
Roland Scheidegger
28dfb0613b fix mistakenly set ATIFragmentShader._Enabled bit (bug 15269) 2008-04-01 23:24:11 +02:00
Brian
5c4ca968fa added some missing calls to _mesa_enable_x_y_extensions() 2008-04-01 08:43:34 -06:00
Dan Nicholson
b645942df9 Use AC_CHECK_PROGS to find alternate make programs
The autoconf macro AC_PATH_PROGS handles the case of searching for
multiple program names already, so we don't need to open code it. Also
changed the search to AC_CHECK_PROGS so that it doesn't set the full
path unless the user specified. Finally, report back the found value at
the end for what the user should run.
2008-03-31 17:00:00 -07:00
Markus Amsler
3ea80c1128 fix parsing bug involving comments at the end of ARB v/f programs 2008-03-31 14:58:48 -06:00