profile/ivi/mesa.git
18 years agoCoverity #459: Silly off-by-one error.
Adam Jackson [Mon, 3 Apr 2006 00:18:03 +0000 (00:18 +0000)]
Coverity #459: Silly off-by-one error.

18 years agoCoverity #468: Fill in the rest of the error_list to match the error codes
Adam Jackson [Mon, 3 Apr 2006 00:00:53 +0000 (00:00 +0000)]
Coverity #468: Fill in the rest of the error_list to match the error codes
defined in glxproto.h.  Avoids reading semi-random memory (and probably
crashing) when calling __glXErrorString().

18 years agoCoverity #476: Avoid walking off the end of ->vtx.attrsz, it's declared to
Adam Jackson [Sun, 2 Apr 2006 23:51:30 +0000 (23:51 +0000)]
Coverity #476: Avoid walking off the end of ->vtx.attrsz, it's declared to
be _TNL_ATTRIB_MAX long so that's not a valid index (woo zero based
indexing).

This code still looks wrong though, the asymmetry between _tnl_copy_to_current
and _tnl_copy_from_current has me worried.

18 years agoCoverity #567: Fix a memory leak on a failure path.
Adam Jackson [Sun, 2 Apr 2006 23:17:49 +0000 (23:17 +0000)]
Coverity #567: Fix a memory leak on a failure path.

18 years agoCoverity #650: Fix a memory leak when near OOM.
Adam Jackson [Sun, 2 Apr 2006 23:15:35 +0000 (23:15 +0000)]
Coverity #650: Fix a memory leak when near OOM.

18 years agoAssorted updates.
Daniel Borca [Sat, 1 Apr 2006 13:38:45 +0000 (13:38 +0000)]
Assorted updates.

18 years agoInitialize renderbuffer size.
Daniel Borca [Sat, 1 Apr 2006 13:26:31 +0000 (13:26 +0000)]
Initialize renderbuffer size.

18 years agoThese messages really should be printed all the time, users want to
Dave Airlie [Sat, 1 Apr 2006 04:40:01 +0000 (04:40 +0000)]
These messages really should be printed all the time, users want to
know this not have to set debug for it

18 years agoadded MD5 checksums for 6.5 files
Brian Paul [Sat, 1 Apr 2006 02:29:40 +0000 (02:29 +0000)]
added MD5 checksums for 6.5 files

18 years agoadded 6.5 relnotes
Brian Paul [Sat, 1 Apr 2006 01:49:31 +0000 (01:49 +0000)]
added 6.5 relnotes

18 years agoDon't index box by the box's index within numClipRects; just dereference it.
Eric Anholt [Sat, 1 Apr 2006 00:57:57 +0000 (00:57 +0000)]
Don't index box by the box's index within numClipRects; just dereference it.
Fixes drawing with more than one cliprect. (Keith Packard)

18 years agoCall driUpdateFramebufferSize when we've found an updated DRI drawable stamp,
Eric Anholt [Sat, 1 Apr 2006 00:55:02 +0000 (00:55 +0000)]
Call driUpdateFramebufferSize when we've found an updated DRI drawable stamp,
like other drivers.  Failure to do so resulted in incorrect buffer sizes for
resized windows.

18 years ago6.5 updates
Brian Paul [Fri, 31 Mar 2006 23:10:21 +0000 (23:10 +0000)]
6.5 updates

18 years agoDMesa now uses OSMesa as a back-end.
Daniel Borca [Fri, 31 Mar 2006 20:53:12 +0000 (20:53 +0000)]
DMesa now uses OSMesa as a back-end.

18 years agoRemoved empty arrays.
Daniel Borca [Fri, 31 Mar 2006 20:49:55 +0000 (20:49 +0000)]
Removed empty arrays.

18 years agoEnough testing already
Aapo Tahkola [Fri, 31 Mar 2006 18:46:33 +0000 (18:46 +0000)]
Enough testing already

18 years agobump version/date
Brian Paul [Fri, 31 Mar 2006 17:31:22 +0000 (17:31 +0000)]
bump version/date

18 years agoDave Reveman's patch for GLX_MESA_copy_sub_buffer support
Brian Paul [Fri, 31 Mar 2006 15:48:04 +0000 (15:48 +0000)]
Dave Reveman's patch for GLX_MESA_copy_sub_buffer support

18 years agoFix the fetch_texel_ci8() code to deal with floating point color palettes.
Brian Paul [Fri, 31 Mar 2006 15:22:09 +0000 (15:22 +0000)]
Fix the fetch_texel_ci8() code to deal with floating point color palettes.
Fixes Quake on Windows bug.  (Karl Schultz)

18 years agofree rs300 and ban r350(according to r300.sf.net)
Aapo Tahkola [Fri, 31 Mar 2006 14:11:41 +0000 (14:11 +0000)]
free rs300 and ban r350(according to r300.sf.net)

18 years agomake u_list adjustable
Aapo Tahkola [Fri, 31 Mar 2006 10:10:45 +0000 (10:10 +0000)]
make u_list adjustable

18 years agoupdated again for 6.5.
Karl Schultz [Fri, 31 Mar 2006 06:54:11 +0000 (06:54 +0000)]
updated again for 6.5.

18 years agowarn about broken dxt 3/5
Aapo Tahkola [Fri, 31 Mar 2006 03:54:36 +0000 (03:54 +0000)]
warn about broken dxt 3/5

18 years agoDont rely on writebacks
Aapo Tahkola [Fri, 31 Mar 2006 03:50:29 +0000 (03:50 +0000)]
Dont rely on writebacks

18 years agodisable r300 chips. R300_FORCE_R300 to force
Aapo Tahkola [Fri, 31 Mar 2006 03:16:39 +0000 (03:16 +0000)]
disable r300 chips. R300_FORCE_R300 to force

18 years agoMore meaningful warning.
Aapo Tahkola [Fri, 31 Mar 2006 03:01:28 +0000 (03:01 +0000)]
More meaningful warning.

18 years agoThe pitches of the driRenderbuffers are in bytes, so no need to multiply by cpp.
Eric Anholt [Thu, 30 Mar 2006 22:44:51 +0000 (22:44 +0000)]
The pitches of the driRenderbuffers are in bytes, so no need to multiply by cpp.
Fixes software fallbacks. (Keith Packard)

18 years agoClean up data structures, finishing off some of the cleanup work suggested by Brian...
Karl Schultz [Thu, 30 Mar 2006 21:53:23 +0000 (21:53 +0000)]
Clean up data structures, finishing off some of the cleanup work suggested by Brian.  Now also creating two renderbuffers, so apps can now switch with glDrawBuffer.

18 years agoClarify which version of Mesa we're talking about
Adam Jackson [Thu, 30 Mar 2006 19:26:54 +0000 (19:26 +0000)]
Clarify which version of Mesa we're talking about

18 years agoRevert my change from 1.37 as being bogus (see ensuing list discussion for
Adam Jackson [Thu, 30 Mar 2006 19:23:38 +0000 (19:23 +0000)]
Revert my change from 1.37 as being bogus (see ensuing list discussion for
rationale).

18 years agoUpdate the install docs to make explicit note of libdrm version dependency.
Adam Jackson [Thu, 30 Mar 2006 19:21:20 +0000 (19:21 +0000)]
Update the install docs to make explicit note of libdrm version dependency.
Change pdx.fd.o to {anon,}cvs.fd.o as appropriate.

18 years agoStyle fix, drop the explicit -ldrm from the link line.
Adam Jackson [Thu, 30 Mar 2006 19:20:25 +0000 (19:20 +0000)]
Style fix, drop the explicit -ldrm from the link line.

18 years agoFix logic error in viewport function so that we still resize the buffers if the viewp...
Karl Schultz [Thu, 30 Mar 2006 18:03:41 +0000 (18:03 +0000)]
Fix logic error in viewport function so that we still resize the buffers if the viewport and the window both change to the same new size.  This lets the gloss demo work with the -f option.

18 years agoWhen creating front/back renderbuffers, init the Red/Green/Blue/AlphaBits fields
Brian Paul [Thu, 30 Mar 2006 16:33:35 +0000 (16:33 +0000)]
When creating front/back renderbuffers, init the Red/Green/Blue/AlphaBits fields

18 years agoInit the Red/Green/Blue/Alpha/Depth/StencilBits fields in driNewRenderbuffer()
Brian Paul [Thu, 30 Mar 2006 16:32:16 +0000 (16:32 +0000)]
Init the Red/Green/Blue/Alpha/Depth/StencilBits fields in driNewRenderbuffer()

18 years agocomments regarding assertions
Brian Paul [Thu, 30 Mar 2006 16:29:41 +0000 (16:29 +0000)]
comments regarding assertions

18 years agoUse [][3] for write_rgb_span_16
Karl Schultz [Thu, 30 Mar 2006 16:26:26 +0000 (16:26 +0000)]
Use [][3] for write_rgb_span_16

18 years agosome comments for Darwin
Brian Paul [Thu, 30 Mar 2006 14:28:28 +0000 (14:28 +0000)]
some comments for Darwin

18 years agoadded glfbdev.h to MAIN_FILES
Brian Paul [Thu, 30 Mar 2006 14:27:25 +0000 (14:27 +0000)]
added glfbdev.h to MAIN_FILES

18 years agofix bad call to FindLine()
Brian Paul [Thu, 30 Mar 2006 14:26:29 +0000 (14:26 +0000)]
fix bad call to FindLine()

18 years agoadded -f option for full-screeen
Brian Paul [Thu, 30 Mar 2006 14:25:54 +0000 (14:25 +0000)]
added -f option for full-screeen

18 years agopress '0' for glDrawBuffer(GL_NONE)
Brian Paul [Thu, 30 Mar 2006 14:24:58 +0000 (14:24 +0000)]
press '0' for glDrawBuffer(GL_NONE)

18 years agoXMesaDrawLine macro, not currently used
Brian Paul [Thu, 30 Mar 2006 14:20:26 +0000 (14:20 +0000)]
XMesaDrawLine macro, not currently used

18 years agoFixes from Brian to help migrate to render buffer DD interfaces. Also fix bug in...
Karl Schultz [Thu, 30 Mar 2006 07:58:24 +0000 (07:58 +0000)]
Fixes from Brian to help migrate to render buffer DD interfaces.  Also fix bug in the viewport function that was using the viewport size to resize the buffer, when it should have been using the window size.  Fix bug in write_rgb_span_32 where the incoming pixel data parameter was coded as a [][4] instead of [][3].  Now all the demos work correctly except singlebuffer.

18 years agoFixes from Brian
Karl Schultz [Thu, 30 Mar 2006 07:53:15 +0000 (07:53 +0000)]
Fixes from Brian

18 years agoFix up some incorrect pointers and clear screen
Dave Airlie [Thu, 30 Mar 2006 05:47:08 +0000 (05:47 +0000)]
Fix up some incorrect pointers and clear screen

18 years agoadd initial miniglx files for i915, not integrated yet
Dave Airlie [Thu, 30 Mar 2006 04:33:58 +0000 (04:33 +0000)]
add initial miniglx files for i915, not integrated yet

18 years agoUpdated for Mesa 6.5
Karl Schultz [Wed, 29 Mar 2006 23:53:43 +0000 (23:53 +0000)]
Updated for Mesa 6.5

18 years agoAdd -ansi -pedantic flags to OPT_FLAGS. This got lost at some point. Good for catch...
Brian Paul [Wed, 29 Mar 2006 23:45:44 +0000 (23:45 +0000)]
Add -ansi -pedantic flags to OPT_FLAGS.  This got lost at some point.  Good for catching sloppy coding.

18 years agoUpdate the _WindowMap matrix in _mesa_set_viewport() and _mesa_DepthRange().
Brian Paul [Wed, 29 Mar 2006 23:44:31 +0000 (23:44 +0000)]
Update the _WindowMap matrix in _mesa_set_viewport() and _mesa_DepthRange().
This is a temporary fix for the DRI drivers.
Should really only have to update the matrix via _mesa_update_state().

18 years agoput braces around RENDER_SPAN macro when called, not when defined. Fixes -pedantic...
Brian Paul [Wed, 29 Mar 2006 23:42:44 +0000 (23:42 +0000)]
put braces around RENDER_SPAN macro when called, not when defined.  Fixes -pedantic warnings in x11 driver

18 years agofix GETPROCADDRESS usage, remove carriage return chars (bug 6430)
Brian Paul [Wed, 29 Mar 2006 23:20:49 +0000 (23:20 +0000)]
fix GETPROCADDRESS usage, remove carriage return chars (bug 6430)

18 years agos/glslnose.c/glslnoise/ (bug 6430)
Brian Paul [Wed, 29 Mar 2006 23:18:13 +0000 (23:18 +0000)]
s/glslnose.c/glslnoise/ (bug 6430)

18 years agoFixes to silence warnings in code generated by glapi scripts.
Kristian Høgsberg [Wed, 29 Mar 2006 22:32:38 +0000 (22:32 +0000)]
Fixes to silence warnings in code generated by glapi scripts.

18 years agoAdd newest source code files to project.
Karl Schultz [Wed, 29 Mar 2006 20:55:48 +0000 (20:55 +0000)]
Add newest source code files to project.

18 years agoadded some no-op virtual destructors to silence g++ 4.0.0 warnings
Brian Paul [Wed, 29 Mar 2006 18:54:00 +0000 (18:54 +0000)]
added some no-op virtual destructors to silence g++ 4.0.0 warnings

18 years agofixes from John Shell (bug 6339)
Brian Paul [Wed, 29 Mar 2006 18:46:46 +0000 (18:46 +0000)]
fixes from John Shell (bug 6339)

18 years agominor clean-up
Brian Paul [Wed, 29 Mar 2006 18:41:19 +0000 (18:41 +0000)]
minor clean-up

18 years agoFP textures and fixes (Ewald Snel)
Brian Paul [Wed, 29 Mar 2006 15:21:01 +0000 (15:21 +0000)]
FP textures and fixes (Ewald Snel)

18 years agofix components initialization in two places (Ewald Snel)
Brian Paul [Wed, 29 Mar 2006 15:17:57 +0000 (15:17 +0000)]
fix components initialization in two places (Ewald Snel)

18 years agomove NumNativeAlu/TexInstruction assignments (Ewald Snel)
Brian Paul [Wed, 29 Mar 2006 15:15:37 +0000 (15:15 +0000)]
move NumNativeAlu/TexInstruction assignments (Ewald Snel)

18 years ago Committing in .
Jouk Jansen [Wed, 29 Mar 2006 12:09:08 +0000 (12:09 +0000)]
 Committing in .

 Removing <CR>

 Modified Files:
  Mesa/src/mesa/main/fog.c Mesa/src/mesa/main/hint.c
  Mesa/src/mesa/main/mtypes.h
 ----------------------------------------------------------------------

18 years agoprep for 6.5 release
Brian Paul [Wed, 29 Mar 2006 04:53:02 +0000 (04:53 +0000)]
prep for 6.5 release

18 years agoNew code for rendering to depth/stencil textures.
Brian Paul [Wed, 29 Mar 2006 04:51:03 +0000 (04:51 +0000)]
New code for rendering to depth/stencil textures.
Re-org of the renderbuffer wrapper code.

18 years agonew tests for GL_DEPTH_STENCIL_EXT
Brian Paul [Wed, 29 Mar 2006 04:48:21 +0000 (04:48 +0000)]
new tests for GL_DEPTH_STENCIL_EXT

18 years agoa few new assertions
Brian Paul [Wed, 29 Mar 2006 04:47:34 +0000 (04:47 +0000)]
a few new assertions

18 years agoWindows makefile to easily build all demo programs.
Karl Schultz [Wed, 29 Mar 2006 04:02:44 +0000 (04:02 +0000)]
Windows makefile to easily build all demo programs.

18 years agoRepair corrupted file and remove rogue 'test' project.
Karl Schultz [Wed, 29 Mar 2006 04:01:25 +0000 (04:01 +0000)]
Repair corrupted file and remove rogue 'test' project.

18 years agofix a GLuint vs GLushort test, new assertions
Brian Paul [Wed, 29 Mar 2006 04:01:05 +0000 (04:01 +0000)]
fix a GLuint vs GLushort test, new assertions

18 years agoMove the computation of the viewport matrix into a new update_viewport_matrix()
Brian Paul [Wed, 29 Mar 2006 03:59:34 +0000 (03:59 +0000)]
Move the computation of the viewport matrix into a new update_viewport_matrix()
function since the matrix depends on the viewport params and the framebuffer's
depth buffer resolution.
Fixes some renderbuffer / depth range issues.
This simplifies the _mesa_set_viewport() and _mesa_DepthRange() functions too.

18 years agoUndef a conflicting symbol in Windows.
Karl Schultz [Wed, 29 Mar 2006 03:42:32 +0000 (03:42 +0000)]
Undef a conflicting symbol in Windows.

18 years agoadd showbuffer.[ch] which could be in this dir after the targets are built.
Karl Schultz [Wed, 29 Mar 2006 03:41:38 +0000 (03:41 +0000)]
add showbuffer.[ch] which could be in this dir after the targets are built.

18 years agoUpdate for new Mesa entry points. I need to change the python script that generates...
Karl Schultz [Wed, 29 Mar 2006 02:12:31 +0000 (02:12 +0000)]
Update for new Mesa entry points.  I need to change the python script that generates this file to the new XML scheme, but for now, a manual update is OK.

18 years agoRemove unneeded includes of time.h
Karl Schultz [Wed, 29 Mar 2006 02:09:47 +0000 (02:09 +0000)]
Remove unneeded includes of time.h

18 years agoMatch pixel addresses with `compute_row_addresses' in RGB mode (also obey RGB/UNSIGNE...
Daniel Borca [Tue, 28 Mar 2006 21:40:14 +0000 (21:40 +0000)]
Match pixel addresses with `compute_row_addresses' in RGB mode (also obey RGB/UNSIGNED_BYTE rule).

18 years agofix missing *_STATECHANGE in *UpdateViewportOffset for radeon, r200 and r300 (reporte...
Roland Scheidegger [Tue, 28 Mar 2006 17:22:57 +0000 (17:22 +0000)]
fix missing *_STATECHANGE in *UpdateViewportOffset for radeon, r200 and r300 (reported by Jim Duchek). Fix some potential problems with strict-aliasing with r200 and radeon drivers in *UpdateViewportOffset, *PolygonOffset and *UpdateWindow functions (some compiler warnings about strict-aliasing remain in the codegen vertex code, and there may be more problems unnoticed by the compiler).

18 years agoupdated comment about framebuffer's Visual field
Brian Paul [Tue, 28 Mar 2006 15:28:00 +0000 (15:28 +0000)]
updated comment about framebuffer's Visual field

18 years agoadded known issue: render to depth textures not working
Brian Paul [Tue, 28 Mar 2006 15:25:44 +0000 (15:25 +0000)]
added known issue: render to depth textures not working

18 years agoupdate conditional for render to GL_DEPTH_STENCIL texture, check for valid teximage...
Brian Paul [Tue, 28 Mar 2006 15:24:50 +0000 (15:24 +0000)]
update conditional for render to GL_DEPTH_STENCIL texture, check for valid teximage before calling ctx->Driver.RenderTexture()

18 years agoa little code movement so we don't make invalid casts from gl_renderbuffers to xmesa_...
Brian Paul [Tue, 28 Mar 2006 15:21:44 +0000 (15:21 +0000)]
a little code movement so we don't make invalid casts from gl_renderbuffers to xmesa_renderbuffers

18 years agofix #6072 (Keith Whitwell)
Aapo Tahkola [Tue, 28 Mar 2006 10:26:34 +0000 (10:26 +0000)]
fix #6072 (Keith Whitwell)

18 years agoRevert merge of new/experimental code from texmem branch.
Keith Whitwell [Tue, 28 Mar 2006 07:40:57 +0000 (07:40 +0000)]
Revert merge of new/experimental code from texmem branch.

18 years agoenable GL_ARB_half_float_pixel, was GL_MESAX_half_float_pixel
Brian Paul [Tue, 28 Mar 2006 01:23:43 +0000 (01:23 +0000)]
enable GL_ARB_half_float_pixel, was GL_MESAX_half_float_pixel

18 years agocomment about byteswapping in _mesa_unpack_depth_span()
Brian Paul [Tue, 28 Mar 2006 01:22:48 +0000 (01:22 +0000)]
comment about byteswapping in _mesa_unpack_depth_span()

18 years agomake allow_large_textures 1 by default for radeon and r200, and consequently enable...
Roland Scheidegger [Mon, 27 Mar 2006 23:53:53 +0000 (23:53 +0000)]
make allow_large_textures 1 by default for radeon and r200, and consequently enable all texture units by default on those cards (3 for radeon, 6 for r200). Fix the usually forgotten DRIVER_DATE accordingly.

18 years agoremove unnecessary typedefs causing compiler warnings
Roland Scheidegger [Mon, 27 Mar 2006 23:34:53 +0000 (23:34 +0000)]
remove unnecessary typedefs causing compiler warnings

18 years agoDisable `hidden' attribute for DJGPP
Daniel Borca [Mon, 27 Mar 2006 17:34:31 +0000 (17:34 +0000)]
Disable `hidden' attribute for DJGPP

18 years agoPutRowRGB was not initialized for OSMESA_RGB_565
Daniel Borca [Mon, 27 Mar 2006 17:32:22 +0000 (17:32 +0000)]
PutRowRGB was not initialized for OSMESA_RGB_565

18 years agoFixup makefile for solo non-egl
Dave Airlie [Mon, 27 Mar 2006 00:07:21 +0000 (00:07 +0000)]
Fixup makefile for solo non-egl

18 years agomerge from texman branch
Brian Paul [Sun, 26 Mar 2006 05:22:17 +0000 (05:22 +0000)]
merge from texman branch

18 years agofix some PFNGL* typedefs
Brian Paul [Sun, 26 Mar 2006 05:09:03 +0000 (05:09 +0000)]
fix some PFNGL* typedefs

18 years agoremove carriage returns
Brian Paul [Sat, 25 Mar 2006 22:52:39 +0000 (22:52 +0000)]
remove carriage returns

18 years agofix issue in _mesa_free_framebuffer_data()
Brian Paul [Sat, 25 Mar 2006 17:57:52 +0000 (17:57 +0000)]
fix issue in _mesa_free_framebuffer_data()

18 years agocheck for incomplete FBO in _mesa_Clear()
Brian Paul [Sat, 25 Mar 2006 16:16:37 +0000 (16:16 +0000)]
check for incomplete FBO in _mesa_Clear()

18 years agoClean up the recent code related to texture_override(). Pass params in a
Brian Paul [Fri, 24 Mar 2006 23:53:50 +0000 (23:53 +0000)]
Clean up the recent code related to texture_override().  Pass params in a
more logical order.
Remove a mess of stray ^M chars.
Fix a bug when checking if the texture object's format is GL_COLOR_INDEX
or GL_DEPTH_COMPONENT.  This fixes a segfault when GL_TEXTURE_BASE_LEVEL!=0.

18 years agolots of debug options, some code movement, etc
Brian Paul [Fri, 24 Mar 2006 23:17:06 +0000 (23:17 +0000)]
lots of debug options, some code movement, etc

18 years agoadded some missing formats in _mesa_source/dest_buffer_exists()
Brian Paul [Fri, 24 Mar 2006 22:53:00 +0000 (22:53 +0000)]
added some missing formats in _mesa_source/dest_buffer_exists()

18 years agoMake ARB_vp backends happy with nv arl
Aapo Tahkola [Fri, 24 Mar 2006 16:35:08 +0000 (16:35 +0000)]
Make ARB_vp backends happy with nv arl

18 years agosecondary color fixes.
Aapo Tahkola [Fri, 24 Mar 2006 16:33:34 +0000 (16:33 +0000)]
secondary color fixes.

18 years agoAdded -l option for explicit locking around Xlib and GLX calls in
Brian Paul [Thu, 23 Mar 2006 17:17:23 +0000 (17:17 +0000)]
Added -l option for explicit locking around Xlib and GLX calls in
threaded code.  Seems to improve reliability quite a bit.