mesa.git
19 years agofix APP_LIB_DEPS
Brian Paul [Mon, 29 Aug 2005 22:45:52 +0000 (22:45 +0000)]
fix APP_LIB_DEPS

19 years agoImplement GL_ARB_texture_env_combine, GL_EXT_texture_env_combine, and
Ian Romanick [Mon, 29 Aug 2005 15:43:02 +0000 (15:43 +0000)]
Implement GL_ARB_texture_env_combine, GL_EXT_texture_env_combine, and
GL_ARB_texture_env_crossbar for i810.  This passes both demos/texenv and all
of glean's texCombine tests.

19 years agoremove drmAddress
Alan Hourihane [Mon, 29 Aug 2005 15:23:55 +0000 (15:23 +0000)]
remove drmAddress

19 years agoadded note about IEEE vs VAX floating point (bug 4270)
Brian Paul [Mon, 29 Aug 2005 14:45:30 +0000 (14:45 +0000)]
added note about IEEE vs VAX floating point (bug 4270)

19 years agofix a few proxy color table bugs (bug 4270)
Brian Paul [Sun, 28 Aug 2005 17:12:07 +0000 (17:12 +0000)]
fix a few proxy color table bugs (bug 4270)

19 years agocheck the Ready flag when getting GL_QUERY_RESULT_ARB
Brian Paul [Sat, 27 Aug 2005 14:04:37 +0000 (14:04 +0000)]
check the Ready flag when getting GL_QUERY_RESULT_ARB

19 years agoRearrange the code related to GL_ARB_occlusion_object to generalize query
Brian Paul [Sat, 27 Aug 2005 13:56:08 +0000 (13:56 +0000)]
Rearrange the code related to GL_ARB_occlusion_object to generalize query
objects for future types of queries.

19 years ago/dri/msg
Adam Jackson [Fri, 26 Aug 2005 17:50:39 +0000 (17:50 +0000)]
/dri/msg

19 years agoFix the scripts for the cygwin & mingw changes
Alan Hourihane [Fri, 26 Aug 2005 09:37:41 +0000 (09:37 +0000)]
Fix the scripts for the cygwin & mingw changes

19 years agoadded singlebuffer demo
Brian Paul [Thu, 25 Aug 2005 23:26:51 +0000 (23:26 +0000)]
added singlebuffer demo

19 years agoDemo of how to do (nearly) flicker-free rendering with a single color buffer.
Brian Paul [Thu, 25 Aug 2005 23:25:25 +0000 (23:25 +0000)]
Demo of how to do (nearly) flicker-free rendering with a single color buffer.

19 years agofix comment and #if test
Brian Paul [Thu, 25 Aug 2005 22:09:43 +0000 (22:09 +0000)]
fix comment and #if test

19 years agodon't compile debug code (bug 4242: rand undefined)
Brian Paul [Thu, 25 Aug 2005 19:43:38 +0000 (19:43 +0000)]
don't compile debug code (bug 4242: rand undefined)

19 years agoremove stray references to ctx->Depth.OcclusionTest
Brian Paul [Thu, 25 Aug 2005 19:38:42 +0000 (19:38 +0000)]
remove stray references to ctx->Depth.OcclusionTest

19 years agoFix texture format selection. ChooseTextureFormat is supposed to select the
Ian Romanick [Thu, 25 Aug 2005 19:15:01 +0000 (19:15 +0000)]
Fix texture format selection.  ChooseTextureFormat is supposed to select the
hardware format of the texture, and SetTexImages is supposed to use the
format selected by ChooseTextureFormat.  However, both routines were making
their choices based on the texture's BaseFormat.  This is wrong.
ChooseTextureFormat uses BaseFormat and SetTexImages uses
TexFormat->MesaFormat.

Once SetTexImages was fixed to use the right format values,
ChooseTextureFormat was cleaned up.  It now uses the few available texture
formats supported by the i810 in a smarter way.  This should improve the
quality of LUMINANCE, LUMINANCE_ALPHA, and INTENSITY textures.

I tested this by cycling through all the texture formats in demos/texenv and
tests/yuvsquare.

19 years agoupdate for mingw
Alan Hourihane [Thu, 25 Aug 2005 18:08:16 +0000 (18:08 +0000)]
update for mingw

19 years agoUpdate the glut idle function after a new window is created
Brian Paul [Thu, 25 Aug 2005 17:46:04 +0000 (17:46 +0000)]
Update the glut idle function after a new window is created

19 years agoinitial 6.5 changes (reflect demo, remove GL_HP_occlusion_test)
Brian Paul [Thu, 25 Aug 2005 14:24:49 +0000 (14:24 +0000)]
initial 6.5 changes (reflect demo, remove GL_HP_occlusion_test)

19 years agoremoved GL_HP_occlusion_test extension
Brian Paul [Thu, 25 Aug 2005 14:23:38 +0000 (14:23 +0000)]
removed GL_HP_occlusion_test extension

19 years agofix segfault in Fake_glXCreatePBuffer(), bug 4235
Brian Paul [Thu, 25 Aug 2005 14:07:06 +0000 (14:07 +0000)]
fix segfault in Fake_glXCreatePBuffer(), bug 4235

19 years agos/GLX_RGBA_BIT/GLX_RGBA_TYPE/ (bug 4237)
Brian Paul [Thu, 25 Aug 2005 13:18:53 +0000 (13:18 +0000)]
s/GLX_RGBA_BIT/GLX_RGBA_TYPE/ (bug 4237)

19 years agoAttempt to fix the issue reported by Alan Grimes with DRM_RADEON_TEXTURE
Eric Anholt [Thu, 25 Aug 2005 03:38:07 +0000 (03:38 +0000)]
Attempt to fix the issue reported by Alan Grimes with DRM_RADEON_TEXTURE
erroring out when it shouldn't.  The errno could be changed by usleep() between
the ioctl call and the loop check, if a signal was received.  This could cause
an EAGAIN return from the DRM_RADEON_TEXTURE ioctl to not loop again.
Instead of checking errno, check thevalue of ret itself, since it is a saved
(and sign-flipped) copy of errno from the ioctl call.

19 years agomake tiles a little smaller so they're all visible
Brian Paul [Thu, 25 Aug 2005 03:09:12 +0000 (03:09 +0000)]
make tiles a little smaller so they're all visible

19 years agoalso check for texture border in sample_linear_2d()
Brian Paul [Thu, 25 Aug 2005 03:05:10 +0000 (03:05 +0000)]
also check for texture border in sample_linear_2d()

19 years agoAdded multi-window support. Press 'n' to create new window, 'k' to kill
Brian Paul [Wed, 24 Aug 2005 21:32:02 +0000 (21:32 +0000)]
Added multi-window support.  Press 'n' to create new window, 'k' to kill
a window.  Good for exercising multi-window rendering.

19 years agoFix Windows build problems.
Alan Hourihane [Wed, 24 Aug 2005 09:08:06 +0000 (09:08 +0000)]
Fix Windows build problems.

GCC's visibility attribute is for ELF systems, so undef INTERNAL
GCC's fastcall attribute interferes with __stdcall so undef FASTCALL

19 years agoGLw demo doesn't belong here
Brian Paul [Tue, 23 Aug 2005 14:50:02 +0000 (14:50 +0000)]
GLw demo doesn't belong here

19 years agoremoved lines that caused some files to be included in tarballs multiple times
Brian Paul [Tue, 23 Aug 2005 13:40:30 +0000 (13:40 +0000)]
removed lines that caused some files to be included in tarballs multiple times

19 years agosimplify, clean-up texel addressing macros
Brian Paul [Tue, 23 Aug 2005 03:50:12 +0000 (03:50 +0000)]
simplify, clean-up texel addressing macros

19 years agoupdate version to 6.5.0
Brian Paul [Tue, 23 Aug 2005 00:45:54 +0000 (00:45 +0000)]
update version to 6.5.0

19 years agoadded GL_X_RENDERABLE to glXChooseFBConfig (bug 4181)
Brian Paul [Mon, 22 Aug 2005 14:28:19 +0000 (14:28 +0000)]
added GL_X_RENDERABLE to glXChooseFBConfig (bug 4181)

19 years agobump version to 6.5
Brian Paul [Mon, 22 Aug 2005 14:27:33 +0000 (14:27 +0000)]
bump version to 6.5

19 years agoadded .S DRI files to tarball (Donnie Berkholz), bumped version to 6.5
Brian Paul [Mon, 22 Aug 2005 14:27:13 +0000 (14:27 +0000)]
added .S DRI files to tarball (Donnie Berkholz), bumped version to 6.5

19 years agofix up libdrm for egl
Dave Airlie [Sun, 21 Aug 2005 03:17:52 +0000 (03:17 +0000)]
fix up libdrm for egl

19 years agofix typo
Brian Paul [Fri, 19 Aug 2005 23:44:35 +0000 (23:44 +0000)]
fix typo

19 years agomd5 sums for 6.3.2
Brian Paul [Fri, 19 Aug 2005 23:42:29 +0000 (23:42 +0000)]
md5 sums for 6.3.2

19 years agoupdate MESA_DEBUG with FP info
Brian Paul [Fri, 19 Aug 2005 23:34:10 +0000 (23:34 +0000)]
update MESA_DEBUG with FP info

19 years agoConvert libGL and DRI drivers to require libdrm.
Adam Jackson [Fri, 19 Aug 2005 20:20:03 +0000 (20:20 +0000)]
Convert libGL and DRI drivers to require libdrm.

libdrm can be had from:

http://people.freedesktop.org/~ajax/libdrm/

19 years agoFix a realloc problem with indirect vertex arrays. The actual head pointer
Ian Romanick [Fri, 19 Aug 2005 18:53:26 +0000 (18:53 +0000)]
Fix a realloc problem with indirect vertex arrays.  The actual head pointer
wasn't tracked and used for the realloc, so it tended to explode.

19 years agoupdates for 6.3.2 release, plus other assorted clean-ups
Brian Paul [Fri, 19 Aug 2005 16:57:50 +0000 (16:57 +0000)]
updates for 6.3.2 release, plus other assorted clean-ups

19 years agoCommit missing piece from Egbert's 32/64 bit patches
Alan Hourihane [Fri, 19 Aug 2005 16:07:33 +0000 (16:07 +0000)]
Commit missing piece from Egbert's 32/64 bit patches

19 years agoEnable ARB_texture_compression. The code has been in place for a long time,
Ian Romanick [Fri, 19 Aug 2005 00:48:25 +0000 (00:48 +0000)]
Enable ARB_texture_compression.  The code has been in place for a long time,
but, for whatever reason, the extension wasn't enabled.

Add some comments to i810ChooseTextureFormat.  There's some strangeness with
i810 texture formats.

19 years agoAdd support for NV_blend_square. This was tested with
Ian Romanick [Thu, 18 Aug 2005 22:27:37 +0000 (22:27 +0000)]
Add support for NV_blend_square.  This was tested with
progs/tests/blendsquare.

19 years agoMake sure extension entry point offsets are properly initialized. This is
Ian Romanick [Thu, 18 Aug 2005 22:16:46 +0000 (22:16 +0000)]
Make sure extension entry point offsets are properly initialized.  This is
primarilly needed to support functions that are internally implemented using
extension entry points (e.g., glBlendFunc uses glBlendFuncSeparate).

19 years agoDon't try to update hardware texture fields if there is no hardware texture.
Ian Romanick [Thu, 18 Aug 2005 20:01:01 +0000 (20:01 +0000)]
Don't try to update hardware texture fields if there is no hardware texture.
This can happen when all the texture enables for a texture unit are disabled.

This fixes bugzilla #3195.

19 years agoAdd simple regression test for bugzilla #3195.
Ian Romanick [Thu, 18 Aug 2005 19:52:44 +0000 (19:52 +0000)]
Add simple regression test for bugzilla #3195.

19 years agoMake the i810 driver use driGetRendererString like all the other drivers.
Ian Romanick [Thu, 18 Aug 2005 19:51:11 +0000 (19:51 +0000)]
Make the i810 driver use driGetRendererString like all the other drivers.
The GL_RENDERER string now accurately contains the chip name.  This was only
tested on a "plain" i810 (PCI ID 8086:7121).

19 years agoReplace mult/div operators with bitwise operators in texel fetch routines
Brian Paul [Thu, 18 Aug 2005 14:33:26 +0000 (14:33 +0000)]
Replace mult/div operators with bitwise operators in texel fetch routines
for better performance. (Roland Scheidegger)

19 years agoBump version to 6.3.2
Brian Paul [Tue, 16 Aug 2005 23:13:25 +0000 (23:13 +0000)]
Bump version to 6.3.2

19 years agoupdates for 6.3.2
Brian Paul [Tue, 16 Aug 2005 23:12:37 +0000 (23:12 +0000)]
updates for 6.3.2

19 years agoinclude stdint.h if WIN32 and GNUC (Colin Harrison). Patch forwarded to SGI.
Brian Paul [Mon, 15 Aug 2005 23:25:33 +0000 (23:25 +0000)]
include stdint.h if WIN32 and GNUC (Colin Harrison).  Patch forwarded to SGI.

19 years agotest the standard stencil op modes too (Philipp Klaus Krause)
Brian Paul [Mon, 15 Aug 2005 22:57:30 +0000 (22:57 +0000)]
test the standard stencil op modes too (Philipp Klaus Krause)

19 years agoIn _mesa_TexEnvfv, do not accept values for GL_OPERAND2_ALPHA and GL_OPERAND2_RGB...
Roland Scheidegger [Mon, 15 Aug 2005 18:24:12 +0000 (18:24 +0000)]
In _mesa_TexEnvfv, do not accept values for GL_OPERAND2_ALPHA and GL_OPERAND2_RGB which are only valid with ARB_texture_env_combine but not with EXT_texture_env_combine, when only EXT_texture_env_combine is supported.

19 years agoPut back '-I/usr/X11R6/include'.
Ian Romanick [Mon, 15 Aug 2005 15:01:39 +0000 (15:01 +0000)]
Put back '-I/usr/X11R6/include'.

Make 'USING_EGL=0' the default for now.  It's causing too much confusion for
too many non-developers (which in turn wastes too much developer time).  It
is trivially overridden from the make command line.  See comments in
linux-dri.

19 years agoAdd Egberts fixes for 64bit architectures
Alan Hourihane [Mon, 15 Aug 2005 06:59:24 +0000 (06:59 +0000)]
Add Egberts fixes for 64bit architectures

Add additional checks for the *DRIRec info structure passed in from the
device driver. This ensures that things fallback to indirect rendering if
the DDX driver has had modifications (i.e. removal of the drmAddress field).

19 years agoAdd a check which compares the passed in size of the DDX driver private DRI
Alan Hourihane [Sun, 14 Aug 2005 12:16:51 +0000 (12:16 +0000)]
Add a check which compares the passed in size of the DDX driver private DRI
structure to the 3D drivers view of it, and abort if they don't match.

This traps the case with the drmAddress removal in the DDX driver.

19 years agoEnable support for EXT_stencil_wrap. The code was already there, but the
Ian Romanick [Sat, 13 Aug 2005 01:43:28 +0000 (01:43 +0000)]
Enable support for EXT_stencil_wrap.  The code was already there, but the
extension wasn't enabled.  I have verified its correct function with Mesa's
stencil_wrap test.  It is enabled on both Savage4 and Savage3D.  Since
Savage3D uses a software fallback for *all* stencil operations, this is safe.

19 years agoadded FREXPF() macro (bug 4060)
Brian Paul [Fri, 12 Aug 2005 18:56:56 +0000 (18:56 +0000)]
added FREXPF() macro (bug 4060)

19 years agoRemove the logic that determines at compile time whether or not HAVE_ALIAS
Ian Romanick [Thu, 11 Aug 2005 20:29:45 +0000 (20:29 +0000)]
Remove the logic that determines at compile time whether or not HAVE_ALIAS
should be defined.  It was flawed on some platforms (e.g., Darwin & mingw).
Instead, rely on the build system to define it on the compiler command line.

This also reverts ajax's hand-edit to indirect_size.c.  I'll fix that on the
X.org side of things later today.

19 years agoRemove support for the R200_NO_VTXFMT environment variable. Instead use
Ian Romanick [Thu, 11 Aug 2005 19:47:06 +0000 (19:47 +0000)]
Remove support for the R200_NO_VTXFMT environment variable.  Instead use
'tcl_mode=1'.  This fixes bugzilla #3972.

19 years agoMakefile cleanups suggested by George Fufutos (bugzilla #3899).
Ian Romanick [Thu, 11 Aug 2005 19:37:55 +0000 (19:37 +0000)]
Makefile cleanups suggested by George Fufutos (bugzilla #3899).

19 years agoDon't link with libGL, libEGL, or libEGLdri. On EGL setups libGL isn't
Ian Romanick [Thu, 11 Aug 2005 19:29:25 +0000 (19:29 +0000)]
Don't link with libGL, libEGL, or libEGLdri.  On EGL setups libGL isn't
available, and on libGL setups libEGL and libEGLdri aren't available.

19 years agoSince Brian's recent commit, "-I/usr/X11R6/include/X11/extensions" is no
Ian Romanick [Thu, 11 Aug 2005 19:23:23 +0000 (19:23 +0000)]
Since Brian's recent commit, "-I/usr/X11R6/include/X11/extensions" is no
longer needed.

19 years agofix X #includes so they're relative to X11/ directory (bug 4047)
Brian Paul [Thu, 11 Aug 2005 14:18:53 +0000 (14:18 +0000)]
fix X #includes so they're relative to X11/ directory (bug 4047)

19 years agoMake ffb driver build on x86-64. The fix is two fold. First, use the
Ian Romanick [Thu, 11 Aug 2005 04:25:36 +0000 (04:25 +0000)]
Make ffb driver build on x86-64.  The fix is two fold.  First, use the
proper DRM_CAS_RESULT to declare the variable used to store the result
of DRM_CAS.  Second, only use the "real" versions of LOCK_HARDWARE and
UNLOCK_HARDWARE on SPARC.  That's the only platform where the hardware
can really exist.

19 years agoRemove _glapi_check_multithread from the interface exported by the loader to
Ian Romanick [Wed, 10 Aug 2005 23:54:15 +0000 (23:54 +0000)]
Remove _glapi_check_multithread from the interface exported by the loader to
the driver.  The loader now takes care of this for the driver.

Remove _glapi_DispatchTSD and give _glapi_Dispatch its semantic (i.e.,
having a NULL value means that the application is multithreaded and
_glapi_get_dispatch must be called).

Gut all of the dispatch override code.  This removes _glapi_RealDispatch,
_glapi_tls_RealDispatch, _glapi_begin_dispatch_override,
_glapi_end_dispatch_override, and _glapi_get_override_dispatch.

Remove _glapi_get_proc_address, _glapi_get_proc_name, _glapi_get_version,
and _glapi_check_table from the loader / driver interface.

Reviewed by: Brian Paul

19 years agoMesa uses the glVertexAttrib*NV functions to implement fixed-function
Ian Romanick [Wed, 10 Aug 2005 23:39:42 +0000 (23:39 +0000)]
Mesa uses the glVertexAttrib*NV functions to implement fixed-function
attributes in display lists.  If a driver doesn't add entry points for
GL_NV_vertex_program, it will explode.  This patch adds GL_NV_vertex_program
to the list of default extensions whose entry points are added by
driInitExtensions.

Thanks go to Roland Scheidegger for tracking the problem down and suggesting
the fix.

19 years agothe PIXEL_MAP_I_TO_I table should be GLfloat, not GLint
Brian Paul [Wed, 10 Aug 2005 17:04:03 +0000 (17:04 +0000)]
the PIXEL_MAP_I_TO_I table should be GLfloat, not GLint

19 years agofix static assertion problem for gcc (bug 4022)
Brian Paul [Wed, 10 Aug 2005 14:42:21 +0000 (14:42 +0000)]
fix static assertion problem for gcc (bug 4022)

19 years agodisable the pointer size assertions (bug 4021)
Brian Paul [Wed, 10 Aug 2005 14:40:05 +0000 (14:40 +0000)]
disable the pointer size assertions (bug 4021)

19 years agofix indentation
Brian Paul [Wed, 10 Aug 2005 14:38:39 +0000 (14:38 +0000)]
fix indentation

19 years agoCheck for prim/vertex store non-null before messing with refcounts.
Keith Whitwell [Wed, 10 Aug 2005 14:13:45 +0000 (14:13 +0000)]
Check for prim/vertex store non-null before messing with refcounts.

19 years agoAdd rules and target to build src/mesa/x86-64/glapi_x86-64.S.
Ian Romanick [Tue, 9 Aug 2005 18:54:12 +0000 (18:54 +0000)]
Add rules and target to build src/mesa/x86-64/glapi_x86-64.S.

19 years agoDecrement the context's refcounts on part-used storage structs on
Keith Whitwell [Tue, 9 Aug 2005 16:11:28 +0000 (16:11 +0000)]
Decrement the context's refcounts on part-used storage structs on
context destroy.  Fixes memory leak.

19 years agoactually free the renderbuffer in xmesa_delete_renderbuffer(), fixes a memory leak
Brian Paul [Tue, 9 Aug 2005 15:17:19 +0000 (15:17 +0000)]
actually free the renderbuffer in xmesa_delete_renderbuffer(), fixes a memory leak

19 years agodelete display lists upon exit
Brian Paul [Tue, 9 Aug 2005 15:14:51 +0000 (15:14 +0000)]
delete display lists upon exit

19 years agofree display lists and destroy window upon exit
Brian Paul [Tue, 9 Aug 2005 15:13:32 +0000 (15:13 +0000)]
free display lists and destroy window upon exit

19 years ago_mesa_free_framebuffer_data() call frees the renderbuffers, no need to call the Delet...
Brian Paul [Tue, 9 Aug 2005 15:07:55 +0000 (15:07 +0000)]
_mesa_free_framebuffer_data() call frees the renderbuffers, no need to call the Delete methods after

19 years agofree context structure (bug 1252316) and s/free/_mesa_free/
Brian Paul [Tue, 9 Aug 2005 14:23:28 +0000 (14:23 +0000)]
free context structure (bug 1252316) and s/free/_mesa_free/

19 years agoMake the linux-dri-x86 builds work on x86-64 again. mklib now
Ian Romanick [Mon, 8 Aug 2005 23:22:46 +0000 (23:22 +0000)]
Make the linux-dri-x86 builds work on x86-64 again.  mklib now
determines the bits (either 32 or 64) for libraries without the lib
prefix.  progs/egl/Makefile passes CFLAGS on the link commands so that
things like '-m32' get propagated.

19 years agos/Disaptch/Dispatch/ (bug 3918)
Brian Paul [Mon, 8 Aug 2005 21:42:51 +0000 (21:42 +0000)]
s/Disaptch/Dispatch/ (bug 3918)

19 years agoadded directfbgl.h to tarball
Brian Paul [Mon, 8 Aug 2005 21:30:12 +0000 (21:30 +0000)]
added directfbgl.h to tarball

19 years agoSince glcontextmodes.[ch] are no longer used in the DRI drivers, removed the
Ian Romanick [Mon, 8 Aug 2005 17:22:44 +0000 (17:22 +0000)]
Since glcontextmodes.[ch] are no longer used in the DRI drivers, removed the
IN_DRI_DRIVER cruft.  This was suggested by George Fufutos.

19 years agofix up color tiling in miniglx radeon server code
Dave Airlie [Mon, 8 Aug 2005 04:34:35 +0000 (04:34 +0000)]
fix up color tiling in miniglx radeon server code

19 years agofix miniglx setting virtual size of 832 for 800x600
Dave Airlie [Mon, 8 Aug 2005 04:17:52 +0000 (04:17 +0000)]
fix miniglx setting virtual size of 832 for 800x600

19 years agoRemove platform specific bits from radeon_egl.c
Jon Smirl [Mon, 8 Aug 2005 03:58:26 +0000 (03:58 +0000)]
Remove platform specific bits from radeon_egl.c

19 years agoDike out the linux-specific EGL bits unless it's a linux build.
Eric Anholt [Mon, 8 Aug 2005 03:27:28 +0000 (03:27 +0000)]
Dike out the linux-specific EGL bits unless it's a linux build.

19 years agoSince this isn't a bash script, don't use function and instead inline the usage
Eric Anholt [Mon, 8 Aug 2005 03:26:18 +0000 (03:26 +0000)]
Since this isn't a bash script, don't use function and instead inline the usage
into the one place that it's used.

19 years agoAllow R300 driver to build on x86-64 and PowerPC.
Vladimir Dergachev [Sun, 7 Aug 2005 21:50:33 +0000 (21:50 +0000)]
Allow R300 driver to build on x86-64 and PowerPC.

19 years agoAdd missing egldri.h header file
Jon Smirl [Sun, 7 Aug 2005 02:30:32 +0000 (02:30 +0000)]
Add missing egldri.h header file

19 years agoFix up some of the sample to work with the r200 EGL driver
Jon Smirl [Sun, 7 Aug 2005 02:15:27 +0000 (02:15 +0000)]
Fix up some of the sample to work with the r200 EGL driver

19 years agoEnable EGL support in 'linux-dri' config
Jon Smirl [Sun, 7 Aug 2005 02:13:14 +0000 (02:13 +0000)]
Enable EGL support in 'linux-dri' config

19 years agoFollow suggestion by Aapo Tahkola to fix giant memory leak from forgetting to free...
Vladimir Dergachev [Sat, 6 Aug 2005 05:19:42 +0000 (05:19 +0000)]
Follow suggestion by Aapo Tahkola to fix giant memory leak from forgetting to free the key when entry was already found (presumably a common case).

19 years agoFix card_extensions by following corresponding r200 code.
Vladimir Dergachev [Sat, 6 Aug 2005 04:39:27 +0000 (04:39 +0000)]
Fix card_extensions by following corresponding r200 code.
Fix suggested by Ian Romanick.
R300 driver now works without segfault.

19 years agoFixes bugzilla #1730.
Ian Romanick [Fri, 5 Aug 2005 23:13:13 +0000 (23:13 +0000)]
Fixes bugzilla #1730.

Make sure that all the values used in the clean-up code are initialized at
some point.  It is still unclear to me as to why GCC does not complain.  I
suspect the problem may be due to the depth of if-statement nesting.

19 years agoFixes bugzillla #812.
Ian Romanick [Fri, 5 Aug 2005 22:12:49 +0000 (22:12 +0000)]
Fixes bugzillla #812.

The weak version of _glapi_DispatchTSD was removed from dri_util.c.  As
stated in the bug report, this was only needed to support versions of libGL
that did not have this symbol.  Versions of libGL without this symbol are no
longer supported at all, so it is totally irrelevant.

19 years agoremove the drmAddress
Alan Hourihane [Fri, 5 Aug 2005 20:47:59 +0000 (20:47 +0000)]
remove the drmAddress

19 years agoIn order to create the set of available extensions, we have to know if
Ian Romanick [Fri, 5 Aug 2005 19:13:51 +0000 (19:13 +0000)]
In order to create the set of available extensions, we have to know if
direct-rendering is possible on a given screen.  It is not possible to
determine this by just looking at driDisplay.private in the display
structure.  However, it is possible to determine this by looking at
driScreen.private in the screen structure.  This field is only non-NULL if a
DRI driver has been successfully loaded and bootstrapped.  Once we get to
that point, we know that direct-rendering is at least theoretically
possible.

This fixes bugzilla #2875.

19 years agoFix recent problems with display lists and other parts of the code.
Ian Romanick [Fri, 5 Aug 2005 18:13:37 +0000 (18:13 +0000)]
Fix recent problems with display lists and other parts of the code.
CALL_by_offset, SET_by_offset, and GET_by_offset all had various problems.

The core issue is that parts of the device-independent code in Mesa assumes
that all functions have slots in the dispatch table.  This is especially
true in the display list code.  It will merrilly try to set dispatch
pointers for glVertexAttrib1fARB even if GL_ARB_vertex_program is not
supported.  When the GET/SET/CALL macros are invoked, they would read a 0
from the remap table.  The problem is that 0 is the dispatch offset for
glNewList!

One change is that the remap table is now initialized to be full of -1
values.  In addtion, all of the *_by_offset marcos misbehave in an obvious
way if the specified offset is -1.  SET_by_offset will do nothing,
GET_by_offset will return NULL, and CALL_by_offset, since it uses
GET_by_offset, will segfault.

I also had to add GL_EXT_blend_func_separate to the list of default
extensions in all_mesa_extensions (src/mesa/drivers/dri/common/utils.c).
Even though many drivers do not export this extension, glBlendFunc is
internally implemented by calling glBlendFuncSeparate.  Without this
addition, glBlendFunc stopped working on drivers (such as mga) that do not
export GL_EXT_blend_func_separate.

There are still a few assertions / crashes in GL_ARB_vertex_program tests,
but I don't think that these are related to any of my changes.

19 years agoRemove EGL from linux-solo makefile
Jon Smirl [Fri, 5 Aug 2005 03:48:15 +0000 (03:48 +0000)]
Remove EGL from linux-solo makefile