mesa.git
18 years agoEnsure all GART allocations are freed on context destruction, rather than
Adam Jackson [Fri, 21 Apr 2006 19:53:52 +0000 (19:53 +0000)]
Ensure all GART allocations are freed on context destruction, rather than
waiting for the DRM to reap them at process exit.  Fixes (fatal) allocation
failures in AIGLX configurations.

Reviewed by: Aapo Tahkola

18 years agoFix format strings for LP64
Adam Jackson [Fri, 21 Apr 2006 19:51:29 +0000 (19:51 +0000)]
Fix format strings for LP64

18 years agopass color index as float, not int
Brian Paul [Fri, 21 Apr 2006 02:44:35 +0000 (02:44 +0000)]
pass color index as float, not int

18 years agodepend is not a .PHONY target
Brian Paul [Fri, 21 Apr 2006 01:13:16 +0000 (01:13 +0000)]
depend is not a .PHONY target

18 years agofix indentation
Brian Paul [Fri, 21 Apr 2006 01:02:49 +0000 (01:02 +0000)]
fix indentation

18 years agouse vertex.attrib[3] instead of vertex.color
Brian Paul [Fri, 21 Apr 2006 01:02:27 +0000 (01:02 +0000)]
use vertex.attrib[3] instead of vertex.color

18 years agos/NV/ARB/
Brian Paul [Fri, 21 Apr 2006 01:01:58 +0000 (01:01 +0000)]
s/NV/ARB/

18 years agolimit max program/param length to 255 (spotted by sroland)
Aapo Tahkola [Thu, 20 Apr 2006 19:43:21 +0000 (19:43 +0000)]
limit max program/param length to 255 (spotted by sroland)

18 years agocheck glLoadProgramNV len < 0 (bug 6679)
Brian Paul [Thu, 20 Apr 2006 15:06:40 +0000 (15:06 +0000)]
check glLoadProgramNV len < 0 (bug 6679)

18 years agoerror_attrib() should generate GL_INVALID_VALUE, not GL_INVALID_ENUM.
Brian Paul [Thu, 20 Apr 2006 02:29:26 +0000 (02:29 +0000)]
error_attrib() should generate GL_INVALID_VALUE, not GL_INVALID_ENUM.
New doxygen comments, misc clean-ups.

18 years agoMake most of the _mesa_noop_*() functions static.
Brian Paul [Thu, 20 Apr 2006 02:16:55 +0000 (02:16 +0000)]
Make most of the _mesa_noop_*() functions static.
Generate GL_INVALID_VALUE, not GL_INVALID_ENUM when glVertexAttrib is called
with a bad index.
Use _mesa_noop_vtxfmt_init() in DRI drivers to initialize vertex format
struct.

18 years agosome tentative code for _mesa_update_framebuffer_visual()
Brian Paul [Thu, 20 Apr 2006 00:45:08 +0000 (00:45 +0000)]
some tentative code for _mesa_update_framebuffer_visual()

18 years agoSrcReg->Swizzle is always initialized to SWIZZLE_NOOP, and if the program
Dave Airlie [Wed, 19 Apr 2006 23:15:51 +0000 (23:15 +0000)]
SrcReg->Swizzle is always initialized to SWIZZLE_NOOP, and if the program
specifies a 2/3/4-compontent swizzle suffix, SrcReg->Swizzles is just ORed
against the new component values, without resetting it first.

Attached patch makes tests/vptest2 pass.

From Tilam Sauerbeck bug 6673

18 years agominor updates
Brian Paul [Wed, 19 Apr 2006 16:55:27 +0000 (16:55 +0000)]
minor updates

18 years agofix invalid free() problem (bug 6658)
Brian Paul [Wed, 19 Apr 2006 14:42:01 +0000 (14:42 +0000)]
fix invalid free() problem (bug 6658)

18 years agoupdates for GNU/Hurd (bug 6657)
Brian Paul [Wed, 19 Apr 2006 14:03:04 +0000 (14:03 +0000)]
updates for GNU/Hurd (bug 6657)

18 years agoReplace old README.X11 with updated xlibdriver.html
Brian Paul [Wed, 19 Apr 2006 03:25:06 +0000 (03:25 +0000)]
Replace old README.X11 with updated xlibdriver.html

18 years agoassorted AIX, IRIX fixes from Dan Schikore
Brian Paul [Tue, 18 Apr 2006 12:56:11 +0000 (12:56 +0000)]
assorted AIX, IRIX fixes from Dan Schikore

18 years ago-arch AIX64 no longer needed
Brian Paul [Tue, 18 Apr 2006 12:55:48 +0000 (12:55 +0000)]
-arch AIX64 no longer needed

18 years agoRemove carriage-return chars *ONLY*.
Michal Krol [Tue, 18 Apr 2006 10:47:19 +0000 (10:47 +0000)]
Remove carriage-return chars *ONLY*.

18 years agoAdd support for ARB_vertex_shader attrib binding and query.
Michal Krol [Tue, 18 Apr 2006 10:30:29 +0000 (10:30 +0000)]
Add support for ARB_vertex_shader attrib binding and query.
Clean-up ARB_shaderobjects code a bit.

18 years agoAdd .note.GNU-stack section to assembler files to avoid the default behavior
Kristian Høgsberg [Mon, 17 Apr 2006 18:58:24 +0000 (18:58 +0000)]
Add .note.GNU-stack section to assembler files to avoid the default behavior
of requesting executable stacks.

18 years agoanother simple FBO test
Brian Paul [Fri, 14 Apr 2006 16:25:27 +0000 (16:25 +0000)]
another simple FBO test

18 years agotest glReadPixels speed w/ various formats/types, PBOs
Brian Paul [Fri, 14 Apr 2006 16:20:55 +0000 (16:20 +0000)]
test glReadPixels speed w/ various formats/types, PBOs

18 years agoUse 'file' command in more places to determine the library ABI (IRIX, SunOS,
Brian Paul [Fri, 14 Apr 2006 14:14:51 +0000 (14:14 +0000)]
Use 'file' command in more places to determine the library ABI (IRIX, SunOS,
Darwin), removes need to pass in special -archopt flags.
Restore the -dlopen flag afterall.

18 years agoDon't have to pass ABI-related flags to mklib anymore.
Brian Paul [Fri, 14 Apr 2006 14:13:00 +0000 (14:13 +0000)]
Don't have to pass ABI-related flags to mklib anymore.

18 years agoSilence a few -pedantic warnings.
Brian Paul [Fri, 14 Apr 2006 03:43:39 +0000 (03:43 +0000)]
Silence a few -pedantic warnings.
Remove ^M chars.
Replace _mesa_get_string() with simpler copy_string().

18 years agos/MaxTextureUnits/MaxTextureCoordUnits/
Brian Paul [Fri, 14 Apr 2006 02:28:26 +0000 (02:28 +0000)]
s/MaxTextureUnits/MaxTextureCoordUnits/

18 years ago6.5.1 fixes
Brian Paul [Fri, 14 Apr 2006 02:26:40 +0000 (02:26 +0000)]
6.5.1 fixes

18 years agoWhen popping GL_DRAW_BUFFER state, need to re-do error checking since
Brian Paul [Fri, 14 Apr 2006 02:25:35 +0000 (02:25 +0000)]
When popping GL_DRAW_BUFFER state, need to re-do error checking since
validity depends on whether a window-system FBO or user-created FBO is
currently bound.  glPopAttrib() may generate GL_INVALID_OPERATION because
of this.

18 years agosilence -pedantic warning
Brian Paul [Fri, 14 Apr 2006 02:21:04 +0000 (02:21 +0000)]
silence -pedantic warning

18 years agodon't need s_depth.h
Brian Paul [Fri, 14 Apr 2006 02:20:47 +0000 (02:20 +0000)]
don't need s_depth.h

18 years agoReplace ctx->Const.MaxTextureUnits w/ ctx->Const.MaxTexture[Coord/Image]Units
Brian Paul [Fri, 14 Apr 2006 02:20:18 +0000 (02:20 +0000)]
Replace ctx->Const.MaxTextureUnits w/ ctx->Const.MaxTexture[Coord/Image]Units
in various places.
Note that ctx->Texture.CurrentUnit needs to be tested against Coord/Image
limits when referenced, not just in glActiveTexture().

18 years agoIf the image file is RGB, convert to RGBA (fixes segfault).
Brian Paul [Thu, 13 Apr 2006 19:45:42 +0000 (19:45 +0000)]
If the image file is RGB, convert to RGBA (fixes segfault).
Added CheckError() calls.
Remove -ci option.

18 years agoFix comment about MaxTextureUnits, needs to be min of coord and image units.
Brian Paul [Thu, 13 Apr 2006 19:21:58 +0000 (19:21 +0000)]
Fix comment about MaxTextureUnits, needs to be min of coord and image units.
See bug 5994.
Also add a few assertions.
Use MaxTextureUnits in get.c code.
There's probably other places where we need to clean-up the usage of the
MaxTexture[Coord/Image]Units constants.

18 years agosilence minor warnings
Brian Paul [Thu, 13 Apr 2006 19:18:40 +0000 (19:18 +0000)]
silence minor warnings

18 years agocasts to fix some -pedantic warnings
Brian Paul [Thu, 13 Apr 2006 19:17:13 +0000 (19:17 +0000)]
casts to fix some -pedantic warnings

18 years agoSet array normalization flag for normals, colors (Keith)
Brian Paul [Thu, 13 Apr 2006 15:57:29 +0000 (15:57 +0000)]
Set array normalization flag for normals, colors (Keith)

18 years agoremove the -dlopen option. Always make both kinds of libs for AIX, Darwin.
Brian Paul [Thu, 13 Apr 2006 15:17:50 +0000 (15:17 +0000)]
remove the -dlopen option.  Always make both kinds of libs for AIX, Darwin.

18 years agomore updates (Dan Schikore)
Brian Paul [Thu, 13 Apr 2006 03:10:16 +0000 (03:10 +0000)]
more updates (Dan Schikore)

18 years agoadd new configs (Dan Schikore)
Brian Paul [Thu, 13 Apr 2006 03:00:14 +0000 (03:00 +0000)]
add new configs (Dan Schikore)

18 years agonew configs, misc updates (Dan Schikore)
Brian Paul [Thu, 13 Apr 2006 02:59:29 +0000 (02:59 +0000)]
new configs, misc updates (Dan Schikore)

18 years agoFixes for AIX, SunOS, Darwin. -dlopen flag to build dlopen()'able modules
Brian Paul [Thu, 13 Apr 2006 02:23:25 +0000 (02:23 +0000)]
Fixes for AIX, SunOS, Darwin.  -dlopen flag to build dlopen()'able modules
for AIX, Darwin.  (Dan Schikore)

18 years agoUse -I$(INCDIR) to get Mesa, not system headers (Dan Schikore)
Brian Paul [Thu, 13 Apr 2006 01:54:04 +0000 (01:54 +0000)]
Use -I$(INCDIR) to get Mesa, not system headers (Dan Schikore)

18 years agoupdated tests for defining __FUNCTION__ (Dan Schikore)
Brian Paul [Thu, 13 Apr 2006 01:52:32 +0000 (01:52 +0000)]
updated tests for defining __FUNCTION__ (Dan Schikore)

18 years agoadded 'const' (Dan Schikore)
Brian Paul [Thu, 13 Apr 2006 01:51:25 +0000 (01:51 +0000)]
added 'const' (Dan Schikore)

18 years agocompile fix from Dan Schikore
Brian Paul [Thu, 13 Apr 2006 01:49:45 +0000 (01:49 +0000)]
compile fix from Dan Schikore

18 years agoGLboolean cannot hold GLuint! usage of tmus >= 4 no longer lock r300.
Aapo Tahkola [Wed, 12 Apr 2006 13:51:18 +0000 (13:51 +0000)]
GLboolean cannot hold GLuint! usage of tmus >= 4 no longer lock r300.

18 years agoallow rotation w/ mouse
Brian Paul [Tue, 11 Apr 2006 23:41:40 +0000 (23:41 +0000)]
allow rotation w/ mouse

18 years agoadd missing 'union' keyword
Brian Paul [Tue, 11 Apr 2006 23:23:36 +0000 (23:23 +0000)]
add missing 'union' keyword

18 years agoFBConfig support for EXT_tfp
David Reveman [Tue, 11 Apr 2006 12:21:48 +0000 (12:21 +0000)]
FBConfig support for EXT_tfp

18 years agoAdd attrib_list to glXBindTexImageEXT
David Reveman [Tue, 11 Apr 2006 12:19:06 +0000 (12:19 +0000)]
Add attrib_list to glXBindTexImageEXT

18 years agoAdd attrib_list to glXBindTexImageEXT
David Reveman [Tue, 11 Apr 2006 12:12:13 +0000 (12:12 +0000)]
Add attrib_list to glXBindTexImageEXT

18 years agoFix CreateDrawable
David Reveman [Tue, 11 Apr 2006 12:07:41 +0000 (12:07 +0000)]
Fix CreateDrawable

18 years agoMore GLSL code:
Michal Krol [Tue, 11 Apr 2006 11:41:11 +0000 (11:41 +0000)]
More GLSL code:
- use macros to access and modify render inputs bit-field;
- un-alias generic vertex attributes for ARB vertex calls;
- use MAX_VERTEX_PROGRAM_ATTRIBS (NV code) or MAX_VERTEX_ATTRIBS
  (ARB code) in place of VERT_ATTRIB_MAX;
- define VERT_ATTRIB_GENERIC0..15 for un-aliased vertex
  attributes for ARB_vertex_shader;
- fix generic attribute index range check in arbprogparse.c;
- interface GLSL varyings between vertex and fragment shader;
- use 64-bit optimised bitset (bitset.h) for render inputs;

18 years agoget fog going(for real)
Aapo Tahkola [Tue, 11 Apr 2006 11:20:43 +0000 (11:20 +0000)]
get fog going(for real)

18 years agorectangular fp16 fixes (Ewald Snel)
Aapo Tahkola [Tue, 11 Apr 2006 04:20:25 +0000 (04:20 +0000)]
rectangular fp16 fixes (Ewald Snel)

18 years agoFog support (Ewald Snel)
Aapo Tahkola [Tue, 11 Apr 2006 04:17:50 +0000 (04:17 +0000)]
Fog support (Ewald Snel)

18 years agouse _mesa_debug() instead of message() - fixes poor formatting of output
Brian Paul [Mon, 10 Apr 2006 23:36:18 +0000 (23:36 +0000)]
use _mesa_debug() instead of message() - fixes poor formatting of output

18 years agoDestroy the GL context after driDestroyTextureHeap, because the driver's
Eric Anholt [Sun, 9 Apr 2006 17:48:28 +0000 (17:48 +0000)]
Destroy the GL context after driDestroyTextureHeap, because the driver's
DestroyTexObj has a dependence on the glCtx and may segfault otherwise.

18 years agofix some conflict happenings at context destroy by freeing buffers immediately. array...
Aapo Tahkola [Sat, 8 Apr 2006 20:05:50 +0000 (20:05 +0000)]
fix some conflict happenings at context destroy by freeing buffers immediately. array locking can be done with vbos for vtxfmt_a so we dont really need to try to reuse them.

18 years agoregenerate SPARC assembly dispatch (bug 6484)
Brian Paul [Fri, 7 Apr 2006 15:20:33 +0000 (15:20 +0000)]
regenerate SPARC assembly dispatch (bug 6484)

18 years agoadded sunos5-64-gcc (bug 6484)
Brian Paul [Fri, 7 Apr 2006 15:16:46 +0000 (15:16 +0000)]
added sunos5-64-gcc (bug 6484)

18 years agoreplace >&/dev/null with >/dev/null so it works with all shells
Brian Paul [Fri, 7 Apr 2006 15:11:51 +0000 (15:11 +0000)]
replace >&/dev/null with >/dev/null so it works with all shells

18 years agobump version to 6.5.1
Brian Paul [Fri, 7 Apr 2006 14:29:52 +0000 (14:29 +0000)]
bump version to 6.5.1

18 years agoFix some warnings on x86_64
Alan Hourihane [Fri, 7 Apr 2006 08:50:39 +0000 (08:50 +0000)]
Fix some warnings on x86_64

18 years agomake miniglx use libdrm properly
Dave Airlie [Fri, 7 Apr 2006 03:20:56 +0000 (03:20 +0000)]
make miniglx use libdrm properly

18 years agoCoverity #943: Avoid a NULL chase.
Adam Jackson [Fri, 7 Apr 2006 00:05:50 +0000 (00:05 +0000)]
Coverity #943: Avoid a NULL chase.

18 years agoCoverity #1083: Fix a use after free case.
Adam Jackson [Thu, 6 Apr 2006 23:50:44 +0000 (23:50 +0000)]
Coverity #1083: Fix a use after free case.

18 years agofixed line clipping bug 6512
Brian Paul [Thu, 6 Apr 2006 22:15:27 +0000 (22:15 +0000)]
fixed line clipping bug 6512

18 years agoRename CLIP_ALL_BITS to CLIP_FRUSTUM_BITS to reflect the fact that the value
Brian Paul [Thu, 6 Apr 2006 22:11:57 +0000 (22:11 +0000)]
Rename CLIP_ALL_BITS to CLIP_FRUSTUM_BITS to reflect the fact that the value
only includes the 6 frustum bits, not the user-clip plane bit, nor the vertex
cull bit.

18 years agoFix line clipping bug 6512.
Brian Paul [Thu, 6 Apr 2006 22:07:01 +0000 (22:07 +0000)]
Fix line clipping bug 6512.
This fix is to discard the line if both dot products are negative.

18 years agominor CFLAGS clean-up
Brian Paul [Thu, 6 Apr 2006 16:50:38 +0000 (16:50 +0000)]
minor CFLAGS clean-up

18 years agoSet DRIVER_DEFINES instead of DEFINES to fix duplicate flags problem
Brian Paul [Thu, 6 Apr 2006 16:48:36 +0000 (16:48 +0000)]
Set DRIVER_DEFINES instead of DEFINES to fix duplicate flags problem

18 years agoReplace DEFINES with DRIVER_DEFINES. If a driver needs to set extra flags,
Brian Paul [Thu, 6 Apr 2006 16:47:51 +0000 (16:47 +0000)]
Replace DEFINES with DRIVER_DEFINES.  If a driver needs to set extra flags,
do so with DRIVER_DEFINES.
This eliminates the duplicated flags we were passing to each cc command.

18 years agominor CFLAGS reordering
Brian Paul [Thu, 6 Apr 2006 16:46:34 +0000 (16:46 +0000)]
minor CFLAGS reordering

18 years agoremove unused var
Brian Paul [Thu, 6 Apr 2006 16:24:01 +0000 (16:24 +0000)]
remove unused var

18 years agoupdate a couple MESA_FORMAT_Zxxx occurances
Brian Paul [Thu, 6 Apr 2006 16:23:40 +0000 (16:23 +0000)]
update a couple MESA_FORMAT_Zxxx occurances

18 years agore-enable animation
Brian Paul [Thu, 6 Apr 2006 04:34:09 +0000 (04:34 +0000)]
re-enable animation

18 years agofix render to depth texture bugs
Brian Paul [Thu, 6 Apr 2006 04:25:48 +0000 (04:25 +0000)]
fix render to depth texture bugs

18 years agoReplace MESA_FORMAT_DEPTH_COMPONENT_FLOAT32 with 32-bit integer format.
Brian Paul [Thu, 6 Apr 2006 04:23:58 +0000 (04:23 +0000)]
Replace MESA_FORMAT_DEPTH_COMPONENT_FLOAT32 with 32-bit integer format.
This allows render to depth texture (we don't support floating pt. Z buffers).
Rename MESA_FORMAT_DEPTH_COMPONENT16/32 as MESA_FORMAT_Z16/32.
Software fallback for glCopyTexImage now uses integer temporary image instead
of float, eliminates a lot of float/int conversions.

18 years agoAdded render to depth texture support with GL_EXT_framebuffer_object.
Brian Paul [Thu, 6 Apr 2006 04:11:28 +0000 (04:11 +0000)]
Added render to depth texture support with GL_EXT_framebuffer_object.
Only render the shadow/depth texture when really needed, not every frame.
Remove support for old SGIX shadow extensions.

18 years agodo additional checking for setting up depth/stencil wrappers
Brian Paul [Thu, 6 Apr 2006 04:09:03 +0000 (04:09 +0000)]
do additional checking for setting up depth/stencil wrappers

18 years agoremove duplicated framebuffer attachment test
Brian Paul [Wed, 5 Apr 2006 19:58:37 +0000 (19:58 +0000)]
remove duplicated framebuffer attachment test

18 years agoRemove the code that checks for duplicated framebuffer attachments (which
Brian Paul [Wed, 5 Apr 2006 19:58:10 +0000 (19:58 +0000)]
Remove the code that checks for duplicated framebuffer attachments (which
generated the error GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT).
This was removed in version 117 of the GL_EXT_framebuffer_object spec.

18 years agopass -m32 or -m64 to linker for SunOS as needed (bug 6484)
Brian Paul [Wed, 5 Apr 2006 13:43:02 +0000 (13:43 +0000)]
pass -m32 or -m64 to linker for SunOS as needed (bug 6484)

18 years agoadd tiling/fence support for the miniglx driver
Dave Airlie [Wed, 5 Apr 2006 07:13:17 +0000 (07:13 +0000)]
add tiling/fence support for the miniglx driver

18 years agodon't waste the reserved memory, take an approximation of the pool
Dave Airlie [Wed, 5 Apr 2006 06:20:58 +0000 (06:20 +0000)]
don't waste the reserved memory, take an approximation of the pool
allocator from the X.org driver - not as complicated

18 years agojust some comments/docs
Brian Paul [Wed, 5 Apr 2006 03:29:46 +0000 (03:29 +0000)]
just some comments/docs

18 years agoset the texture border color for the depth texture
Brian Paul [Wed, 5 Apr 2006 03:26:12 +0000 (03:26 +0000)]
set the texture border color for the depth texture

18 years agofirst 6.5.1 bug fix - bug 6498
Brian Paul [Wed, 5 Apr 2006 03:25:05 +0000 (03:25 +0000)]
first 6.5.1 bug fix - bug 6498

18 years agoCheck/use texture border color when sampling depth textures. (bug 6498)
Brian Paul [Wed, 5 Apr 2006 03:23:44 +0000 (03:23 +0000)]
Check/use texture border color when sampling depth textures. (bug 6498)
Silence some warnings.

18 years agoSilence minor compiler warnings (-Wextra).
Brian Paul [Wed, 5 Apr 2006 03:05:17 +0000 (03:05 +0000)]
Silence minor compiler warnings (-Wextra).

18 years agoWe always have a back buffer. Fixes visual problems.
Alan Hourihane [Tue, 4 Apr 2006 13:03:20 +0000 (13:03 +0000)]
We always have a back buffer. Fixes visual problems.

18 years agouse gart base from drm not try to work it out ourselves.. bump radeon client
Dave Airlie [Tue, 4 Apr 2006 11:17:46 +0000 (11:17 +0000)]
use gart base from drm not try to work it out ourselves.. bump radeon client
to need 1.6 drm where this first appeared.. this fixes r300 on PCIE

18 years agoswitch to card_type rather than IsPCI, doesn't change any functionality yet
Dave Airlie [Tue, 4 Apr 2006 11:04:30 +0000 (11:04 +0000)]
switch to card_type rather than IsPCI, doesn't change any functionality yet

18 years agoAdd bitset.h.
Michal Krol [Tue, 4 Apr 2006 10:25:23 +0000 (10:25 +0000)]
Add bitset.h.

18 years agoFix texcoord interpolation for fragment shaders.
Michal Krol [Tue, 4 Apr 2006 10:22:05 +0000 (10:22 +0000)]
Fix texcoord interpolation for fragment shaders.

18 years agoMore GLSL code:
Michal Krol [Tue, 4 Apr 2006 10:18:07 +0000 (10:18 +0000)]
More GLSL code:
- add support for varyings;

GLSL fixes:
- pow was wrongly computed in x86 back-end;

18 years agoBit set.
Michal Krol [Tue, 4 Apr 2006 10:11:12 +0000 (10:11 +0000)]
Bit set.