mesa.git
18 years agotwo more texture compression fixes
Brian Paul [Mon, 8 May 2006 23:59:38 +0000 (23:59 +0000)]
two more texture compression fixes

18 years agoMore updates for texture compression.
Brian Paul [Mon, 8 May 2006 23:52:32 +0000 (23:52 +0000)]
More updates for texture compression.
Added _mesa_compressed_texture_size_glenum() for validating the imageSize
parameter to glCompressedTex[Sub]Image1/2/3() which does _not_ call
ctx->Driver.CompressedTextureSize() - since that could return a padded size.

18 years agoFix a number of texture compression issues.
Brian Paul [Mon, 8 May 2006 19:14:38 +0000 (19:14 +0000)]
Fix a number of texture compression issues.
Pass the MESA_FORMAT_* token to the _mesa_compressed_row_stride(),
_mesa_compressed_texture_size() and _mesa_compressed_image_address()
functions since we want to use the driver-chosen format, not the user's
internalFormat hint.
Consolidate code related to choosing the texture format in texstoree.c

18 years agofix warning
Brian Paul [Mon, 8 May 2006 19:11:21 +0000 (19:11 +0000)]
fix warning

18 years agoupdates to dri drivers for recent stencil changes
Keith Whitwell [Mon, 8 May 2006 09:03:35 +0000 (09:03 +0000)]
updates to dri drivers for recent stencil changes

18 years agoadded CHAN_BITS != 8 test
Brian Paul [Sun, 7 May 2006 16:16:23 +0000 (16:16 +0000)]
added CHAN_BITS != 8 test

18 years agomisc clean-ups
Brian Paul [Sun, 7 May 2006 16:14:58 +0000 (16:14 +0000)]
misc clean-ups

18 years agominor clean-ups around DepthScale/Bias
Brian Paul [Sun, 7 May 2006 16:14:13 +0000 (16:14 +0000)]
minor clean-ups around DepthScale/Bias

18 years agorestore -O flag (bug 6814)
Brian Paul [Sat, 6 May 2006 22:39:33 +0000 (22:39 +0000)]
restore -O flag (bug 6814)

18 years agoCheck for overflow when converting floating pt Z values to 32-bit GLuint.
Brian Paul [Sat, 6 May 2006 22:30:33 +0000 (22:30 +0000)]
Check for overflow when converting floating pt Z values to 32-bit GLuint.

18 years agoupdated GLX_EXT_texture_from_pixmap tokens (Dave Reveman)
Brian Paul [Fri, 5 May 2006 18:19:54 +0000 (18:19 +0000)]
updated GLX_EXT_texture_from_pixmap tokens (Dave Reveman)

18 years agocheck for float->uint overflow in _mesa_unpack_depth_span()
Brian Paul [Fri, 5 May 2006 14:49:38 +0000 (14:49 +0000)]
check for float->uint overflow in _mesa_unpack_depth_span()

18 years agoDefine VERT_RESULT_EDGE
Keith Whitwell [Fri, 5 May 2006 09:26:40 +0000 (09:26 +0000)]
Define VERT_RESULT_EDGE

18 years agoremove temporary code from keithw, this in theory isn't used at the moment
Dave Airlie [Fri, 5 May 2006 06:53:11 +0000 (06:53 +0000)]
remove temporary code from keithw, this in theory isn't used at the moment
anyways unless INTEL_BATCH is turned on

18 years agoFix i915 driver after stencil changes in Mesa 6.5
Dave Airlie [Fri, 5 May 2006 06:52:32 +0000 (06:52 +0000)]
Fix i915 driver after stencil changes in Mesa 6.5

18 years agoRelease temporary
Keith Whitwell [Fri, 5 May 2006 00:00:46 +0000 (00:00 +0000)]
Release temporary

18 years agoFix some silly spelling errors.
Ian Romanick [Wed, 3 May 2006 17:12:12 +0000 (17:12 +0000)]
Fix some silly spelling errors.

18 years agoremove some unneeded includes
Dave Airlie [Tue, 2 May 2006 08:58:42 +0000 (08:58 +0000)]
remove some unneeded includes

18 years agoUpdate to final EXT_tfp tokens
David Reveman [Tue, 2 May 2006 08:54:39 +0000 (08:54 +0000)]
Update to final EXT_tfp tokens

18 years agomove the pkg config flags for libdrm to the bottom
Dave Airlie [Tue, 2 May 2006 08:32:46 +0000 (08:32 +0000)]
move the pkg config flags for libdrm to the bottom

18 years agoUpdate function signatures for EXT_tfp entrypoints.
Adam Jackson [Mon, 1 May 2006 22:25:18 +0000 (22:25 +0000)]
Update function signatures for EXT_tfp entrypoints.

18 years agonew, faster version of __gluInvertMatrixd(), bug 6748
Brian Paul [Mon, 1 May 2006 16:01:17 +0000 (16:01 +0000)]
new, faster version of __gluInvertMatrixd(), bug 6748

18 years agoBumped support for xcb 0.9
Jeremy Kolb [Sat, 29 Apr 2006 16:13:02 +0000 (16:13 +0000)]
Bumped support for xcb 0.9

18 years agoadded a trailing newline to pacify gcc
Tilman Sauerbeck [Fri, 28 Apr 2006 21:57:32 +0000 (21:57 +0000)]
added a trailing newline to pacify gcc

18 years agofptest1 requires GL_NV_fragment_program
Tilman Sauerbeck [Fri, 28 Apr 2006 21:50:41 +0000 (21:50 +0000)]
fptest1 requires GL_NV_fragment_program

18 years agofix second memory leak (bug 5557)
Brian Paul [Fri, 28 Apr 2006 15:42:15 +0000 (15:42 +0000)]
fix second memory leak (bug 5557)

18 years agofix first memory leak (bug 5557)
Brian Paul [Fri, 28 Apr 2006 15:40:11 +0000 (15:40 +0000)]
fix first memory leak (bug 5557)

18 years agofixes for CHAN_BITS!=8
Brian Paul [Thu, 27 Apr 2006 02:50:31 +0000 (02:50 +0000)]
fixes for CHAN_BITS!=8

18 years agoassorted clean-ups, fixes
Brian Paul [Thu, 27 Apr 2006 02:47:50 +0000 (02:47 +0000)]
assorted clean-ups, fixes

18 years agoreplace a bunch of casts with GET_XRB macro
Brian Paul [Thu, 27 Apr 2006 02:46:20 +0000 (02:46 +0000)]
replace a bunch of casts with GET_XRB macro

18 years agofix a few stride computations in _mesa_texstore_rgba()
Brian Paul [Wed, 26 Apr 2006 18:43:22 +0000 (18:43 +0000)]
fix a few stride computations in _mesa_texstore_rgba()

18 years agofix warnings.
Aapo Tahkola [Wed, 26 Apr 2006 12:00:53 +0000 (12:00 +0000)]
fix warnings.

18 years agoR300_SPAN_DISABLE_LOCKING env var
Aapo Tahkola [Wed, 26 Apr 2006 11:36:27 +0000 (11:36 +0000)]
R300_SPAN_DISABLE_LOCKING env var

18 years agoremove _glthread_INIT_MUTEX() call
Brian Paul [Wed, 26 Apr 2006 03:31:59 +0000 (03:31 +0000)]
remove _glthread_INIT_MUTEX() call

18 years agofix an assertion
Brian Paul [Wed, 26 Apr 2006 03:29:30 +0000 (03:29 +0000)]
fix an assertion

18 years agominor clean-up
Brian Paul [Wed, 26 Apr 2006 03:19:54 +0000 (03:19 +0000)]
minor clean-up

18 years agoremove old XFree86 tag
Brian Paul [Wed, 26 Apr 2006 03:19:37 +0000 (03:19 +0000)]
remove old XFree86 tag

18 years agoupdate some tests for visual bit depths to use renderbuffers
Brian Paul [Tue, 25 Apr 2006 22:55:19 +0000 (22:55 +0000)]
update some tests for visual bit depths to use renderbuffers

18 years agouse _TNL_FIRST/LAST_MAT indexes
Brian Paul [Tue, 25 Apr 2006 22:26:21 +0000 (22:26 +0000)]
use _TNL_FIRST/LAST_MAT indexes

18 years agoRemove carriage returns.
Michal Krol [Tue, 25 Apr 2006 10:11:59 +0000 (10:11 +0000)]
Remove carriage returns.

18 years agovertex attrib alias change, glPopAttrib/GL_DRAW_BUFFER bug fix
Brian Paul [Tue, 25 Apr 2006 00:55:47 +0000 (00:55 +0000)]
vertex attrib alias change, glPopAttrib/GL_DRAW_BUFFER bug fix

18 years agoPut color index attribute into the 6th attribute slot.
Brian Paul [Tue, 25 Apr 2006 00:53:25 +0000 (00:53 +0000)]
Put color index attribute into the 6th attribute slot.
Update a lot of loops, conditionals to use the _TNL_FIRST/LAST_* values
instead of specific vertex attributes.
Remove the EdgeFlagv function from the GLvertexformat struct.

18 years agosilence warnings
Brian Paul [Tue, 25 Apr 2006 00:31:22 +0000 (00:31 +0000)]
silence warnings

18 years agoNo longer alias generic vertex attribs with conventional attribs for GL_ARB_vertex_pr...
Brian Paul [Tue, 25 Apr 2006 00:21:32 +0000 (00:21 +0000)]
No longer alias generic vertex attribs with conventional attribs for GL_ARB_vertex_program.

18 years agoextended swizzle (bug 6727)
Brian Paul [Mon, 24 Apr 2006 16:33:25 +0000 (16:33 +0000)]
extended swizzle (bug 6727)

18 years agofprintf() clean-up (bug 6730)
Brian Paul [Mon, 24 Apr 2006 16:32:05 +0000 (16:32 +0000)]
fprintf() clean-up (bug 6730)

18 years agoupdated assertion
Brian Paul [Sun, 23 Apr 2006 15:28:54 +0000 (15:28 +0000)]
updated assertion

18 years agoenable feedback rendering
Aapo Tahkola [Sun, 23 Apr 2006 08:04:50 +0000 (08:04 +0000)]
enable feedback rendering

18 years agodisable hw locking when entering span rendering for now
Aapo Tahkola [Sun, 23 Apr 2006 07:59:40 +0000 (07:59 +0000)]
disable hw locking when entering span rendering for now

18 years agoneed to hold before freeing
Aapo Tahkola [Sun, 23 Apr 2006 07:15:19 +0000 (07:15 +0000)]
need to hold before freeing

18 years agoEnable USER_BUFFERS, RADEON_VTXFMT_A and HW_VBOS on big endian by forcing all elts
Benjamin Herrenschmidt [Sun, 23 Apr 2006 05:54:06 +0000 (05:54 +0000)]
Enable USER_BUFFERS, RADEON_VTXFMT_A and HW_VBOS on big endian by forcing all elts
to 32 bits (it would be possible to do a half word swap for 16 bits if somebody is interested) and by using the input route mecanism to swap ubyte's properly in r300EmitArrays. Tested with cva, varray and quake3

18 years agoFix yet another issue with popping GL_DRAW_BUFFER state with respect to
Brian Paul [Sat, 22 Apr 2006 01:20:20 +0000 (01:20 +0000)]
Fix yet another issue with popping GL_DRAW_BUFFER state with respect to
single vs. multiple outputs and what kind of FBO is currently bound.

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.