platform/upstream/mesa.git
17 years agoCorrect the name of the GL_NV_texture_expand_normal extension.
Ian Romanick [Tue, 22 Aug 2006 18:44:58 +0000 (18:44 +0000)]
Correct the name of the GL_NV_texture_expand_normal extension.

17 years agoThe TLS dispatch functions for x86-64 are fixed-size, just like on
Ian Romanick [Tue, 22 Aug 2006 18:22:20 +0000 (18:22 +0000)]
The TLS dispatch functions for x86-64 are fixed-size, just like on
x86.  This means that the position of each dispatch function can be
calculated as (dispatch_offset * size_of_function) + glNewList.  This
allows us to not store the function pointers in glprocs_table_t.

This same optimization has been done for quite some time on x86.  We
could probably also do this for some cases of the SPARC dispatch as
well.

17 years agoAdd new attribute called static_dispatch to the <function> element. This
Ian Romanick [Tue, 22 Aug 2006 16:34:38 +0000 (16:34 +0000)]
Add new attribute called static_dispatch to the <function> element.  This
boolean attribute, which defaults to true, determines whether or not a
static dispatch function is available in libGL for applications to link
against.

Ideally, any new functions that are not part of the ABI should not have
directly accessable dispatch functions.  This forces applications to use
glXGetProcAddress to access these functions.  By doing this we can
gracefully remove functions from libGL without breaking the linkage of
applications.

Note that the static dispatch functions are still generated.  However, they
are given names like gl_dispatch_stub_820 and are marked with the "hidden"
linker attribute.

All extension functions added since the previous Mesa release (6.5) have
been marked as 'static_dispatch="false"'.

17 years agomove ALL_SOURCES to sources file
Brian Paul [Mon, 21 Aug 2006 16:05:30 +0000 (16:05 +0000)]
move ALL_SOURCES to sources file

17 years agoremove FBDEV_DRIVER_OBJECTS assignment (in sources file)
Brian Paul [Mon, 21 Aug 2006 15:50:41 +0000 (15:50 +0000)]
remove FBDEV_DRIVER_OBJECTS assignment (in sources file)

17 years agovarious updates
Brian Paul [Mon, 21 Aug 2006 14:26:06 +0000 (14:26 +0000)]
various updates

17 years agoMore GLSL preprocessor code:
Michal Krol [Mon, 21 Aug 2006 09:25:11 +0000 (09:25 +0000)]
More GLSL preprocessor code:
Rename slang_version.syn to slang_pp_version.syn.
The #version directive understands version 120.
Cosmetic changes in version preprocessor.
Checks if requested version is supported by the compiler.

17 years agoGLSL 1.20 constructors and operators.
Michal Krol [Mon, 21 Aug 2006 08:47:28 +0000 (08:47 +0000)]
GLSL 1.20 constructors and operators.

17 years agoremove the now confusing option to manually enable software ARB_vp if drm is not...
Roland Scheidegger [Sat, 19 Aug 2006 08:54:03 +0000 (08:54 +0000)]
remove the now confusing option to manually enable software ARB_vp if drm is not new enough on r200

17 years agoRemoved ifeq from makefile, and corrected fbdev driver so it compiles
Sean D'Epagnier [Sat, 19 Aug 2006 00:28:36 +0000 (00:28 +0000)]
Removed ifeq from makefile, and corrected fbdev driver so it compiles

17 years agoupdates for 6.5.1
Brian Paul [Fri, 18 Aug 2006 20:24:54 +0000 (20:24 +0000)]
updates for 6.5.1

17 years agoFix-ups for linux-fbdev config. No longer build Xlib driver sources.
Brian Paul [Fri, 18 Aug 2006 20:20:28 +0000 (20:20 +0000)]
Fix-ups for linux-fbdev config.  No longer build Xlib driver sources.

17 years agoThe driver now compiles correctly without any x headers or libraries installed
Sean D'Epagnier [Fri, 18 Aug 2006 10:38:15 +0000 (10:38 +0000)]
The driver now compiles correctly without any x headers or libraries installed
The bitmap and stroke code can't be shared with glx anymore because of this.

The model for the mini teapot is restored and I have tested it to work with
linux-fbdev and linux-solo

The driver recognizes 32bpp where there is no alpha (my radeon 7500)  It also
sets the correct number of cmap entrees (instead of 256 which can be an error)

17 years agoFix writemasks on texture arb fp instructions.
Alan Hourihane [Fri, 18 Aug 2006 09:04:48 +0000 (09:04 +0000)]
Fix writemasks on texture arb fp instructions.
Cleanup invarient state emission.

17 years agosort the FEATURE_ defines
Brian Paul [Thu, 17 Aug 2006 14:27:10 +0000 (14:27 +0000)]
sort the FEATURE_ defines

17 years agoadded FEATURE_EXT_timer_query and tests
Brian Paul [Thu, 17 Aug 2006 14:25:04 +0000 (14:25 +0000)]
added FEATURE_EXT_timer_query and tests

17 years agochange #ifdef to #if
Brian Paul [Thu, 17 Aug 2006 14:16:03 +0000 (14:16 +0000)]
change #ifdef to #if

17 years agochange tex memory allocation calls (debian bug 383209)
Brian Paul [Wed, 16 Aug 2006 20:53:39 +0000 (20:53 +0000)]
change tex memory allocation calls (debian bug 383209)

17 years agoWhen available, which is most of the time, use posix_memalign to implement
Ian Romanick [Wed, 16 Aug 2006 17:06:08 +0000 (17:06 +0000)]
When available, which is most of the time, use posix_memalign to implement
_mesa_align_malloc and friends.

17 years agoEnable support for GL_EXT_gpu_program_parameters for R300.
Ian Romanick [Tue, 15 Aug 2006 16:48:06 +0000 (16:48 +0000)]
Enable support for GL_EXT_gpu_program_parameters for R300.

17 years agoAdd support for GL_EXT_gpu_program_parameters. Any driver that enables
Ian Romanick [Tue, 15 Aug 2006 16:47:34 +0000 (16:47 +0000)]
Add support for GL_EXT_gpu_program_parameters.  Any driver that enables
either GL_ARB_vertex_program or GL_ARB_fragment_program should enable this
extension as well.

17 years agoAdd test for GL_EXT_gpu_program_parameters.
Ian Romanick [Tue, 15 Aug 2006 16:44:32 +0000 (16:44 +0000)]
Add test for GL_EXT_gpu_program_parameters.

17 years agoRemove extraneous trailing semicolon.
Ian Romanick [Tue, 15 Aug 2006 16:26:34 +0000 (16:26 +0000)]
Remove extraneous trailing semicolon.

17 years agos/GLvoid/void/ to fix gcc 4.2 issue (bug 7875)
Brian Paul [Tue, 15 Aug 2006 14:28:03 +0000 (14:28 +0000)]
s/GLvoid/void/ to fix gcc 4.2 issue (bug 7875)

17 years agoBug #7169: Attempt to make libGL symbols visible to drivers.
Michel Dänzer [Mon, 14 Aug 2006 15:53:37 +0000 (15:53 +0000)]
Bug #7169: Attempt to make libGL symbols visible to drivers.

Some applications end up dlopening libGL without RTLD_GLOBAL, so the libGL
symbols referenced by the driver can't be unresolved when libGL dlopens it.
This attempts to make the libGL symbols visible to the driver by dlopening
libGL (again) with RTLD_GLOBAL before dlopening the driver and dlclosing
the obtained handle afterwards.

17 years agogcc-4.1.1 compile fix
Aapo Tahkola [Sat, 12 Aug 2006 13:31:15 +0000 (13:31 +0000)]
gcc-4.1.1 compile fix

17 years agoAdd comments explaining a couple "mystery" bits.
Ian Romanick [Sat, 12 Aug 2006 00:11:05 +0000 (00:11 +0000)]
Add comments explaining a couple "mystery" bits.

17 years agoFix white-space problem in the prototype for glBlitFramebufferEXT that
Ian Romanick [Sat, 12 Aug 2006 00:05:54 +0000 (00:05 +0000)]
Fix white-space problem in the prototype for glBlitFramebufferEXT that
prevented gl_mangle.h from picking it up.

17 years agoFix long standing bug that prevented newer drivers from working with
Ian Romanick [Fri, 11 Aug 2006 23:56:37 +0000 (23:56 +0000)]
Fix long standing bug that prevented newer drivers from working with
older libGL.  The data in extension_helper.h erroneous instructed
drivers to expect all functions with establised offsets, even those
not in the ABI, to have a specific offset allocated.  This is just
wrong.  A function is either in the ABI and has a set offset or a
function is not in the ABI and has a re-map offset.

17 years agoConvert comment header for __GLcontextModesRec to Doxygen style.
Ian Romanick [Fri, 11 Aug 2006 22:26:49 +0000 (22:26 +0000)]
Convert comment header for __GLcontextModesRec to Doxygen style.

17 years agosupport shorts as vertex data
Aapo Tahkola [Fri, 11 Aug 2006 13:59:37 +0000 (13:59 +0000)]
support shorts as vertex data

17 years agoAdd padding to match the current xf86-video-intel DDX->DRI interface.
Eric Anholt [Thu, 10 Aug 2006 21:26:50 +0000 (21:26 +0000)]
Add padding to match the current xf86-video-intel DDX->DRI interface.

17 years agomkdir -> mkdir -p, since /usr/include might not exist in the installroot yet
Adam Jackson [Thu, 10 Aug 2006 20:24:50 +0000 (20:24 +0000)]
mkdir -> mkdir -p, since /usr/include might not exist in the installroot yet

17 years agolinux-indirect target fixes.
Adam Jackson [Thu, 10 Aug 2006 20:19:57 +0000 (20:19 +0000)]
linux-indirect target fixes.

17 years ago6.5.1 relnotes
Brian Paul [Thu, 10 Aug 2006 14:57:24 +0000 (14:57 +0000)]
6.5.1 relnotes

17 years agolatest updates for 6.5.1
Brian Paul [Thu, 10 Aug 2006 14:54:19 +0000 (14:54 +0000)]
latest updates for 6.5.1

17 years agoFixup more PROGRAM_UNDEFINED problems.
Alan Hourihane [Thu, 10 Aug 2006 13:14:24 +0000 (13:14 +0000)]
Fixup more PROGRAM_UNDEFINED problems.

17 years agoFix some breakage after the PROGRAM_UNDEFINED change
Alan Hourihane [Thu, 10 Aug 2006 13:12:00 +0000 (13:12 +0000)]
Fix some breakage after the PROGRAM_UNDEFINED change

17 years agoAdded initial multisampling support to glfbdev driver.
Sean D'Epagnier [Thu, 10 Aug 2006 10:21:17 +0000 (10:21 +0000)]
Added initial multisampling support to glfbdev driver.
Fully implemented glutGameMode, and added vidresize stubs to make
Added support for glutReshapeDisplay to change video mode but not lose
current mesa context.
implementation glut 5 complient.
Fixed many minor bugs
Updated docs

17 years agofinish up texstore for SL8 texture format
Brian Paul [Thu, 10 Aug 2006 04:14:05 +0000 (04:14 +0000)]
finish up texstore for SL8 texture format

17 years agoGLSL 1.20 built-in library.
Michal Krol [Wed, 9 Aug 2006 21:22:59 +0000 (21:22 +0000)]
GLSL 1.20 built-in library.

17 years agoMore GLSL code - more support for vec4 operations on x86 back-end.
Michal Krol [Wed, 9 Aug 2006 20:05:26 +0000 (20:05 +0000)]
More GLSL code - more support for vec4 operations on x86 back-end.

17 years agoAdd Intel i965G/Q DRI driver.
Eric Anholt [Wed, 9 Aug 2006 19:14:05 +0000 (19:14 +0000)]
Add Intel i965G/Q DRI driver.

This driver comes from Tungsten Graphics, with a few further modifications by
Intel.

17 years agoAdd PROGRAM_FILE_MAX for i965 driver.
Eric Anholt [Wed, 9 Aug 2006 19:10:23 +0000 (19:10 +0000)]
Add PROGRAM_FILE_MAX for i965 driver.

While here, make PROGRAM_UNDEFINED just the next value in the enum.

17 years agoimplement some of the sRGB texstore functions
Brian Paul [Wed, 9 Aug 2006 02:42:25 +0000 (02:42 +0000)]
implement some of the sRGB texstore functions

17 years agoremove stray text from previous check-in
Brian Paul [Mon, 7 Aug 2006 14:09:13 +0000 (14:09 +0000)]
remove stray text from previous check-in

17 years agoModified config to use glut/fbdev, added demo and sample directories.
Sean D'Epagnier [Sat, 5 Aug 2006 08:55:10 +0000 (08:55 +0000)]
Modified config to use glut/fbdev, added demo and sample directories.

17 years agoModularized code into multiple files.
Sean D'Epagnier [Sat, 5 Aug 2006 08:24:29 +0000 (08:24 +0000)]
Modularized code into multiple files.

Added gamemode stubs, iconify support, joystick stubs.

Fixed color index mode, added 8 bit alpha blending, enabled cmaps even
with 15, 16, 24, and 32 depths as some fbdev drivers need this.

Fixed compiling with -ansi

Using SIGIO for keyboard input, so that vt switching is enabled even
if the program is locked.

Fixed numerous small bugs.

17 years agofix typo, indentation
Brian Paul [Fri, 4 Aug 2006 22:09:43 +0000 (22:09 +0000)]
fix typo, indentation

17 years agoexport new _mesa_* functions
Karl Schultz [Fri, 4 Aug 2006 19:45:29 +0000 (19:45 +0000)]
export new _mesa_* functions

17 years agofix bug when pushing ReadBuffer state for GL_PIXEL_MODE_BIT
Brian Paul [Fri, 4 Aug 2006 13:41:25 +0000 (13:41 +0000)]
fix bug when pushing ReadBuffer state for GL_PIXEL_MODE_BIT

17 years agoHandle GLUT_DEVICE_KEY_REPEAT,GLUT_OWN_JOYSTICK,GLUT_JOYSTICK_POLL_RATE in glutDevice...
Claudio Ciccani [Fri, 4 Aug 2006 12:43:33 +0000 (12:43 +0000)]
Handle GLUT_DEVICE_KEY_REPEAT,GLUT_OWN_JOYSTICK,GLUT_JOYSTICK_POLL_RATE in glutDeviceGet().

17 years agoMoved glutDeviceGet() to events.c.
Claudio Ciccani [Fri, 4 Aug 2006 10:49:43 +0000 (10:49 +0000)]
Moved glutDeviceGet() to events.c.
Implemented glutIgnoreKeyRepeat() and glutSetKeyRepeat().

17 years agomore work for GL_EXT_texture_sRGB.
Brian Paul [Fri, 4 Aug 2006 03:44:53 +0000 (03:44 +0000)]
more work for GL_EXT_texture_sRGB.

17 years agouse WRITE_MASK_* instead of 0x1, 0x2, etc
Brian Paul [Thu, 3 Aug 2006 17:10:45 +0000 (17:10 +0000)]
use WRITE_MASK_* instead of 0x1, 0x2, etc

17 years agoAdded a check to prevent rebuilding Mesa with a different configuration
Brian Paul [Thu, 3 Aug 2006 16:58:06 +0000 (16:58 +0000)]
Added a check to prevent rebuilding Mesa with a different configuration
without first doing 'make realclean'.

17 years agoNew wrapper functions: _mesa_dlopen(), _mesa_dlsym(), _mesa_dlclose().
Brian Paul [Thu, 3 Aug 2006 03:59:20 +0000 (03:59 +0000)]
New wrapper functions: _mesa_dlopen(), _mesa_dlsym(), _mesa_dlclose().
Eventually move them into imports.c

17 years agoadded GL_EXT_texture_sRGB
Brian Paul [Thu, 3 Aug 2006 03:23:05 +0000 (03:23 +0000)]
added GL_EXT_texture_sRGB

17 years agoInitial work for GL_EXT_texture_sRGB.
Brian Paul [Thu, 3 Aug 2006 03:20:52 +0000 (03:20 +0000)]
Initial work for GL_EXT_texture_sRGB.

17 years agofix link for Aqsis
Brian Paul [Wed, 2 Aug 2006 21:26:15 +0000 (21:26 +0000)]
fix link for Aqsis

17 years agoEnable vec4 extension for x86 back-end.
Michal Krol [Wed, 2 Aug 2006 14:51:24 +0000 (14:51 +0000)]
Enable vec4 extension for x86 back-end.

17 years agoChange fragment shader to utilize faster vec4 operations.
Michal Krol [Wed, 2 Aug 2006 14:46:50 +0000 (14:46 +0000)]
Change fragment shader to utilize faster vec4 operations.

17 years agoAdd test for vec4 extension.
Michal Krol [Wed, 2 Aug 2006 14:45:24 +0000 (14:45 +0000)]
Add test for vec4 extension.

17 years agoAdd vec4 extension.
Michal Krol [Wed, 2 Aug 2006 14:44:46 +0000 (14:44 +0000)]
Add vec4 extension.

17 years agoFix mmFindBlock function.
Michal Krol [Wed, 2 Aug 2006 14:22:06 +0000 (14:22 +0000)]
Fix mmFindBlock function.

17 years agoClean-up FEATURE_ARB_shader_objects #ifdefs. Bug 7492.
Michal Krol [Tue, 1 Aug 2006 20:07:31 +0000 (20:07 +0000)]
Clean-up FEATURE_ARB_shader_objects #ifdefs. Bug 7492.

17 years agocasts and assertions
Brian Paul [Tue, 1 Aug 2006 20:03:29 +0000 (20:03 +0000)]
casts and assertions

17 years agocode to draw engine block
Brian Paul [Tue, 1 Aug 2006 20:03:05 +0000 (20:03 +0000)]
code to draw engine block

17 years agoMove GL_MESA_shader_debug from glext.h to gl.h.
Michal Krol [Tue, 1 Aug 2006 16:06:08 +0000 (16:06 +0000)]
Move GL_MESA_shader_debug from glext.h to gl.h.

17 years agorenderbuffer fixes (Sean D'Epagnier)
Brian Paul [Tue, 1 Aug 2006 14:33:05 +0000 (14:33 +0000)]
renderbuffer fixes (Sean D'Epagnier)

17 years agoFixed warnings.
Claudio Ciccani [Tue, 1 Aug 2006 14:32:02 +0000 (14:32 +0000)]
Fixed warnings.

17 years agofix #6991
Aapo Tahkola [Mon, 31 Jul 2006 23:21:50 +0000 (23:21 +0000)]
fix #6991

17 years agoadded glut fbdev files
Brian Paul [Mon, 31 Jul 2006 14:25:53 +0000 (14:25 +0000)]
added glut fbdev files

17 years agoGLUT on fbdev driver. Sean D'Epagnier
Brian Paul [Mon, 31 Jul 2006 14:24:21 +0000 (14:24 +0000)]
GLUT on fbdev driver.  Sean D'Epagnier

17 years agoAdd support for GL_MESA_shader_debug.
Michal Krol [Sun, 30 Jul 2006 15:29:11 +0000 (15:29 +0000)]
Add support for GL_MESA_shader_debug.

17 years agoCommit enums for GL_MESA_shader_debug.spec.
Michal Krol [Sun, 30 Jul 2006 15:19:19 +0000 (15:19 +0000)]
Commit enums for GL_MESA_shader_debug.spec.

17 years agoProgram to convert .syn file to .h headers.
Michal Krol [Sun, 30 Jul 2006 14:48:01 +0000 (14:48 +0000)]
Program to convert .syn file to .h headers.

17 years agoClear window's event mask before enabling handled events.
Claudio Ciccani [Sun, 30 Jul 2006 14:47:51 +0000 (14:47 +0000)]
Clear window's event mask before enabling handled events.

17 years agoAdd support for GL_MESA_shader_debug.
Michal Krol [Sun, 30 Jul 2006 14:45:25 +0000 (14:45 +0000)]
Add support for GL_MESA_shader_debug.

17 years agoFix dependencies.
Michal Krol [Sun, 30 Jul 2006 14:33:53 +0000 (14:33 +0000)]
Fix dependencies.

17 years agoMore text.
Michal Krol [Sun, 30 Jul 2006 14:28:38 +0000 (14:28 +0000)]
More text.

17 years agoOptimize shaders.
Michal Krol [Sat, 29 Jul 2006 09:42:03 +0000 (09:42 +0000)]
Optimize shaders.
Use frame counter.

17 years agoFix build failure in the savage driver.
Eric Anholt [Fri, 28 Jul 2006 21:30:14 +0000 (21:30 +0000)]
Fix build failure in the savage driver.

17 years agor300_emit.h cleanup.
Jerome Glisse [Thu, 27 Jul 2006 22:51:14 +0000 (22:51 +0000)]
r300_emit.h cleanup.

Remove unused macro
Replace LOCAL_VAR, PREFIX*
Indent code
Remove radeon redundant CP type 3 packet

18 years agoload SLANG_FRAGMENT_FIXED_SECONDARYCOLOR
Brian Paul [Fri, 21 Jul 2006 20:52:43 +0000 (20:52 +0000)]
load SLANG_FRAGMENT_FIXED_SECONDARYCOLOR

18 years agojust reindent
Brian Paul [Fri, 21 Jul 2006 20:49:20 +0000 (20:49 +0000)]
just reindent

18 years agoadded arrayobj.[ch] files
Brian Paul [Fri, 21 Jul 2006 19:56:52 +0000 (19:56 +0000)]
added arrayobj.[ch] files

18 years agocheck for non-nill pwc in WMesaMakeCurrent(), bug 7585
Brian Paul [Fri, 21 Jul 2006 19:52:59 +0000 (19:52 +0000)]
check for non-nill pwc in WMesaMakeCurrent(), bug 7585

18 years agoSome structure renaming. Prefix vertex/fragment-related structs with
Brian Paul [Thu, 20 Jul 2006 16:49:57 +0000 (16:49 +0000)]
Some structure renaming.  Prefix vertex/fragment-related structs with
"gl_" to match other structs.

18 years agobump MESA_TINY to 1
Brian Paul [Thu, 20 Jul 2006 04:34:36 +0000 (04:34 +0000)]
bump MESA_TINY to 1

18 years agomove/update comments
Brian Paul [Thu, 20 Jul 2006 04:24:42 +0000 (04:24 +0000)]
move/update comments

18 years agouse ctx->Light.ShadeModel instead of ctx->_TriangleCaps
Brian Paul [Thu, 20 Jul 2006 04:17:11 +0000 (04:17 +0000)]
use ctx->Light.ShadeModel instead of ctx->_TriangleCaps

18 years agoInstead of testing ctx->_TriangleCaps for flat/smooth shading, just use ctx->Light...
Brian Paul [Thu, 20 Jul 2006 04:16:26 +0000 (04:16 +0000)]
Instead of testing ctx->_TriangleCaps for flat/smooth shading, just use ctx->Light.ShadeModel

18 years agoremove unused NEED_TWO_SIDED_LIGHTING() macro
Brian Paul [Thu, 20 Jul 2006 03:56:16 +0000 (03:56 +0000)]
remove unused NEED_TWO_SIDED_LIGHTING() macro

18 years agoFor glGetTexImage(), move the _mesa_validate_pbo_access() error check into
Brian Paul [Wed, 19 Jul 2006 16:13:15 +0000 (16:13 +0000)]
For glGetTexImage(), move the _mesa_validate_pbo_access() error check into
_mesa_GetTexImage() so it's not needed in the fallback or driver functions.

18 years agoSeveral loops over the map1/2 evaluator arrays were incorrect.
Brian Paul [Wed, 19 Jul 2006 15:28:29 +0000 (15:28 +0000)]
Several loops over the map1/2 evaluator arrays were incorrect.
There's only 16 evaluator maps.  Define new _TNL_NUM_EVAL constant for
those loops.
Also, fix priority of GL_NV_vertex_program generic maps - they override the
conventional maps.
See bug 7564.

18 years agomore 6.5.1 additions
Brian Paul [Wed, 19 Jul 2006 15:09:42 +0000 (15:09 +0000)]
more 6.5.1 additions

18 years agoindentation fix
Brian Paul [Tue, 18 Jul 2006 22:33:14 +0000 (22:33 +0000)]
indentation fix

18 years agoadd missing 'return' after a few _mesa_error() calls in _mesa_GetTexImage()
Brian Paul [Tue, 18 Jul 2006 22:27:02 +0000 (22:27 +0000)]
add missing 'return' after a few _mesa_error() calls in _mesa_GetTexImage()

18 years agoCompute ctx->Color._LogicOpEnabled in one place instead of four places!
Brian Paul [Tue, 18 Jul 2006 19:15:40 +0000 (19:15 +0000)]
Compute ctx->Color._LogicOpEnabled in one place instead of four places!