Brian Paul [Fri, 11 Jun 2004 15:07:23 +0000 (15:07 +0000)]
don't pass GL_INTENSITY for <format> to glTexImage2D - it's illegal
Brian Paul [Thu, 10 Jun 2004 20:48:46 +0000 (20:48 +0000)]
document recent changes/fixes
Brian Paul [Thu, 10 Jun 2004 20:46:23 +0000 (20:46 +0000)]
Additional error checking for glTexImageXD.
Only allow 1D and 2D GL_DEPTH_COMPONENT textures.
Make sure internal format and user format are in same catagory.
Brian Paul [Thu, 10 Jun 2004 17:26:05 +0000 (17:26 +0000)]
Roland's patch to fix promotion of alpha or luminance textures to the
luminance_alpha format. In particular, using the al88 format to store
GL_ALPHA textures with r200 driver.
Keith Whitwell [Thu, 10 Jun 2004 12:48:07 +0000 (12:48 +0000)]
New driver for i915 as well as older i830/i845/i865 chipsets.
Dave Airlie [Thu, 10 Jun 2004 10:01:14 +0000 (10:01 +0000)]
try and find the drm in a more likely place
Dave Airlie [Thu, 10 Jun 2004 09:54:45 +0000 (09:54 +0000)]
Add FXT1 compression support to i830 driver
Eric Anholt [Thu, 10 Jun 2004 09:13:31 +0000 (09:13 +0000)]
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
Adam Jackson [Thu, 10 Jun 2004 08:52:37 +0000 (08:52 +0000)]
silence a warning
Dave Airlie [Wed, 9 Jun 2004 05:10:29 +0000 (05:10 +0000)]
remove unused stuff, fix non-native build
Dave Airlie [Wed, 9 Jun 2004 05:04:46 +0000 (05:04 +0000)]
fix mach64 non native.. no reason to use it...
Eric Anholt [Wed, 9 Jun 2004 04:59:30 +0000 (04:59 +0000)]
Fix reflect demo: We were using the 3D Clear path unnecessarily, which appears
to be broken in the stencil case for unknown reasons.
Eric Anholt [Wed, 9 Jun 2004 04:58:03 +0000 (04:58 +0000)]
* sisChooseRenderState doesn't depend on _NEW_TEXTURE at all.
* Clean up definition of _SIS_NEW_RENDER_STATE.
Dave Airlie [Wed, 9 Jun 2004 02:44:14 +0000 (02:44 +0000)]
make rm for common not complain
Dave Airlie [Wed, 9 Jun 2004 02:43:26 +0000 (02:43 +0000)]
remove depend on clean
Dave Airlie [Wed, 9 Jun 2004 02:29:22 +0000 (02:29 +0000)]
fix bug with emitting spec/fog report by Eric Anholt, this isn't the prettiest
fix but it does work
Brian Paul [Tue, 8 Jun 2004 15:20:23 +0000 (15:20 +0000)]
fix parse error in sign of exponents (bug 968323)
Dave Airlie [Tue, 8 Jun 2004 10:21:59 +0000 (10:21 +0000)]
Fix rectangular textures on i830 - well texrect at least
Eric Anholt [Tue, 8 Jun 2004 09:19:17 +0000 (09:19 +0000)]
* 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.
Daniel Borca [Tue, 8 Jun 2004 06:08:56 +0000 (06:08 +0000)]
corrected a bug wrt point_size
Eric Anholt [Tue, 8 Jun 2004 04:38:33 +0000 (04:38 +0000)]
Clean a little whitespace that's been bothering me.
Ian Romanick [Mon, 7 Jun 2004 21:23:12 +0000 (21:23 +0000)]
Fix up some remaining include issues. Replace Xmalloc / Xfree with
_mesa_malloc / _mesa_free. Replace Bool with GLboolean.
Ian Romanick [Mon, 7 Jun 2004 20:18:43 +0000 (20:18 +0000)]
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.
Eric Anholt [Mon, 7 Jun 2004 19:13:18 +0000 (19:13 +0000)]
Add NEW_INTERFACE bits.
Dave Airlie [Mon, 7 Jun 2004 13:26:05 +0000 (13:26 +0000)]
fix all those warnings
Dave Airlie [Mon, 7 Jun 2004 12:51:05 +0000 (12:51 +0000)]
use the mesa defines
Dave Airlie [Mon, 7 Jun 2004 12:35:38 +0000 (12:35 +0000)]
oops fix a bug I introduced
Dave Airlie [Mon, 7 Jun 2004 11:58:59 +0000 (11:58 +0000)]
fix the versions
Daniel Borca [Mon, 7 Jun 2004 06:03:08 +0000 (06:03 +0000)]
small corrections
Dave Airlie [Mon, 7 Jun 2004 00:29:40 +0000 (00:29 +0000)]
make endian code work on BSD
Dave Airlie [Sun, 6 Jun 2004 23:32:12 +0000 (23:32 +0000)]
Remove use of X windows include
Ian Romanick [Sun, 6 Jun 2004 02:20:20 +0000 (02:20 +0000)]
Remove the rest of the need for glxclient.h and remove it from the tree.
Ian Romanick [Sun, 6 Jun 2004 02:19:24 +0000 (02:19 +0000)]
Remove drivers that have not been converted to the new interface from
the DRI builds.
Ian Romanick [Sun, 6 Jun 2004 01:36:30 +0000 (01:36 +0000)]
Bool may not be available when DRI_NEW_INTERFACE_ONLY is defined.
Ian Romanick [Sat, 5 Jun 2004 00:48:48 +0000 (00:48 +0000)]
Enable use of new DRI interface in Unichrome driver.
Ian Romanick [Fri, 4 Jun 2004 22:43:52 +0000 (22:43 +0000)]
Start to "modernize" the driver.
Ian Romanick [Fri, 4 Jun 2004 17:31:46 +0000 (17:31 +0000)]
Replace 'Display *' with '__DRInativeDisplay *'.
Ian Romanick [Fri, 4 Jun 2004 00:46:23 +0000 (00:46 +0000)]
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.
Jon Smirl [Thu, 3 Jun 2004 23:30:33 +0000 (23:30 +0000)]
Redo of removing __driRegisterExtensions(). I accidentally undid the previous check in.
Ian Romanick [Thu, 3 Jun 2004 23:16:58 +0000 (23:16 +0000)]
Enable use of new DRI interface in Rage128 driver.
Roland Scheidegger [Thu, 3 Jun 2004 20:53:27 +0000 (20:53 +0000)]
fix minor signedness issue in assertion
Ian Romanick [Thu, 3 Jun 2004 19:08:36 +0000 (19:08 +0000)]
Remove fill_in_modes and use driFillInModes instead.
Ian Romanick [Thu, 3 Jun 2004 18:57:18 +0000 (18:57 +0000)]
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.
Keith Whitwell [Thu, 3 Jun 2004 13:52:10 +0000 (13:52 +0000)]
Fix problems when sizeof(Node) != sizeof(float)
Daniel Borca [Thu, 3 Jun 2004 07:14:27 +0000 (07:14 +0000)]
masked out unsupported glBlendColor (some games check only the proc addr)
Jon Smirl [Thu, 3 Jun 2004 02:34:31 +0000 (02:34 +0000)]
Open/Close FullScreen die. unichrome and savage implemented, code is ifdef'd out
Jon Smirl [Thu, 3 Jun 2004 01:56:07 +0000 (01:56 +0000)]
kill __driRegisterExtensions(), none of the functions did anything
Ian Romanick [Wed, 2 Jun 2004 22:48:03 +0000 (22:48 +0000)]
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.
Jon Smirl [Wed, 2 Jun 2004 22:45:00 +0000 (22:45 +0000)]
Removed need for sarea.h, various touch ups to get rid of type mismatches.
Ian Romanick [Wed, 2 Jun 2004 22:24:00 +0000 (22:24 +0000)]
Require libGL API version
20040602, which actually exports
__glXGetDrawableInfo. Make sure driCreateNewDrawable sets
pdraw->private to NULL for all failure paths.
Ian Romanick [Wed, 2 Jun 2004 22:12:24 +0000 (22:12 +0000)]
Make sure USE_NEW_INTERFACE is defined if DRI_NEW_INTERFACE_ONLY is
defined.
Roland Scheidegger [Wed, 2 Jun 2004 22:09:11 +0000 (22:09 +0000)]
add support for more than 2 texture units (max 6, default 4). use hang workarounds only for r200, not derivatives.
Roland Scheidegger [Wed, 2 Jun 2004 21:40:03 +0000 (21:40 +0000)]
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.
Ian Romanick [Wed, 2 Jun 2004 20:46:03 +0000 (20:46 +0000)]
Replace Bool with GLboolean.
Ian Romanick [Wed, 2 Jun 2004 20:45:19 +0000 (20:45 +0000)]
Minor changes to make it work better outside X. "Success" is replaced
by explicit 0. Several functions that are not needed with
DRI_NEW_INTERFACE_ONLY are blocked with '#ifndef DRI_NEW_INTERFACE_ONLY'.
Some further work is still required to make it build without any X
include files, though.
Ian Romanick [Wed, 2 Jun 2004 20:41:16 +0000 (20:41 +0000)]
Replace use of XID with __DRIid.
Ian Romanick [Wed, 2 Jun 2004 17:48:43 +0000 (17:48 +0000)]
Re-import from DRI tree.
Ian Romanick [Wed, 2 Jun 2004 17:48:16 +0000 (17:48 +0000)]
DRI_NEW_INTERFACE_ONLY is now the only support way to build in the
Mesa tree. If you need a driver that supports the old libGL/DRI
inteface, it must be built in the DRI tree.
Ian Romanick [Wed, 2 Jun 2004 17:37:09 +0000 (17:37 +0000)]
XF86DRIDestroyContext, XF86DRICreateDrawable, and
XF86DRIDestroyDrawable are all called directly from DRI drivers using
the new interface. Therefore, prototypes, using available datatypes,
must be available in dri_interface.h. Since the prototypes are
available there, xf86dri.h is no longer needed for
DRI_NEW_INTERFACE_ONLY builds.
Brian Paul [Wed, 2 Jun 2004 15:51:31 +0000 (15:51 +0000)]
fix stencil index bug (#964704)
Ian Romanick [Wed, 2 Jun 2004 05:07:10 +0000 (05:07 +0000)]
Replace drmHandle, drmContext, drmDrawable, drmMagic and related types with
drm_handle_t, drm_context_t, drm_drawable_t, drm_magic_t.
Brian Paul [Wed, 2 Jun 2004 00:16:42 +0000 (00:16 +0000)]
Check for NULL texture object when choosing texture sampler. Fixes segfault when fragment program references an incomplete texture
Ian Romanick [Tue, 1 Jun 2004 23:14:19 +0000 (23:14 +0000)]
Fix dumb mistake from a previous commit. __driCreateScreen is now
properly block with '#ifndef DRI_NEW_INTERFACE_ONLY'.
Roland Scheidegger [Tue, 1 Jun 2004 23:04:10 +0000 (23:04 +0000)]
add support for GL_ARB_texture_env_crossbar
Ian Romanick [Tue, 1 Jun 2004 20:24:59 +0000 (20:24 +0000)]
Convert 'Display *' to '__DRInativeDisplay *'. Only portions of the
interface that are not *strictly* part of the old interface were
changed. Replace GetDrawableInfo type (dri_util.h) with
PFNGLXGETDRAWABLEINFOPROC (dri_interface.h). Wrap __driCreateScreen
(in drivers that use the new interface) with '#ifndef
DRI_NEW_INTERFACE_ONLY'.
Ian Romanick [Tue, 1 Jun 2004 19:20:12 +0000 (19:20 +0000)]
Fix a couple issues related to GetDrawableInfo. In the new DRI
interface, it must be available from libGL, and the the typedef in
dri_util.h was wrong.
Ian Romanick [Tue, 1 Jun 2004 17:06:09 +0000 (17:06 +0000)]
Replace occurances of GLXDrawable and Drawable with __DRIid.
Ian Romanick [Tue, 1 Jun 2004 16:38:56 +0000 (16:38 +0000)]
Replace all occurances of XF86DRIClipRect (and related typedefs) with
drm_clip_rect_t.
Ian Romanick [Tue, 1 Jun 2004 15:42:14 +0000 (15:42 +0000)]
Fix a couple typos that prevent building with DRI_NEW_INTERFACE_ONLY.
Eric Anholt [Tue, 1 Jun 2004 02:00:25 +0000 (02:00 +0000)]
Remove unnecessary #include "mach64_common.h" which breaks the build for me.
Eric Anholt [Tue, 1 Jun 2004 00:39:34 +0000 (00:39 +0000)]
Missed in last commit:
Build fixing for FreeBSD. GNU make is installed as gmake, so make a MAKE
variable (defaults to "make") and use that. Use the MKDEP and MKDEP_OPTIONS
more. Our shell isn't bash, so change the instances of ">& /dev/null" to a more
compatible "> /dev/null 2>&1".
Eric Anholt [Tue, 1 Jun 2004 00:06:14 +0000 (00:06 +0000)]
Build fixing for FreeBSD. GNU make is installed as gmake, so make a MAKE
variable (defaults to "make") and use that. Use the MKDEP and MKDEP_OPTIONS
more. Our shell isn't bash, so change the instances of ">& /dev/null" to a more
compatible "> /dev/null 2>&1".
Eric Anholt [Mon, 31 May 2004 22:34:49 +0000 (22:34 +0000)]
Use MKDEP make variables instead of hard-coding.
Daniel Borca [Mon, 31 May 2004 06:24:36 +0000 (06:24 +0000)]
reworked FXT1
minor fixes to fxMesa
Dave Airlie [Mon, 31 May 2004 00:58:34 +0000 (00:58 +0000)]
fixup mach64 for newer build/types
Brian Paul [Sat, 29 May 2004 14:41:52 +0000 (14:41 +0000)]
check for null pointer in Fake_glXCreateGLXPbufferSGIGIX() (bug 961376)
Adam Jackson [Fri, 28 May 2004 19:27:33 +0000 (19:27 +0000)]
use new interface for tdfx (phase 2)
Adam Jackson [Fri, 28 May 2004 16:50:42 +0000 (16:50 +0000)]
Fix type conflict.
Roland Scheidegger [Fri, 28 May 2004 14:55:07 +0000 (14:55 +0000)]
update so it compiles again (untested driver path!). Basically ported changes from r200_maos_arrays.c cvs rev. 1.3-1.5.
Roland Scheidegger [Fri, 28 May 2004 14:50:36 +0000 (14:50 +0000)]
remove never finished verts path (r200_maos_vbtmp.h, r200_maos_verts.c) and unused R200_OLD_PACKET macro
Ian Romanick [Thu, 27 May 2004 22:49:12 +0000 (22:49 +0000)]
Define PFNGLXGETMSCRATEOMLPROC so that DRI will build without including
glxext.h.
Ian Romanick [Thu, 27 May 2004 22:31:06 +0000 (22:31 +0000)]
Move dri_util.[ch] and glcontextmodes.[ch] from dri_client to common.
Roland Scheidegger [Thu, 27 May 2004 16:56:47 +0000 (16:56 +0000)]
change some explicit references to texture units 0/1 to unit < MaxTextureUnits (Andreas Stenglein, Ronny Vindenes)
Ian Romanick [Thu, 27 May 2004 15:21:44 +0000 (15:21 +0000)]
Build the fogcoord demo.
Ian Romanick [Thu, 27 May 2004 00:05:13 +0000 (00:05 +0000)]
Modify glprocs.h to have two tables instead of one. The first table
is just a huge string will all the function names in it. The second
table contains offsets into the first table instead of pointers to
strings.
Ian Romanick [Thu, 27 May 2004 00:03:53 +0000 (00:03 +0000)]
Convert all calls using _glapi_Dispatch to use the new GL_CALL macro.
Ian Romanick [Wed, 26 May 2004 17:12:56 +0000 (17:12 +0000)]
Minor code simplification.
Ian Romanick [Wed, 26 May 2004 16:38:38 +0000 (16:38 +0000)]
Test the overhead of just calling a GL function. The Python script is
a helper to do multiple runs and compare the results.
Brian Paul [Tue, 25 May 2004 22:29:52 +0000 (22:29 +0000)]
only use simple_z_textured_triangle if depthBits <= 16
Ian Romanick [Tue, 25 May 2004 21:14:47 +0000 (21:14 +0000)]
Added a couple fog coordinate related register defines.
Ian Romanick [Tue, 25 May 2004 16:51:56 +0000 (16:51 +0000)]
Modify the generate assembly code to not use global registers %g2,
%g3, %g6, or %g7. This should eliminate the warnings about global
registers used without a ".register" directive.
Daniel Borca [Tue, 25 May 2004 14:19:30 +0000 (14:19 +0000)]
oops
Daniel Borca [Tue, 25 May 2004 07:22:41 +0000 (07:22 +0000)]
FXT1 texture compression (initial draft)
Ian Romanick [Mon, 24 May 2004 23:05:09 +0000 (23:05 +0000)]
Fixed a bug that caused every dispatch function to call glNewList.
Felix Kuehling [Mon, 24 May 2004 22:26:49 +0000 (22:26 +0000)]
WAIT_IDLE_EMPTY in savageSwapBuffers until real frame throttling is possible.
Eric Anholt [Mon, 24 May 2004 20:48:27 +0000 (20:48 +0000)]
Clean up some warnings by making sis_fatal_error a macro, and let it take an
argument of a message to print. Make some assert(0)s use sis_fatal_error.
Eric Anholt [Mon, 24 May 2004 20:09:59 +0000 (20:09 +0000)]
Add missing sisInitDriverFuncs call. Fixes segfault.
Ian Romanick [Mon, 24 May 2004 17:48:21 +0000 (17:48 +0000)]
Generates assembly dispatch stubs for SPARC. Generates different output
than glsparcasm.py, but the assembled code should be the same. The seems to
only work with GCC version >= 3.0. The older preprocessor doesn't like the
embedded # in the GLOBL_FN macro. On the SPARC system I used, /ccs/bin/as
didn't like the @function, it would only accept #function.
Dave Airlie [Mon, 24 May 2004 10:43:43 +0000 (10:43 +0000)]
stop crash when debugging
Roland Scheidegger [Fri, 21 May 2004 17:03:38 +0000 (17:03 +0000)]
use OGL 1.1 color logic ops in addition to GL_EXT_blend_logic_op