mesa.git
19 years agoFix some valgrind complaints
Keith Whitwell [Tue, 10 May 2005 18:08:25 +0000 (18:08 +0000)]
Fix some valgrind complaints

19 years agoDouble-buffer generated instructions and only notify driver when the
Keith Whitwell [Tue, 10 May 2005 13:57:50 +0000 (13:57 +0000)]
Double-buffer generated instructions and only notify driver when the
generated program differs from the previous one.

19 years agoreduce the use of malloc and strdup for parameter lists
Keith Whitwell [Tue, 10 May 2005 13:56:23 +0000 (13:56 +0000)]
reduce the use of malloc and strdup for parameter lists

19 years agodon't be fooled into emitting padding for wpos when not used
Keith Whitwell [Tue, 10 May 2005 13:54:52 +0000 (13:54 +0000)]
don't be fooled into emitting padding for wpos when not used

19 years agoMissing from previous commit
Keith Whitwell [Tue, 10 May 2005 11:41:33 +0000 (11:41 +0000)]
Missing from previous commit

19 years agoUpdate for FragmentProgram._Active
Keith Whitwell [Tue, 10 May 2005 11:40:52 +0000 (11:40 +0000)]
Update for FragmentProgram._Active

19 years agoBetter driver notification on changes.
Keith Whitwell [Tue, 10 May 2005 11:39:50 +0000 (11:39 +0000)]
Better driver notification on changes.

19 years agoget fog working with _TexEnvProgram
Keith Whitwell [Tue, 10 May 2005 11:38:56 +0000 (11:38 +0000)]
get fog working with _TexEnvProgram

19 years agoTemporary fix - delete and recreate texenvprogram so that drivers
Keith Whitwell [Tue, 10 May 2005 10:25:16 +0000 (10:25 +0000)]
Temporary fix - delete and recreate texenvprogram so that drivers
notice when it changes.

19 years ago Committing in .
Jouk Jansen [Tue, 10 May 2005 10:15:30 +0000 (10:15 +0000)]
 Committing in .

 OpenVMS compile support update for new buffer-code

 Modified Files:
  Mesa/src/mesa/drivers/x11/descrip.mms
  Mesa/src/mesa/main/descrip.mms
  Mesa/src/mesa/swrast/descrip.mms
 ----------------------------------------------------------------------

19 years agoFix texenv segfault. Reported by Ben Skeggs.
Keith Whitwell [Tue, 10 May 2005 09:56:02 +0000 (09:56 +0000)]
Fix texenv segfault.  Reported by Ben Skeggs.

19 years agoTry not to use the same temp reg as a TXP destination more than once,
Keith Whitwell [Tue, 10 May 2005 08:58:44 +0000 (08:58 +0000)]
Try not to use the same temp reg as a TXP destination more than once,
as this also constitutes a texture indirection.  Reported by Ben
Skeggs.

19 years agopathetic attempt to accomodate new frambuffer changes (still some work to do)
Daniel Borca [Mon, 9 May 2005 22:15:24 +0000 (22:15 +0000)]
pathetic attempt to accomodate new frambuffer changes (still some work to do)

19 years agoaccomodate new frambuffer changes
Daniel Borca [Mon, 9 May 2005 22:14:58 +0000 (22:14 +0000)]
accomodate new frambuffer changes

19 years agofix some typos in FX code
Daniel Borca [Mon, 9 May 2005 22:14:32 +0000 (22:14 +0000)]
fix some typos in FX code

19 years agoi915 will use _TexEnvProgram (if active)
Keith Whitwell [Mon, 9 May 2005 17:59:13 +0000 (17:59 +0000)]
i915 will use _TexEnvProgram (if active)

19 years agoUse driver functions to create TexEnvProgram, TnlProgram
Keith Whitwell [Mon, 9 May 2005 17:58:13 +0000 (17:58 +0000)]
Use driver functions to create TexEnvProgram, TnlProgram

19 years agocheck for null DrawBuffer values
Keith Whitwell [Mon, 9 May 2005 17:42:18 +0000 (17:42 +0000)]
check for null DrawBuffer values

19 years agoFallback (rather than fail) on unknown program targets.
Keith Whitwell [Mon, 9 May 2005 17:38:52 +0000 (17:38 +0000)]
Fallback (rather than fail) on unknown program targets.

19 years agodri fb works using renderbuffers now in RGBA mode
Jon Smirl [Sun, 8 May 2005 05:01:03 +0000 (05:01 +0000)]
dri fb works using renderbuffers now in RGBA mode

19 years agofbdri can draw double buffered now. Next step is to convert it
Jon Smirl [Sat, 7 May 2005 19:56:44 +0000 (19:56 +0000)]
fbdri can draw double buffered now. Next step is to convert it
to use RenderBuffers.

19 years agoremove some dead code
Brian Paul [Sat, 7 May 2005 18:27:58 +0000 (18:27 +0000)]
remove some dead code

19 years agox86_64 stuff
Brian Paul [Sat, 7 May 2005 17:27:57 +0000 (17:27 +0000)]
x86_64 stuff

19 years agoadded linux-x86-xcb config (Jeremy Kolb)
Brian Paul [Sat, 7 May 2005 17:21:11 +0000 (17:21 +0000)]
added linux-x86-xcb config (Jeremy Kolb)

19 years agoPatches for XCB (Jeremy Kolb)
Brian Paul [Sat, 7 May 2005 17:14:50 +0000 (17:14 +0000)]
Patches for XCB (Jeremy Kolb)

19 years agoassorted warning clean-ups for x86_64, etc (Mikko T.)
Brian Paul [Sat, 7 May 2005 17:06:49 +0000 (17:06 +0000)]
assorted warning clean-ups for x86_64, etc (Mikko T.)

19 years agox86-64 transform optimizations (Mikko T.)
Brian Paul [Sat, 7 May 2005 16:59:58 +0000 (16:59 +0000)]
x86-64 transform optimizations (Mikko T.)

19 years agofix a bunch of html errors
Brian Paul [Fri, 6 May 2005 22:17:24 +0000 (22:17 +0000)]
fix a bunch of html errors

19 years agofix cpp / bytesPerPixel problem (bug 1196554)
Brian Paul [Fri, 6 May 2005 19:28:31 +0000 (19:28 +0000)]
fix cpp / bytesPerPixel problem (bug 1196554)

19 years agoremove bad assertion, added new ones in clear_pixmap()
Brian Paul [Fri, 6 May 2005 15:23:54 +0000 (15:23 +0000)]
remove bad assertion, added new ones in clear_pixmap()

19 years agorestore call to SetBuffer() in clear_color_buffers(), only temporary
Brian Paul [Fri, 6 May 2005 14:44:16 +0000 (14:44 +0000)]
restore call to SetBuffer() in clear_color_buffers(), only temporary

19 years agoUpdated for EXT_framebuffer_object changes. I don't know if this is correct, but...
Ben Skeggs [Fri, 6 May 2005 08:41:50 +0000 (08:41 +0000)]
Updated for EXT_framebuffer_object changes. I don't know if this is correct, but it seems to work

19 years agoFix problem generating mode db. Miniglxtest works now.
Jon Smirl [Fri, 6 May 2005 05:50:41 +0000 (05:50 +0000)]
Fix problem generating mode db. Miniglxtest works now.
Miniglxsample is still broken with double buffering issues.

19 years agoMissing setups that cause all kinds of problems with hw tnl.
Aapo Tahkola [Fri, 6 May 2005 03:18:40 +0000 (03:18 +0000)]
Missing setups that cause all kinds of problems with hw tnl.

19 years agoPort Mesa to build on a P64 platform (e.g., Win64). P64 platforms
Karl Schultz [Thu, 5 May 2005 21:08:07 +0000 (21:08 +0000)]
Port Mesa to build on a P64 platform (e.g., Win64).  P64 platforms
use 64-bit pointers and 32-bit longs.  So, operations like casting pointers
to unsigned long and back to pointer won't work.  glheader.h now
includes files to define uintptr_t, which should instead be used for
this sort of operation.  It is an integer type that is the same size
as a pointer.

19 years agofix for renderbuffer (Andreas Stenglein)
Brian Paul [Thu, 5 May 2005 17:13:18 +0000 (17:13 +0000)]
fix for renderbuffer (Andreas Stenglein)

19 years agoremove some test code
Brian Paul [Thu, 5 May 2005 15:09:16 +0000 (15:09 +0000)]
remove some test code

19 years agominor face-lift for web pages
Brian Paul [Thu, 5 May 2005 14:18:31 +0000 (14:18 +0000)]
minor face-lift for web pages

19 years agofix typo
Brian Paul [Thu, 5 May 2005 14:18:04 +0000 (14:18 +0000)]
fix typo

19 years agoadded a comment
Brian Paul [Thu, 5 May 2005 13:08:06 +0000 (13:08 +0000)]
added a comment

19 years agoadd PROGRAM_DIRS line
Brian Paul [Thu, 5 May 2005 13:07:52 +0000 (13:07 +0000)]
add PROGRAM_DIRS line

19 years agoGetting rusty... 4278 was already there.
Aapo Tahkola [Thu, 5 May 2005 06:51:00 +0000 (06:51 +0000)]
Getting rusty... 4278 was already there.

19 years agoFix up origin in dri/fb driver
Jon Smirl [Thu, 5 May 2005 05:50:19 +0000 (05:50 +0000)]
Fix up origin in dri/fb driver
Calculated fbBPP

19 years agoFlat shading and bunch of clarifications to r300_reg.h .
Aapo Tahkola [Thu, 5 May 2005 03:40:47 +0000 (03:40 +0000)]
Flat shading and bunch of clarifications to r300_reg.h .

19 years agoRefactor COMMON_SOURCES up to Makefile.template
Adam Jackson [Thu, 5 May 2005 03:15:08 +0000 (03:15 +0000)]
Refactor COMMON_SOURCES up to Makefile.template

19 years agoMinor touchups to fbdev renderbuffer support
Jon Smirl [Thu, 5 May 2005 00:28:37 +0000 (00:28 +0000)]
Minor touchups to fbdev renderbuffer support

19 years agoPack tex coord regs at vertex program backend.
Aapo Tahkola [Thu, 5 May 2005 00:28:31 +0000 (00:28 +0000)]
Pack tex coord regs at vertex program backend.

19 years agomore updates for users of s_spantemp.h
Brian Paul [Thu, 5 May 2005 00:10:18 +0000 (00:10 +0000)]
more updates for users of s_spantemp.h

19 years agoAdd drirenderbuffer.c to COMMON_SOURCES
Adam Jackson [Wed, 4 May 2005 22:05:02 +0000 (22:05 +0000)]
Add drirenderbuffer.c to COMMON_SOURCES

19 years agofix s_spantemp.h includes
Brian Paul [Wed, 4 May 2005 20:20:02 +0000 (20:20 +0000)]
fix s_spantemp.h includes

19 years agoFBO changes
Brian Paul [Wed, 4 May 2005 20:18:23 +0000 (20:18 +0000)]
FBO changes

19 years agofix xm_span2.c reference
Brian Paul [Wed, 4 May 2005 20:13:59 +0000 (20:13 +0000)]
fix xm_span2.c reference

19 years agoMajor check-in of changes for GL_EXT_framebuffer_object extension.
Brian Paul [Wed, 4 May 2005 20:11:35 +0000 (20:11 +0000)]
Major check-in of changes for GL_EXT_framebuffer_object extension.
Main driver impacts:
- new code for creating the Mesa GLframebuffer
- new span/pixel read/write code
Some drivers not yet updated/tested.

19 years agohtml fix
Brian Paul [Wed, 4 May 2005 20:05:21 +0000 (20:05 +0000)]
html fix

19 years agoEGLScreenMESA updates
Brian Paul [Wed, 4 May 2005 20:00:15 +0000 (20:00 +0000)]
EGLScreenMESA updates

19 years agodon't call XTranslateCoordinates() if rendering to pixmap
Brian Paul [Wed, 4 May 2005 14:50:45 +0000 (14:50 +0000)]
don't call XTranslateCoordinates() if rendering to pixmap

19 years agoAdd a facility to route all rasterization through a fragment program
Keith Whitwell [Wed, 4 May 2005 11:44:44 +0000 (11:44 +0000)]
Add a facility to route all rasterization through a fragment program
which is automatically generated to match the current texture environment
state.  Introduces a new value ctx->FragmentProgram._Active which is
true when either _Enabled is true or there is such a fragment program
ready to run.

To test out on a driver running the software rasterizer, set
MESA_TEX_PROG=t in the environment.  It goes without saying that performance
is lower for the software rasterizer in this mode.

19 years agoSort instructions for clarity.
Keith Whitwell [Wed, 4 May 2005 11:21:46 +0000 (11:21 +0000)]
Sort instructions for clarity.

19 years agoInclude negate information in disassembly output.
Keith Whitwell [Wed, 4 May 2005 11:21:25 +0000 (11:21 +0000)]
Include negate information in disassembly output.

19 years agoMark unused registers as undefined so dissassemblers can recognized
Keith Whitwell [Wed, 4 May 2005 11:20:59 +0000 (11:20 +0000)]
Mark unused registers as undefined so dissassemblers can recognized
them easily.

19 years agoImprove the quality of the disassembly output for fragment programs.
Keith Whitwell [Wed, 4 May 2005 11:20:20 +0000 (11:20 +0000)]
Improve the quality of the disassembly output for fragment programs.

19 years ago Committing in .
Jouk Jansen [Wed, 4 May 2005 06:33:58 +0000 (06:33 +0000)]
 Committing in .

 OpenVMS compile update

 Modified Files:
  Mesa/src/mesa/shader/slang/descrip.mms
 ----------------------------------------------------------------------

19 years agoDRI fbdev driver getting better. Now I can see something on the screen
Jon Smirl [Wed, 4 May 2005 06:12:22 +0000 (06:12 +0000)]
DRI fbdev driver getting better. Now I can see something on the screen
but it isn't the right something yet.

19 years agosync with latest EGL_MESA_screen_surface spec (EGLScreenMESA handles)
Brian Paul [Wed, 4 May 2005 03:33:21 +0000 (03:33 +0000)]
sync with latest EGL_MESA_screen_surface spec (EGLScreenMESA handles)

19 years agoupdates for latest EGLScreenMESA changes
Brian Paul [Wed, 4 May 2005 03:32:39 +0000 (03:32 +0000)]
updates for latest EGLScreenMESA changes

19 years agoImport all texture coordinate arrays. Import them only once.
Keith Whitwell [Tue, 3 May 2005 15:11:23 +0000 (15:11 +0000)]
Import all texture coordinate arrays.  Import them only once.

19 years agoAdd support to external tnl switcher and disable hw tnl by default.
Aapo Tahkola [Sun, 1 May 2005 23:36:43 +0000 (23:36 +0000)]
Add support to external tnl switcher and disable hw tnl by default.

19 years agoBumped the Savage driver date (a bit late) to mark S3TC support.
Felix Kuehling [Sun, 1 May 2005 14:37:23 +0000 (14:37 +0000)]
Bumped the Savage driver date (a bit late) to mark S3TC support.

19 years agoFixed and cleaned up programming of watermark registers. There may be
Felix Kuehling [Sun, 1 May 2005 14:29:16 +0000 (14:29 +0000)]
Fixed and cleaned up programming of watermark registers. There may be
a marginal speedup, but I'm not sure this has the same effect on all
hardware. Tested on Savage IX and ProSavageDDR. For experimenting with
different values see the macros at the start of savagestate.c.

19 years agoImprove the DRI fb driver, now it compiles.
Jon Smirl [Sun, 1 May 2005 00:21:27 +0000 (00:21 +0000)]
Improve the DRI fb driver, now it compiles.
Added code to support NEW_INTERFACE.
It still doesn't work. Made it build from make linux-solo.

19 years agoapply previous GL_COMPRESSED_TEXTURE_FORMATS_ARB fix to generator file, and regenerat...
Brian Paul [Sat, 30 Apr 2005 18:30:16 +0000 (18:30 +0000)]
apply previous GL_COMPRESSED_TEXTURE_FORMATS_ARB fix to generator file, and regenerate get.c

19 years agor300 side support for fixed function pipeline. This isnt functional with current...
Aapo Tahkola [Sat, 30 Apr 2005 11:06:14 +0000 (11:06 +0000)]
r300 side support for fixed function pipeline. This isnt functional with current Mesa.

19 years agoFixed bogus ENUM_TO_BOOLEAN in
Felix Kuehling [Sat, 30 Apr 2005 02:09:23 +0000 (02:09 +0000)]
Fixed bogus ENUM_TO_BOOLEAN in
_mesa_GetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS_ARB). Must be ENUM_TO_INT.
mesa/progs/tests/texenv now lists supported compressed texture formats
correctly.

19 years agoAdded S3TC support to the Savage driver with some help from Mark Cass's
Felix Kuehling [Sat, 30 Apr 2005 02:03:18 +0000 (02:03 +0000)]
Added S3TC support to the Savage driver with some help from Mark Cass's
S3TC support for an older driver version. On Savage3D/IX/MX
GL_EXT_texture_compression_s3tc can't be enabled because DXT3 and DXT5
are not supported. However GL_S3_s3tc is enabled on all Savage chips.
Tested on a Savage IX and a ProSavageDDR

19 years agoFix include path to make build work
Jon Smirl [Fri, 29 Apr 2005 22:25:21 +0000 (22:25 +0000)]
Fix include path to make build work

19 years agoFormat for 80 columns. Add alternate matrix mul based on MAD rather than DP4.
Keith Whitwell [Fri, 29 Apr 2005 17:32:27 +0000 (17:32 +0000)]
Format for 80 columns.  Add alternate matrix mul based on MAD rather than DP4.

19 years agoAdd DISASSEM define, similar to other program generator files.
Keith Whitwell [Fri, 29 Apr 2005 17:31:54 +0000 (17:31 +0000)]
Add DISASSEM define, similar to other program generator files.

19 years agoAdd linux-fbdev config
Keith Whitwell [Fri, 29 Apr 2005 17:31:10 +0000 (17:31 +0000)]
Add linux-fbdev config

19 years agonew config
Keith Whitwell [Fri, 29 Apr 2005 17:30:29 +0000 (17:30 +0000)]
new config

19 years agoPut back not-so-redundant #ifdef.
Keith Whitwell [Fri, 29 Apr 2005 15:41:24 +0000 (15:41 +0000)]
Put back not-so-redundant #ifdef.

19 years agoRemove redundant #ifdef, fix compiler warning
Keith Whitwell [Fri, 29 Apr 2005 15:37:27 +0000 (15:37 +0000)]
Remove redundant #ifdef, fix compiler warning

19 years agonew file
Keith Whitwell [Fri, 29 Apr 2005 15:36:38 +0000 (15:36 +0000)]
new file

19 years agoMaintain a fragment program for current texturing state.
Keith Whitwell [Fri, 29 Apr 2005 15:11:39 +0000 (15:11 +0000)]
Maintain a fragment program for current texturing state.

19 years agofix _tnl_copy_to_current() so that current edge flag and rasterpos aren't trashed...
Brian Paul [Thu, 28 Apr 2005 21:14:00 +0000 (21:14 +0000)]
fix _tnl_copy_to_current() so that current edge flag and rasterpos aren't trashed by color index updates

19 years agoStop gcc-4.0 complaining about "type qualifiers ignored on function
Keith Whitwell [Thu, 28 Apr 2005 13:16:23 +0000 (13:16 +0000)]
Stop gcc-4.0 complaining about "type qualifiers ignored on function
return type".

19 years agoStop gcc-4.0 complaining about "type qualifiers ignored on function
Keith Whitwell [Thu, 28 Apr 2005 12:05:58 +0000 (12:05 +0000)]
Stop gcc-4.0 complaining about "type qualifiers ignored on function
return type".

19 years agomove set_component_sizes() to fix bug 3135
Brian Paul [Wed, 27 Apr 2005 21:20:30 +0000 (21:20 +0000)]
move set_component_sizes() to fix bug 3135

19 years agono need to enable fog or set fog mode with fragment program
Brian Paul [Tue, 26 Apr 2005 20:58:27 +0000 (20:58 +0000)]
no need to enable fog or set fog mode with fragment program

19 years agotweak previous fog/fragment program fix
Brian Paul [Tue, 26 Apr 2005 20:56:21 +0000 (20:56 +0000)]
tweak previous fog/fragment program fix

19 years agoadded interpolate_fog()
Brian Paul [Tue, 26 Apr 2005 17:35:45 +0000 (17:35 +0000)]
added interpolate_fog()

19 years agoenable fog render input if fragment program fog option set
Brian Paul [Tue, 26 Apr 2005 17:25:53 +0000 (17:25 +0000)]
enable fog render input if fragment program fog option set

19 years agocomments and minor clean-up
Brian Paul [Tue, 26 Apr 2005 16:02:56 +0000 (16:02 +0000)]
comments and minor clean-up

19 years agoFix as suggested by Ben Skeggs.
Aapo Tahkola [Mon, 25 Apr 2005 09:50:45 +0000 (09:50 +0000)]
Fix as suggested by Ben Skeggs.

19 years agoEnsure all VB->AttribPtr[] are populated. Reported by Aapo Tahkola
Keith Whitwell [Mon, 25 Apr 2005 09:36:27 +0000 (09:36 +0000)]
Ensure all VB->AttribPtr[] are populated.  Reported by Aapo Tahkola

19 years agoMinor changes to make linux-solo build again
Jon Smirl [Mon, 25 Apr 2005 03:03:10 +0000 (03:03 +0000)]
Minor changes to make linux-solo build again

19 years agoSoftware fallback for glColorMask. Can be avoided on Savage4 when all
Felix Kuehling [Sun, 24 Apr 2005 20:55:57 +0000 (20:55 +0000)]
Software fallback for glColorMask. Can be avoided on Savage4 when all
channels are masked (disable draw update). Bumped driver date to
reflect recent correctness fixes. The driver now passes all glean
tests except exactRGBA on both Savage4 and Savage3D-based cards.

19 years agoModifying to build against current Mesa. Disabled r200*.c files since they didnt...
Aapo Tahkola [Sun, 24 Apr 2005 09:08:31 +0000 (09:08 +0000)]
Modifying to build against current Mesa. Disabled r200*.c files since they didnt want to build anymore.

19 years agoFixed a segfault introduced by Keith's pipeline changes.
Felix Kuehling [Sat, 23 Apr 2005 19:54:30 +0000 (19:54 +0000)]
Fixed a segfault introduced by Keith's pipeline changes.

19 years agoTexturing fixes for Savage3D/MX/IX:
Felix Kuehling [Sat, 23 Apr 2005 17:18:57 +0000 (17:18 +0000)]
Texturing fixes for Savage3D/MX/IX:
- force emitting texAddr when the texture image changed (flush caches)
- set transparent texture color key to something improbable
  (couldn't find a way to disable it completely)
- fixed texture environment modes GL_DECAL and GL_REPLACE
- made texture environment mode GL_BLEND a software fallback
- added two custom texture formats for promoting from GL_ALPHA to ARGB8888
  and 4444. Since the hardware can't be made to ignore the RGB color
  components, set them to 1 instead of 0. This gives the correct results
- disabled GL_EXT_texture_env_add on Savage3D/MX/IX
- map both GL_CLAMP and GL_CLAMP_TO_EDGE to hardware mode "wrap". It doesn't
  match either mode exactly by the spec, so we should either fall back on both
  or none. I chose the latter.
- fall back to software when s and t wrapping modes differ (hardware has only
  one bit for both)

19 years agoFix the worst problems with dangling edgeflag references in
Keith Whitwell [Sat, 23 Apr 2005 11:55:18 +0000 (11:55 +0000)]
Fix the worst problems with dangling edgeflag references in
display lists.  These mainly arise from edgeflag being the only
attribute no longer stored internally as a float and requiring
various special case paths to accomodate it.