Commit Graph

115447 Commits

Author SHA1 Message Date
Keith Whitwell 41b58954e1 New driver for i915 as well as older i830/i845/i865 chipsets. 2004-06-10 12:48:07 +00:00
Dave Airlie d7f76c7c88 try and find the drm in a more likely place 2004-06-10 10:01:14 +00:00
Dave Airlie d4dcc6b5c0 Add FXT1 compression support to i830 driver 2004-06-10 09:54:45 +00:00
Eric Anholt 932e6fb420 Fix an "overflow in implicit constant conversion" warning in mEndPrimitive when
more warning flags are enabled (such as in the DRI tree).  Make the second line
prettier, too.

Reported by:	ajax
2004-06-10 09:13:31 +00:00
Adam Jackson 8a41ead407 silence a warning 2004-06-10 08:52:37 +00:00
Dave Airlie b3a4a07c61 remove unused stuff, fix non-native build 2004-06-09 05:10:29 +00:00
Dave Airlie 15be94fc26 fix mach64 non native.. no reason to use it... 2004-06-09 05:04:46 +00:00
Eric Anholt 59b0db3008 Fix reflect demo: We were using the 3D Clear path unnecessarily, which appears
to be broken in the stencil case for unknown reasons.
2004-06-09 04:59:30 +00:00
Eric Anholt 695a69029f * sisChooseRenderState doesn't depend on _NEW_TEXTURE at all.
* Clean up definition of _SIS_NEW_RENDER_STATE.
2004-06-09 04:58:03 +00:00
Dave Airlie e5a916d5b9 make rm for common not complain 2004-06-09 02:44:14 +00:00
Dave Airlie 9e9feacb43 remove depend on clean 2004-06-09 02:43:26 +00:00
Dave Airlie 37a94995cf fix bug with emitting spec/fog report by Eric Anholt, this isn't the prettiest
fix but it does work
2004-06-09 02:29:22 +00:00
Brian Paul 0590895ea7 fix parse error in sign of exponents (bug 968323) 2004-06-08 15:20:23 +00:00
Dave Airlie 7c381a267a Fix rectangular textures on i830 - well texrect at least 2004-06-08 10:21:59 +00:00
Eric Anholt e84f77be21 * Convert to use t_vertex.c instead of sis_vb.[ch]
* Don't dispatch vertices directly to MMIO; queue them up in dma-like buffers
  first.  This makes things more uniform between AGP and MMIO paths, cleans up
  some locking ugliness, and makes the driver look more like other drivers.
* Don't use the AGP Cmd buffer provided by the server.  Instead allocate one in
  the client, which avoids the need for lots of synchronization stuff.
* Mark some MMIO accesses volatile that should have been.
* Disable the AGP submission path by default (agp_disable=true) due to
  unresolved issues in the new code.  The old code had its own (serious) errors
  with AGP, so this is not really a step backwards.
2004-06-08 09:19:17 +00:00
Daniel Borca a94185474d corrected a bug wrt point_size 2004-06-08 06:08:56 +00:00
Eric Anholt 06668ed20a Clean a little whitespace that's been bothering me. 2004-06-08 04:38:33 +00:00
Ian Romanick 7c46033130 Fix up some remaining include issues. Replace Xmalloc / Xfree with
_mesa_malloc / _mesa_free.  Replace Bool with GLboolean.
2004-06-07 21:23:12 +00:00
Ian Romanick 03d7596b84 The required DDX and DRI version numbers were switched. This went unnoticed
on several drivers (i.e., R200, Radeon, R128, Unichrome) becuase the
required DRI and DDX versions were 4.0.0.  Mach64 was already fixed.
2004-06-07 20:18:43 +00:00
Eric Anholt 635ba1565c Add NEW_INTERFACE bits. 2004-06-07 19:13:18 +00:00
Dave Airlie 1312498709 fix all those warnings 2004-06-07 13:26:05 +00:00
Dave Airlie f9b107d876 use the mesa defines 2004-06-07 12:51:05 +00:00
Dave Airlie 6fc70e87ed oops fix a bug I introduced 2004-06-07 12:35:38 +00:00
Dave Airlie cbf863ee71 fix the versions 2004-06-07 11:58:59 +00:00
Daniel Borca 2c161cf395 small corrections 2004-06-07 06:03:08 +00:00
Dave Airlie edea87529e make endian code work on BSD 2004-06-07 00:29:40 +00:00
Dave Airlie 4ffbb81bd3 Remove use of X windows include 2004-06-06 23:32:12 +00:00
Ian Romanick e1a7f31c2b Remove the rest of the need for glxclient.h and remove it from the tree. 2004-06-06 02:20:20 +00:00
Ian Romanick 75046c5e59 Remove drivers that have not been converted to the new interface from
the DRI builds.
2004-06-06 02:19:24 +00:00
Ian Romanick a704e44f0a Bool may not be available when DRI_NEW_INTERFACE_ONLY is defined. 2004-06-06 01:36:30 +00:00
Ian Romanick 45e7b47d56 Enable use of new DRI interface in Unichrome driver. 2004-06-05 00:48:48 +00:00
Ian Romanick e3a07ba609 Start to "modernize" the driver. 2004-06-04 22:43:52 +00:00
Ian Romanick e3789ebe7d Replace 'Display *' with '__DRInativeDisplay *'. 2004-06-04 17:31:46 +00:00
Ian Romanick 98e7d810e1 Enable GL_EXT_blend_subtract and GL_NV_blend_square.
GL_EXT_blend_subtract was already enabled via GL_ARB_imaging, but now
one of the added modes is supported in hardware.  GL_NV_blend_square
was tested with progs/tests/blendsquare on an Rage128 Pro with PCI ID
1002:5046.  I know there are some differences with some versions of
the chip.
2004-06-04 00:46:23 +00:00
Jon Smirl d672f38709 Redo of removing __driRegisterExtensions(). I accidentally undid the previous check in. 2004-06-03 23:30:33 +00:00
Ian Romanick 82a5581089 Enable use of new DRI interface in Rage128 driver. 2004-06-03 23:16:58 +00:00
Roland Scheidegger 4d8c0398f1 fix minor signedness issue in assertion 2004-06-03 20:53:27 +00:00
Ian Romanick da1766f12f Remove fill_in_modes and use driFillInModes instead. 2004-06-03 19:08:36 +00:00
Ian Romanick 7439605697 Add a new function, driFillInModes, that is to be used by drivers to
create the set of support __GLcontextModes.  This should replace the
current driver-specific fill_in_modes functions.
2004-06-03 18:57:18 +00:00
Keith Whitwell 173bc32195 Fix problems when sizeof(Node) != sizeof(float) 2004-06-03 13:52:10 +00:00
Daniel Borca 93c91c3863 masked out unsupported glBlendColor (some games check only the proc addr) 2004-06-03 07:14:27 +00:00
Jon Smirl 8f980b0e74 Open/Close FullScreen die. unichrome and savage implemented, code is ifdef'd out 2004-06-03 02:34:31 +00:00
Jon Smirl ba3d643c49 kill __driRegisterExtensions(), none of the functions did anything 2004-06-03 01:56:07 +00:00
Ian Romanick 5b98ada880 driCheckDriDdxDrmVersion uses a function that is not available to
drivers when DRI_NEW_INTERFACE_ONLY is defined.  #ifndef it away in
that situation.

Add a new function, driCheckDriDdxDrmVersion2, that is passed in the
version information that is already supplied to __driCreateNewScreen.
Part of the reason that information is supplied to
__driCreateNewScreen is so that the driver doesn't have to make those
calls to get it!

Modify all drivers that support the new interface to use the new
function instead of the old.  As soon as all drivers support the new
interface, driCheckDriDdxDrmVersion can be removed.
2004-06-02 22:48:03 +00:00
Jon Smirl ffb36d57a5 Removed need for sarea.h, various touch ups to get rid of type mismatches. 2004-06-02 22:45:00 +00:00
Ian Romanick 1960182ece Require libGL API version 20040602, which actually exports
__glXGetDrawableInfo.  Make sure driCreateNewDrawable sets
pdraw->private to NULL for all failure paths.
2004-06-02 22:24:00 +00:00
Ian Romanick 5c113461df Make sure USE_NEW_INTERFACE is defined if DRI_NEW_INTERFACE_ONLY is
defined.
2004-06-02 22:12:24 +00:00
Roland Scheidegger 48ccaf2009 add support for more than 2 texture units (max 6, default 4). use hang workarounds only for r200, not derivatives. 2004-06-02 22:09:11 +00:00
Roland Scheidegger 2665a4e74c change GL_ARB_texture_env_crossbar implementation behaviour to OGL 1.4 core specification instead of extension specification (undefined behaviour instead of disabled blending if not enabled texture units are referenced). Fix minor signedness bug. 2004-06-02 21:40:03 +00:00
Ian Romanick 749e842953 Replace Bool with GLboolean. 2004-06-02 20:46:03 +00:00