Commit graph

12246 commits

Author SHA1 Message Date
Dave Airlie
99e75135ee r300: this code really shouldn't be here.
For R500 just ignore it for now while I do something interesting like
run glxgears.
2008-05-02 12:06:21 -07:00
Dave Airlie
9d9f66cc8d mesa: cleanup state emission and rs for r500
trivial clear app now renders
2008-05-02 12:06:21 -07:00
Dave Airlie
a87914993d r500 RS unit setup 2008-05-02 12:06:21 -07:00
Dave Airlie
55418dc87d more r500 vs r300 kickin 2008-05-02 12:06:21 -07:00
Dave Airlie
2ffa112ed3 some basic r500 portage 2008-05-02 12:05:28 -07:00
Dave Airlie
cd66f0e2d9 r500: fragprog 2008-05-02 12:04:04 -07:00
Brian Paul
6e19f82c37 fix conversion of GLfloat display list IDs
Use floor() to convert to int (per Mark Kildard and the SI).
Also, change translate_id() to return a signed integer since we may be
offsetting from GL_LIST_BASE.
2008-05-01 14:59:34 -06:00
Brian Paul
5f0fa82f68 Add support for GL_REPLACE_EXT texture env mode.
GL_REPLACE_EXT comes from the ancient GL_EXT_texture extension.  Found an old demo that
actually uses it.
The values of the GL_REPLACE and GL_REPLACE_EXT tokens is different, unfortunately.
2008-04-30 16:07:33 -06:00
Dan Nicholson
7154d661a6 autoconf: Fail from autoconf if the pkg-config macros aren't defined
Instead of postponing the error from missing pkg-config macros to when
configure is run, make autoconf exit by using m4 macros.
2008-04-30 14:05:57 -07:00
Brian Paul
9a43570f8c added xdemos/sharedtex.c test
Test that modifications to a texture object in one rendering context are seen
in a second rendering context.
Press 't' to change the texture's image/colors.
2008-04-30 14:45:58 -06:00
Dan Nicholson
80f68e1b6a autoconf: Don't substitute MESA_MAJOR and friends
Since the autoconf config inherits from default, we don't need to
duplicate and substitute the MESA_* version numbers in configure.ac.
The version number is only needed in configure for the help text.
2008-04-30 13:31:44 -07:00
Xiang, Haihao
d12fa3511d intel: test cpp to ensure mipmap tree matches texture image. 2008-04-30 16:27:52 +08:00
Brian Paul
aef4ca647d disable GL_TEXTURE_1D at end of frame to fix failed assertion 2008-04-29 18:37:41 -06:00
Brian Paul
4e0e02ae68 mesa: adjust glBitmap coords by a small epsilon
Fixes problem with bitmaps jumping around by one pixel depending on window
size.  The rasterpos is often X.9999 instead of X+1.
Run progs/redbook/drawf and resize window to check.

Cherry picked from gallium-0.1 branch
2008-04-29 18:37:41 -06:00
Ove Kaaven
4f474c7d1e r200: fix state submission issue causing bogus textures (bug 15730) 2008-04-29 22:14:05 +02:00
Michel Dänzer
acba9c1771 Change default of driconf "allow_large_textures" to announce hardware limits.
The previous default these days served mostly to cause artifical problems with
GLX compositing managers like compiz (see e.g.
http://bugs.freedesktop.org/show_bug.cgi?id=10501).
2008-04-29 18:43:28 +02:00
Alan Hourihane
62a32b0d68 build fix for xorg driver 2008-04-28 22:41:42 +01:00
Keith Packard
ca73488f48 [i965] short immediate values must be replicated to both halves of the dword
The 32-bit immediate value in the i965 instruction word must contain two
copies of any 16-bit constants. brw_imm_uw and brw_imm_w just needed to
copy the value into both halves of the immediate value instruction field.
2008-04-25 16:08:50 -07:00
Dan Nicholson
10d70e2f2c glcore: Respect DESTDIR 2008-04-25 11:36:55 -07:00
George Sapountzis
004922b141 fix make tarballs 2008-04-25 17:20:05 +03:00
Alan Hourihane
118de7a013 silence warning 2008-04-25 10:39:52 +01:00
Pierre Beyssac
fddb0f6e4f enable GL_EXT_multi_draw_arrays (see bug 15670) 2008-04-24 16:29:34 -06:00
Alan Hourihane
6497d50924 include <X11/Xlib.h> 2008-04-23 15:59:23 +01:00
George Sapountzis
f6f9f5e481 drop stray includes of glapi 2008-04-23 11:12:31 +03:00
George Sapountzis
f027f8d3a8 glx: nitpick renames 2008-04-23 11:12:31 +03:00
George Sapountzis
df04ffbf02 glx: split out current context code
also clean header inclusion after code movement
2008-04-23 11:12:31 +03:00
George Sapountzis
37be884875 glcore: drop outdated sources files intented for xorg 2008-04-23 11:12:31 +03:00
George Sapountzis
750f52169c glcore: tree sharing for DRI and XMesa 2008-04-23 11:12:30 +03:00
George Sapountzis
32a2a095f4 glcore: build from mesa 2008-04-23 11:12:30 +03:00
Alan Hourihane
b3efd35f4b revert part of the previous cleanup - it only applies
to the 7.0 branch
2008-04-22 23:05:11 +01:00
Alan Hourihane
936dba1de5 Fix error string 2008-04-22 20:32:06 +01:00
Alan Hourihane
c8666cfb0b correct the return value 2008-04-22 20:31:58 +01:00
Alan Hourihane
eec20c359d small cleanups 2008-04-22 20:30:38 +01:00
Xiang, Haihao
6e620162a1 i965: fix DEPTH_TEXTURE_MODE (bug #14220) 2008-04-22 16:25:23 +08:00
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