mesa.git
19 years agoadded _eglInitPbufferSurface()
Brian Paul [Tue, 17 May 2005 02:12:26 +0000 (02:12 +0000)]
added _eglInitPbufferSurface()

19 years agoFix several internal problems with generating the list of configs.
Jon Smirl [Tue, 17 May 2005 00:59:13 +0000 (00:59 +0000)]
Fix several internal problems with generating the list of configs.

19 years agoRearranged some code and added some comments to mgaAllocDmaLow. The
Ian Romanick [Mon, 16 May 2005 23:23:51 +0000 (23:23 +0000)]
Rearranged some code and added some comments to mgaAllocDmaLow.  The
modified code performs identically, but cuts 16KiB from the resulting
mga_dri.so.

19 years agoDon't use _mesa_swizzle_ubyte_image if all three texture formats
Felix Kuehling [Mon, 16 May 2005 23:01:09 +0000 (23:01 +0000)]
Don't use _mesa_swizzle_ubyte_image if all three texture formats
involved in _mesa_textore_argb/rgba8888 (source, base-internal,
destination) differ. _mesa_swizzle_ubyte_image knows only about two of
the formats and can't handle the case that all three are different
correctly. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=3111.

19 years agoremove -ansi -pedantic -D_POSIX_C_SOURCE=199309L from CXXFLAGS
Brian Paul [Mon, 16 May 2005 19:07:45 +0000 (19:07 +0000)]
remove -ansi -pedantic -D_POSIX_C_SOURCE=199309L from CXXFLAGS

19 years agoImplement query of surface type.
Jon Smirl [Mon, 16 May 2005 16:50:38 +0000 (16:50 +0000)]
Implement query of surface type.

19 years agoAdd error about write permission to fbdev attribs
Jon Smirl [Mon, 16 May 2005 15:51:05 +0000 (15:51 +0000)]
Add error about write permission to fbdev attribs

19 years agoanother GLX / XCB patch (Jeremy Kolb)
Brian Paul [Mon, 16 May 2005 14:12:46 +0000 (14:12 +0000)]
another GLX / XCB patch (Jeremy Kolb)

19 years agoDeal better with indirection and indirection accounting, developed
Keith Whitwell [Mon, 16 May 2005 12:15:01 +0000 (12:15 +0000)]
Deal better with indirection and indirection accounting, developed
with Ben Skeggs.

19 years agoApply r200 tcl fix to radeon - compiles but untested.
Keith Whitwell [Mon, 16 May 2005 08:36:28 +0000 (08:36 +0000)]
Apply r200 tcl fix to radeon - compiles but untested.

19 years agoEGL_MESA_copy_context stuff
Brian Paul [Mon, 16 May 2005 02:21:57 +0000 (02:21 +0000)]
EGL_MESA_copy_context stuff

19 years agouse EGLint instead of unsigned long for eglCopyContextMESA, added comments
Brian Paul [Mon, 16 May 2005 02:21:08 +0000 (02:21 +0000)]
use EGLint instead of unsigned long for eglCopyContextMESA, added comments

19 years agoseparate ext strings with a space
Brian Paul [Mon, 16 May 2005 02:17:49 +0000 (02:17 +0000)]
separate ext strings with a space

19 years agos/Atrib/Attrib/, set extension enable flags
Brian Paul [Mon, 16 May 2005 02:16:33 +0000 (02:16 +0000)]
s/Atrib/Attrib/, set extension enable flags

19 years agoadded boolean extension flags to _EGLDriver
Brian Paul [Mon, 16 May 2005 02:15:42 +0000 (02:15 +0000)]
added boolean extension flags to _EGLDriver

19 years agorestore _eglSetConfigAttrib (for now), added prototype _eglConfigToContextModesRec()
Brian Paul [Mon, 16 May 2005 02:14:50 +0000 (02:14 +0000)]
restore _eglSetConfigAttrib (for now), added prototype _eglConfigToContextModesRec()

19 years agodefine M_E if needed
Brian Paul [Mon, 16 May 2005 01:32:57 +0000 (01:32 +0000)]
define M_E if needed

19 years agomake _eglSetConfigAtrib() a static function, and rename it
Brian Paul [Mon, 16 May 2005 00:45:03 +0000 (00:45 +0000)]
make _eglSetConfigAtrib() a static function, and rename it

19 years agoremove MESA suffix from _eglInitScreenSurface, use swAlpha value
Brian Paul [Mon, 16 May 2005 00:32:09 +0000 (00:32 +0000)]
remove MESA suffix from _eglInitScreenSurface, use swAlpha value

19 years agominor tweaks
Brian Paul [Mon, 16 May 2005 00:31:29 +0000 (00:31 +0000)]
minor tweaks

19 years agofix GetRow parameters (Nicolai Haehnle)
Brian Paul [Sun, 15 May 2005 21:26:11 +0000 (21:26 +0000)]
fix GetRow parameters (Nicolai Haehnle)

19 years agoA few egl patches needed for glitz, mainly config BITS
Jon Smirl [Sun, 15 May 2005 04:00:59 +0000 (04:00 +0000)]
A few egl patches needed for glitz, mainly config BITS

19 years agoMake gleans polyoffset test happy.
Aapo Tahkola [Sat, 14 May 2005 17:41:57 +0000 (17:41 +0000)]
Make gleans polyoffset test happy.

19 years agoDont assume GLbooleans are ones when true.
Aapo Tahkola [Sat, 14 May 2005 16:52:32 +0000 (16:52 +0000)]
Dont assume GLbooleans are ones when true.

19 years agoCleanup blend state generation.
Nicolai Haehnle [Sat, 14 May 2005 14:56:25 +0000 (14:56 +0000)]
Cleanup blend state generation.
Do not set the NO_SEPARATE bit, as it causes problems with some
combinations of blend functions.

19 years agoAdd empty placeholder for eglCopyContextMESA
Jon Smirl [Sat, 14 May 2005 14:54:38 +0000 (14:54 +0000)]
Add empty placeholder for eglCopyContextMESA

19 years agoThe kernel doesn't like command buffers over 64KB, so we don't
Nicolai Haehnle [Sat, 14 May 2005 14:51:17 +0000 (14:51 +0000)]
The kernel doesn't like command buffers over 64KB, so we don't
allocate buffers bigger than that.

19 years agoFix compiler warning about missing parameter list
Jon Smirl [Sat, 14 May 2005 14:11:11 +0000 (14:11 +0000)]
Fix compiler warning about missing parameter list

19 years agoRemove dead span functions code.
Nicolai Haehnle [Sat, 14 May 2005 12:19:05 +0000 (12:19 +0000)]
Remove dead span functions code.

19 years agoFix span functions for stencil buffer access.
Nicolai Haehnle [Sat, 14 May 2005 11:43:04 +0000 (11:43 +0000)]
Fix span functions for stencil buffer access.

19 years agoDon't print debug messages unless the user explicitly requested them
Nicolai Haehnle [Sat, 14 May 2005 09:17:28 +0000 (09:17 +0000)]
Don't print debug messages unless the user explicitly requested them
using the RADEON_DEBUG environment variable.

19 years agoAdd forgotten demo2.c
Jon Smirl [Sat, 14 May 2005 03:51:18 +0000 (03:51 +0000)]
Add forgotten demo2.c
VS: ----------------------------------------------------------------------

19 years agoFix compile error in demo egl driver
Jon Smirl [Sat, 14 May 2005 03:49:55 +0000 (03:49 +0000)]
Fix compile error in demo egl driver

19 years agoForgot to add fb_egl.c
Jon Smirl [Sat, 14 May 2005 03:22:48 +0000 (03:22 +0000)]
Forgot to add fb_egl.c

19 years agoMake software fallbacks work again:
Nicolai Haehnle [Fri, 13 May 2005 21:29:17 +0000 (21:29 +0000)]
Make software fallbacks work again:
We need to plug in swsetup functions into the TNL module's callbacks.
Also, resize the framebuffer size when the drawable size changes.

19 years agoRemove quiescence sequence from r300ClearBuffer.
Nicolai Haehnle [Fri, 13 May 2005 21:00:11 +0000 (21:00 +0000)]
Remove quiescence sequence from r300ClearBuffer.

The DRM is responsible for emitting this quiescence sequence when
appropriate.

19 years agoFirst attempt at getting egl support up on dumb framebuffer.
Jon Smirl [Fri, 13 May 2005 18:31:35 +0000 (18:31 +0000)]
First attempt at getting egl support up on dumb framebuffer.
Seems to be mostly working. Not all of egl API is implemented.

19 years agoPatch from Jeff Smith:
Nicolai Haehnle [Fri, 13 May 2005 18:03:24 +0000 (18:03 +0000)]
Patch from Jeff Smith:
The type of vertex data is opaque in the emit_* functions, so use GLvoid*
instead of char*. This also eliminates some compiler warnings.

19 years agoPatch from Jeff Smith:
Nicolai Haehnle [Fri, 13 May 2005 17:44:22 +0000 (17:44 +0000)]
Patch from Jeff Smith:
Fix a WARN_ONCE format string.

19 years agoRemove MAX_VISUAL limitations of 100. If running dual head this can
Alan Hourihane [Fri, 13 May 2005 11:56:13 +0000 (11:56 +0000)]
Remove MAX_VISUAL limitations of 100. If running dual head this can
be easily consumed. There are no limitations now and the VisualTable
is realloced when necessary.

19 years agoCalculate render inputs for tcl stage correctly (hint: they aren't the
Keith Whitwell [Fri, 13 May 2005 09:15:50 +0000 (09:15 +0000)]
Calculate render inputs for tcl stage correctly (hint: they aren't the
same as tnl->render_inputs).  Fixes recent tcl problems.

19 years agoRemove some unused structure fields, add some comments, and ifdef out some
Ian Romanick [Thu, 12 May 2005 23:15:38 +0000 (23:15 +0000)]
Remove some unused structure fields, add some comments, and ifdef out some
dead code.  This is just some clean-up work which should not have any
functional impact.

19 years agonew MESA_DEBUG option: disassem
Keith Whitwell [Thu, 12 May 2005 10:28:43 +0000 (10:28 +0000)]
new MESA_DEBUG option: disassem

19 years agoRein in debug slightly
Keith Whitwell [Thu, 12 May 2005 10:22:29 +0000 (10:22 +0000)]
Rein in debug slightly

19 years agoTurn disassem off (oops).
Keith Whitwell [Thu, 12 May 2005 09:31:33 +0000 (09:31 +0000)]
Turn disassem off (oops).

19 years agoAdd check for mask == NULL to the one routine missing it.
Keith Whitwell [Thu, 12 May 2005 09:07:12 +0000 (09:07 +0000)]
Add check for mask == NULL to the one routine missing it.

19 years agoWhen lighting is enabled, but no lights are enabled, the scenecolor
Keith Whitwell [Thu, 12 May 2005 08:54:13 +0000 (08:54 +0000)]
When lighting is enabled, but no lights are enabled, the scenecolor
becomes the result of lighting.  When lighting is disabled,
pass-through incoming color value.  Likewise, pass through incoming
texture values.  (Based on patch by Aapo Tahkola)

Add compile-time configuration to switch between DP4 and MUL/MAD for
matrix-vector multiplications.

19 years agofix warnings in r300_texstate.c (Jeff Smith)
Ben Skeggs [Thu, 12 May 2005 03:53:18 +0000 (03:53 +0000)]
fix warnings in r300_texstate.c (Jeff Smith)

19 years agoThe "P" suffix on APIENTRY and GLAPIENTRY is to be used for pointers to
Karl Schultz [Wed, 11 May 2005 22:01:20 +0000 (22:01 +0000)]
The "P" suffix on APIENTRY and GLAPIENTRY is to be used for pointers to
functions, not for functions that return pointers.  Restore protoype
for glGetString back to its correct form.

19 years agoVBOs.
Aapo Tahkola [Wed, 11 May 2005 17:28:13 +0000 (17:28 +0000)]
VBOs.

19 years agoDon't let FragmentProgram._Active influence choice of vertex vs pixel
Keith Whitwell [Wed, 11 May 2005 16:30:02 +0000 (16:30 +0000)]
Don't let FragmentProgram._Active influence choice of vertex vs pixel
fog.

19 years agoPreviously in TXP and TEX instructions, lambda was passed to
Keith Whitwell [Wed, 11 May 2005 16:28:33 +0000 (16:28 +0000)]
Previously in TXP and TEX instructions, lambda was passed to
fetch_texel as zero, but I believe this is incorrect.  The spec uses a
pseudocode function:

      vec4 TextureSample(float s, float t, float r, float lodBias,
                         int texImageUnit, enum texTarget);

to specify the behaviour of TEX, TXB and TXP instructions.  For TEX
and TXP, lodBias is passed as zero, TXB is passed with texcoord[4].  In our code we have

      static void
      fetch_texel( GLcontext *ctx, const GLfloat texcoord[4], GLfloat lambda,
                   GLuint unit, GLfloat color[4] )

and were passing zero and a biased lambda value respectively.  The
difference is that TextureSample() would add in the lambda term
itself, while in our code the caller is expected to do this.  Thus in
the TEX and TXP cases, it is necessary to pass an unbiased lambda
value for things to work out correctly.

19 years agoUse _mesa_memset rather than memset
Keith Whitwell [Wed, 11 May 2005 15:18:59 +0000 (15:18 +0000)]
Use _mesa_memset rather than memset

19 years agoDon't let FragmentProgram._Active influence choice of vertex vs pixel
Keith Whitwell [Wed, 11 May 2005 15:18:23 +0000 (15:18 +0000)]
Don't let FragmentProgram._Active influence choice of vertex vs pixel
fog.

19 years agoTest for texcoord[3] == zero before dividing. Not so sure about this
Keith Whitwell [Wed, 11 May 2005 15:17:31 +0000 (15:17 +0000)]
Test for texcoord[3] == zero before dividing.  Not so sure about this
test - if texcoord[3] is zero, we'd probably be fine except for an
ASSERT in IROUND_POS() which gets triggered by the inf values
created.

19 years agoFix glean/conform problems. Don't generate so much output when
Keith Whitwell [Wed, 11 May 2005 15:16:35 +0000 (15:16 +0000)]
Fix glean/conform problems.  Don't generate so much output when
disassembling.

19 years agoFix valgrind complaint, conform vertex order test.
Keith Whitwell [Wed, 11 May 2005 10:30:13 +0000 (10:30 +0000)]
Fix valgrind complaint, conform vertex order test.

19 years agoRename temp_flag to temp_in_use. Use ctx->Const.MaxVertexProgramTemps
Keith Whitwell [Wed, 11 May 2005 08:34:19 +0000 (08:34 +0000)]
Rename temp_flag to temp_in_use.  Use ctx->Const.MaxVertexProgramTemps
rather than MAX_NV_VERTEX_PROGRAM_TEMPS and deal with this possibly
being greater than 32.

19 years agoFix logic for allocating texture temporaries (Ben Skeggs).
Keith Whitwell [Wed, 11 May 2005 08:30:23 +0000 (08:30 +0000)]
Fix logic for allocating texture temporaries (Ben Skeggs).
Rename temp_flag, tex_temp_flag to make this clearer.
Respect ctx->Const.MaxFragmentProgramTemps limit.

19 years agoint -> size_t to fix compile on LP64.
Adam Jackson [Wed, 11 May 2005 01:33:50 +0000 (01:33 +0000)]
int -> size_t to fix compile on LP64.

19 years agoEnsure programs don't overflow allocated instruction store.
Keith Whitwell [Tue, 10 May 2005 18:24:50 +0000 (18:24 +0000)]
Ensure programs don't overflow allocated instruction store.

19 years agoFix some valgrind complaints
Keith Whitwell [Tue, 10 May 2005 18:22:19 +0000 (18:22 +0000)]
Fix some valgrind complaints

19 years agofix some valgrind complaints
Keith Whitwell [Tue, 10 May 2005 18:10:32 +0000 (18:10 +0000)]
fix some valgrind complaints

19 years agoImproved detection of program changes.
Keith Whitwell [Tue, 10 May 2005 18:10:00 +0000 (18:10 +0000)]
Improved detection of program changes.

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

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.