mesa.git
17 years agor300: Added _mesa_copy_instructions.
Oliver McFadden [Thu, 15 Mar 2007 20:55:30 +0000 (20:55 +0000)]
r300: Added _mesa_copy_instructions.

17 years agor300: Renamed r300_vertexprog.c to r300_vertprog.c
Oliver McFadden [Thu, 15 Mar 2007 20:39:07 +0000 (20:39 +0000)]
r300: Renamed r300_vertexprog.c to r300_vertprog.c

17 years agor300: Use _mesa_alloc_instructions/_mesa_init_instructions instead of malloc.
Oliver McFadden [Thu, 15 Mar 2007 19:49:10 +0000 (19:49 +0000)]
r300: Use _mesa_alloc_instructions/_mesa_init_instructions instead of malloc.

Note that insert_wpos in r300_vertexprog.c is still a little flaky and could be
improved.

17 years agor300: Updated R300 to use the new SWIZZLE macros.
Oliver McFadden [Thu, 15 Mar 2007 19:09:10 +0000 (19:09 +0000)]
r300: Updated R300 to use the new SWIZZLE macros.

17 years agor300: Fixed an unused variable warning and removed some cruft, too.
Oliver McFadden [Thu, 15 Mar 2007 18:44:29 +0000 (18:44 +0000)]
r300: Fixed an unused variable warning and removed some cruft, too.

17 years agor300: Fixed a printf conversion warning.
Oliver McFadden [Thu, 15 Mar 2007 18:29:13 +0000 (18:29 +0000)]
r300: Fixed a printf conversion warning.

17 years agor300: Fixed "no previous prototype for 'r300RefillCurrentDmaRegion'" warning.
Oliver McFadden [Thu, 15 Mar 2007 18:26:01 +0000 (18:26 +0000)]
r300: Fixed "no previous prototype for 'r300RefillCurrentDmaRegion'" warning.

17 years agoadded SWIZZLE_XXXX, YYYY, etc. macros
Brian [Thu, 15 Mar 2007 17:51:54 +0000 (11:51 -0600)]
added SWIZZLE_XXXX, YYYY, etc. macros

17 years agoCommitted Rune Petersen's fragment.position patch (Bug #10024) plus a few small
Oliver McFadden [Thu, 15 Mar 2007 17:35:34 +0000 (17:35 +0000)]
Committed Rune Petersen's fragment.position patch (Bug #10024) plus a few small
corrections.

17 years agono-op clear if buffer width or height is zero (bug 7205)
Brian [Thu, 15 Mar 2007 17:16:41 +0000 (11:16 -0600)]
no-op clear if buffer width or height is zero (bug 7205)

17 years agoadd some rb->Data null ptr checks (bug 7205)
Brian [Thu, 15 Mar 2007 17:11:41 +0000 (11:11 -0600)]
add some rb->Data null ptr checks (bug 7205)

17 years agoMerge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Thu, 15 Mar 2007 15:03:03 +0000 (09:03 -0600)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa

17 years agoimplement byteswapping for all multi-byte types in _mesa_pack_rgba_span_float(),...
Brian [Thu, 15 Mar 2007 15:02:14 +0000 (09:02 -0600)]
implement byteswapping for all multi-byte types in _mesa_pack_rgba_span_float(), bug 10298

17 years agoFix off by one error in immediate state packet size.
Keith Whitwell [Thu, 15 Mar 2007 10:27:47 +0000 (10:27 +0000)]
Fix off by one error in immediate state packet size.

17 years agopixelmap code simplification
Brian [Wed, 14 Mar 2007 20:56:39 +0000 (14:56 -0600)]
pixelmap code simplification

17 years agoRe-org of gl_pixel_attrib struct.
Brian [Wed, 14 Mar 2007 20:33:46 +0000 (14:33 -0600)]
Re-org of gl_pixel_attrib struct.

Reorder fields according to the order in which the pixel transfer operations
take place.  Improve comments.
Move the pixel maps out of gl_pixel_attrib since they're not supposed to be
pushed/popped by glPush/PopAttrib.
New gl_pixelmap and gl_pixelmaps structs to contain the pixelmaps.

17 years agoclear the b->frontxrb->drawable field in xmesa_free_buffer(), see bug 7205
Brian [Wed, 14 Mar 2007 18:52:53 +0000 (12:52 -0600)]
clear the b->frontxrb->drawable field in xmesa_free_buffer(), see bug 7205

17 years agoMerge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Wed, 14 Mar 2007 18:43:26 +0000 (12:43 -0600)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa

17 years agomove CLIENT_ID code in xmesa_delete_framebuffer(), see bug 7205
Brian [Wed, 14 Mar 2007 18:42:30 +0000 (12:42 -0600)]
move CLIENT_ID code in xmesa_delete_framebuffer(), see bug 7205

17 years agosync up t_vp_build.c brw_vs_tnl.c a bit
Roland Scheidegger [Tue, 13 Mar 2007 18:04:28 +0000 (19:04 +0100)]
sync up t_vp_build.c brw_vs_tnl.c a bit

Bring over the optimizations for fog and normalized spot dir
from t_vp_build.c to brw_vs_tnl.c. Likewise, port a fix for point size
calc from brw_vs_tnl.c to t_vp_build.c (use ABS(eyez) instead of -eyez). Leave
the now differing point size calcs alone though, not sure what's better (it's
basically MOV, ABS, MUL, DP3 vs. ABS, MAD, MAD).

17 years agoenable ARB_vertex_buffer_object for more dri drivers
Roland Scheidegger [Tue, 13 Mar 2007 16:43:21 +0000 (17:43 +0100)]
enable ARB_vertex_buffer_object for more dri drivers

ARB_vertex_buffer_object looks like a useful extension even for old chips.
The drivers should not need any code to be able to use this extension since
they just use mesa's vbo code anyway.
Newly enabled for i810, mach64, mga, r128, radeon, savage, sis and unichrome.

17 years agor300: Renamed the CACHE_CTLSTAT values to include UNKNOWN in the name; not
Oliver McFadden [Tue, 13 Mar 2007 14:46:45 +0000 (14:46 +0000)]
r300: Renamed the CACHE_CTLSTAT values to include UNKNOWN in the name; not

enough information is known about them to be sure as to what the values mean.

17 years agouse movdqu instead of movdqa for unaligned load avoiding a segfault (bug 10265)
Roland Scheidegger [Tue, 13 Mar 2007 12:44:23 +0000 (13:44 +0100)]
use movdqu instead of movdqa for unaligned load avoiding a segfault (bug 10265)

17 years agoAdd defines for the values written to R300_RB3D_ZCACHE_CTLSTAT.
Oliver McFadden [Tue, 13 Mar 2007 06:24:56 +0000 (06:24 +0000)]
Add defines for the values written to R300_RB3D_ZCACHE_CTLSTAT.

Note that just like the values written to R300_RB3D_DSTCACHE_CTLSTAT these
values are really unknown; ideally more reverse engineering should be done to
determine what these values mean and when they should be set.

17 years agoDocumented the value written for R300_TX_CNTL cache flush.
Oliver McFadden [Tue, 13 Mar 2007 06:08:36 +0000 (06:08 +0000)]
Documented the value written for R300_TX_CNTL cache flush.

17 years agomesa: _mesa_unpack_image
Xiang, Haihao [Tue, 13 Mar 2007 05:39:34 +0000 (13:39 +0800)]
mesa: _mesa_unpack_image

1. take packed pixel data as a component
2. fix for GL_BITMAP when compiling glTexImage, etc into
a display list:  a. flip byte if lsbFirst is true since
DefaultPacking->lsbFirst is false. b. handle SkipPixels

17 years agoCorrected values written to R300_RB3D_DSTCACHE_CTLSTAT to either
Oliver McFadden [Tue, 13 Mar 2007 01:31:38 +0000 (01:31 +0000)]
Corrected values written to R300_RB3D_DSTCACHE_CTLSTAT to either
R300_RB3D_DSTCACHE_02 or R300_RB3D_DSTCACHE_0A, rather than hexadecimal values.

17 years agoGuess another unknown register used for R300 pacification.
Oliver McFadden [Tue, 13 Mar 2007 00:48:17 +0000 (00:48 +0000)]
Guess another unknown register used for R300 pacification.

17 years agoi915tex: Don't crash when intel_fb->color_rb[i] is NULL.
Michel Dänzer [Mon, 12 Mar 2007 18:08:28 +0000 (19:08 +0100)]
i915tex: Don't crash when intel_fb->color_rb[i] is NULL.

This can be the case on some systems when running glxinfo.

17 years agoclean-up, simplify _mesa_image_row_stride()
Brian [Mon, 12 Mar 2007 15:49:44 +0000 (09:49 -0600)]
clean-up, simplify _mesa_image_row_stride()

17 years agotake GL_UNPACK_ALIGNMENT into account in _mesa_image_row_stride() for GL_BITMAP type...
Brian [Mon, 12 Mar 2007 15:35:44 +0000 (09:35 -0600)]
take GL_UNPACK_ALIGNMENT into account in _mesa_image_row_stride() for GL_BITMAP type (bug 10261)

17 years agor200: Simplify r200SetCliprects like radeonSetCliprects in radeon and r300.
Alan Swanson [Mon, 12 Mar 2007 09:03:01 +0000 (10:03 +0100)]
r200: Simplify r200SetCliprects like radeonSetCliprects in radeon and r300.

17 years agor200: Adapt cliprect fixes from r300.
Alan Swanson [Mon, 12 Mar 2007 08:59:45 +0000 (09:59 +0100)]
r200: Adapt cliprect fixes from r300.

17 years agoradeon: Adapt cliprect fixes from r300.
Alan Swanson [Mon, 12 Mar 2007 08:59:28 +0000 (09:59 +0100)]
radeon: Adapt cliprect fixes from r300.

17 years agofix for bug#10196
Xiang, Haihao [Sun, 11 Mar 2007 14:41:26 +0000 (22:41 +0800)]
fix for bug#10196

Compute half if LOCAL_VIEWER is enabled and the light is
a directional source.

17 years agoGuess another unknown register in R300 command buffer initialization. (Oliver McFadden)
Aapo Tahkola [Sun, 11 Mar 2007 09:47:03 +0000 (11:47 +0200)]
Guess another unknown register in R300 command buffer initialization. (Oliver McFadden)

17 years agoRenamed some of the unkXXX variables in the command buffer init
Oliver McFadden [Sun, 11 Mar 2007 01:18:27 +0000 (12:18 +1100)]
Renamed some of the unkXXX variables in the command buffer init
ialization code.

Note that there are still plenty of actual unknown variables left that should
probably be deciphered.

There are a number of things incomplete in the driver; the different polygon
offset modes (line, point, etc), the other texture filter, texture chroma key,
etc. These should probably be fixed in the future, or at least added to the TODO
list.

17 years agoFix TEXREL issues.
Brian [Sat, 10 Mar 2007 18:50:50 +0000 (11:50 -0700)]
Fix TEXREL issues.

Patch submitted by Christoph Brill.
See http://www.gentoo.org/proj/en/hardened/pic-fix-guide.xml

17 years agocheck for EXT_blend_equation_separate for 2.0
Brian [Sat, 10 Mar 2007 18:48:59 +0000 (11:48 -0700)]
check for EXT_blend_equation_separate for 2.0

17 years agoi915tex: Fix build against libdrm git...
Michel Dänzer [Sat, 10 Mar 2007 16:12:58 +0000 (17:12 +0100)]
i915tex: Fix build against libdrm git...

17 years agoi915tex: Fix intel_wait_flips being declared implicitly.
Michel Dänzer [Sat, 10 Mar 2007 15:40:22 +0000 (16:40 +0100)]
i915tex: Fix intel_wait_flips being declared implicitly.

17 years agoi915tex: Fix build against released version of libdrm.
Michel Dänzer [Sat, 10 Mar 2007 15:06:38 +0000 (16:06 +0100)]
i915tex: Fix build against released version of libdrm.

17 years agonouveau: fix nv04 swtcl.
Stephane Marchesin [Sat, 10 Mar 2007 12:46:26 +0000 (13:46 +0100)]
nouveau: fix nv04 swtcl.

17 years agonouveau: fix the nv04 swtcl code.
Stephane Marchesin [Sat, 10 Mar 2007 00:25:51 +0000 (01:25 +0100)]
nouveau: fix the nv04 swtcl code.

17 years agonouveau: oops don't debug by default.
Stephane Marchesin [Sat, 10 Mar 2007 00:24:32 +0000 (01:24 +0100)]
nouveau: oops don't debug by default.

17 years agonouveau: some fixes to the nv04 state code.
Stephane Marchesin [Sat, 10 Mar 2007 00:23:40 +0000 (01:23 +0100)]
nouveau: some fixes to the nv04 state code.

17 years agonouveau: add a fifo size debug check.
Stephane Marchesin [Sat, 10 Mar 2007 00:23:14 +0000 (01:23 +0100)]
nouveau: add a fifo size debug check.

17 years agoMerge branch 'i915tex-pageflip'
Michel Dänzer [Fri, 9 Mar 2007 23:19:17 +0000 (00:19 +0100)]
Merge branch 'i915tex-pageflip'

17 years agoi915tex: Wait for pending scheduled flips before switching vsync pipe.
Michel Dänzer [Fri, 9 Mar 2007 19:00:13 +0000 (20:00 +0100)]
i915tex: Wait for pending scheduled flips before switching vsync pipe.

This avoids hangs when the vblank sequence numbers are not in sync between
pipes, in particular when they run at different refresh rates.

17 years agoi915tex: Set intel_fb->vbl_waited to current instead of what we aimed for.
Michel Dänzer [Fri, 9 Mar 2007 18:56:55 +0000 (19:56 +0100)]
i915tex: Set intel_fb->vbl_waited to current instead of what we aimed for.

17 years agoi915tex: Sync pages between pipes immediately again.
Michel Dänzer [Fri, 9 Mar 2007 16:52:29 +0000 (17:52 +0100)]
i915tex: Sync pages between pipes immediately again.

This should be safe now that we no longer use the MI_WAIT_FOR_EVENT instruction
incorrectly and should also work correctly with applications that render to the
front buffer.

17 years agoi915tex: Do not wait for pending flips on both pipes at the same time.
Michel Dänzer [Fri, 9 Mar 2007 16:41:04 +0000 (17:41 +0100)]
i915tex: Do not wait for pending flips on both pipes at the same time.

The MI_WAIT_FOR_EVENT instruction does not support waiting for several events
at once, so this should fix the lockups with page flipping when both pipes are
enabled.

17 years agoNew IMAGE_RED_TO_LUMINANCE flag passed to _mesa_pack_rgba_span_float() to fix glGetTe...
Brian [Fri, 9 Mar 2007 16:08:41 +0000 (09:08 -0700)]
New IMAGE_RED_TO_LUMINANCE flag passed to _mesa_pack_rgba_span_float() to fix glGetTexImage(GL_LUMINANCE) bug #10232.

17 years agor300: Also update window state when it's already bound but its stamp changed.
Michel Dänzer [Fri, 9 Mar 2007 08:43:17 +0000 (09:43 +0100)]
r300: Also update window state when it's already bound but its stamp changed.

And set new cliprects before deriving other state from them. This ensures
cliprects aren't accessed after having been freed.

Thanks to Panagiotis Papadakos for testing various iterations of this.

17 years ago remove a if-statement
Xiang, Haihao [Thu, 8 Mar 2007 14:54:14 +0000 (22:54 +0800)]
remove a if-statement

    glMaterial changes the current specular exponent or glLight changes
    the intensity distribution of the light, but _mesa_update_state doesn't
    update the corresponding light table. So they must be updated at this time.

17 years ago Updates of the OpenVMS makefiles.
J.Jansen [Thu, 8 Mar 2007 08:53:28 +0000 (09:53 +0100)]
  Updates of the OpenVMS makefiles.
         -include missing definitions
 -add files to compile
 -remove files from compile list which are removed from the repositry
 -add support for vbo

new file:   src/mesa/vbo/descrip.mms
modified:   src/mesa/descrip.mms
modified:   src/mesa/drivers/osmesa/descrip.mms
modified:   src/mesa/drivers/x11/descrip.mms
modified:   src/mesa/swrast_setup/descrip.mms
modified:   src/mesa/tnl/descrip.mms

17 years agoi915tex: Set framebuffer size to match window before calling _mesa_make_current.
Michel Dänzer [Wed, 7 Mar 2007 17:01:39 +0000 (18:01 +0100)]
i915tex: Set framebuffer size to match window before calling _mesa_make_current.

Fixes issues with apps that don't call glViewport by default.

17 years agoi945_miptree_layout: Adapt cubemap fixes from i915_miptree_layout.
Michel Dänzer [Wed, 7 Mar 2007 16:52:44 +0000 (17:52 +0100)]
i945_miptree_layout: Adapt cubemap fixes from i915_miptree_layout.

Cubemaps aren't working fully correctly yet, but at least they don't seem to
cause crashes anymore.

17 years agodestroy window during cleanup
Brian [Tue, 6 Mar 2007 23:33:00 +0000 (16:33 -0700)]
destroy window during cleanup

17 years agoMerge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Tue, 6 Mar 2007 23:27:23 +0000 (16:27 -0700)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa

17 years agoexplicit calls to _mesa_unreference_framebuffer() not always needed now
Brian [Tue, 6 Mar 2007 23:26:22 +0000 (16:26 -0700)]
explicit calls to _mesa_unreference_framebuffer() not always needed now

17 years agounreference old framebuffer, if needed, in _mesa_reference_framebuffer()
Brian [Tue, 6 Mar 2007 23:26:02 +0000 (16:26 -0700)]
unreference old framebuffer, if needed, in _mesa_reference_framebuffer()

17 years agofix renderbuffer mem leak
Brian [Tue, 6 Mar 2007 23:25:07 +0000 (16:25 -0700)]
fix renderbuffer mem leak

17 years agoformatting fix
Brian [Tue, 6 Mar 2007 23:24:48 +0000 (16:24 -0700)]
formatting fix

17 years agoMerge branch 'master' of ssh+git://idr@git.freedesktop.org/git/mesa/mesa
Ian Romanick [Tue, 6 Mar 2007 19:50:33 +0000 (11:50 -0800)]
Merge branch 'master' of ssh+git://idr@git.freedesktop.org/git/mesa/mesa

17 years agoFix cut-and-paste error in the name of GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB.
Ian Romanick [Tue, 6 Mar 2007 19:50:21 +0000 (11:50 -0800)]
Fix cut-and-paste error in the name of GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB.

17 years agoFix/improve framebuffer object reference counting.
Brian [Tue, 6 Mar 2007 17:07:59 +0000 (10:07 -0700)]
Fix/improve framebuffer object reference counting.

Use _mesa_reference_framebuffer() and _mesa_unreference_framebuffer() functions
to be sure reference counting is done correctly.  Additional assertions are
done too.  Note _mesa_dereference_framebuffer() renamed to "unreference" as
that's more accurate.

17 years agoTake care of texObj reference in _mesa_free_framebuffer_data()
Brian [Tue, 6 Mar 2007 16:49:15 +0000 (09:49 -0700)]
Take care of texObj reference in _mesa_free_framebuffer_data()

17 years agoMerge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Tue, 6 Mar 2007 16:03:18 +0000 (09:03 -0700)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa

17 years agor300: Call radeonSetCliprects from radeonMakeCurrent.
Michel Dänzer [Tue, 6 Mar 2007 12:22:35 +0000 (13:22 +0100)]
r300: Call radeonSetCliprects from radeonMakeCurrent.

Based on a patch by Panagiotis Papadakos.

Among other things, this makes sure the framebuffer object associated with the
drawable has the correct size when _mesa_make_current is called, so the default
viewport is set up correctly.

Also update radeon->lastStamp in radeonSetCliprects.

17 years agofix for bug#10182
Xiang, Haihao [Tue, 6 Mar 2007 07:47:37 +0000 (15:47 +0800)]
fix for bug#10182

call _mesa_dereference_framebuffer instead of _mesa_dereference_framebuffer
in i810, i915, i915tex, i965 drivers.

17 years agofix for bug#9971
Xiang, Haihao [Mon, 5 Mar 2007 14:18:21 +0000 (22:18 +0800)]
fix for bug#9971

call swsetup_Wakeup before falling back to software rendering

17 years agoPropogate UsesKill information.
Keith Whitwell [Sun, 4 Mar 2007 21:47:05 +0000 (21:47 +0000)]
Propogate UsesKill information.

17 years agor300: Use register name & add a register about shading.
Christoph Bill [Thu, 1 Mar 2007 20:11:45 +0000 (21:11 +0100)]
r300: Use register name & add a register about shading.

17 years agor300: Use reg definition when available & add missing reg definition.
Christoph Bill [Thu, 1 Mar 2007 19:45:04 +0000 (20:45 +0100)]
r300: Use reg definition when available & add missing reg definition.

17 years agoAdd early register descritpion.
Christoph Bill [Thu, 1 Mar 2007 19:40:25 +0000 (20:40 +0100)]
Add early register descritpion.

This need more work on case where we can disable
or enable early  (stencil, alpha might need it to
be disable).

17 years agoOptimize cos&sin instruction a bit more.
Rune Petersen [Thu, 1 Mar 2007 19:36:19 +0000 (20:36 +0100)]
Optimize cos&sin instruction a bit more.

17 years agomove oldFb decl into tighter scopes
Brian [Thu, 1 Mar 2007 16:40:21 +0000 (09:40 -0700)]
move oldFb decl into tighter scopes

17 years agofix bad n_dot_h normalization code (bug 9977), plus clean-up the code in general
Brian [Thu, 1 Mar 2007 16:17:01 +0000 (09:17 -0700)]
fix bad n_dot_h normalization code (bug 9977), plus clean-up the code in general

17 years agofix clipping, display name, warnings
Brian [Thu, 1 Mar 2007 14:56:11 +0000 (07:56 -0700)]
fix clipping, display name, warnings

17 years agos/unsigned int/size_t/ (bug 10135)
Brian [Thu, 1 Mar 2007 14:42:42 +0000 (07:42 -0700)]
s/unsigned int/size_t/ (bug 10135)

17 years agoinclude assert.h
Brian [Thu, 1 Mar 2007 14:39:27 +0000 (07:39 -0700)]
include assert.h

17 years agoMerge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Wed, 28 Feb 2007 18:58:30 +0000 (11:58 -0700)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa

17 years agos/ARB/MESA/ in extension check (bug 10126)
Brian [Wed, 28 Feb 2007 18:58:06 +0000 (11:58 -0700)]
s/ARB/MESA/ in extension check (bug 10126)

17 years agoi915tex: Sync pages differently when crossing pipe borders.
Michel Dänzer [Wed, 28 Feb 2007 16:46:07 +0000 (17:46 +0100)]
i915tex: Sync pages differently when crossing pipe borders.

Don't flip (up to twice) immediately but just arrange things such that the
pages will be in sync on both pipes on the next flip.

17 years agoi915tex: Check that intel_rb is valid before trying to add it to an fbo.
Michel Dänzer [Wed, 28 Feb 2007 16:42:54 +0000 (17:42 +0100)]
i915tex: Check that intel_rb is valid before trying to add it to an fbo.

17 years agoi915tex: Also update intel_rb->vbl_pending when scheduled swap is not a flip.
Michel Dänzer [Wed, 28 Feb 2007 15:05:49 +0000 (16:05 +0100)]
i915tex: Also update intel_rb->vbl_pending when scheduled swap is not a flip.

17 years agonouveau: drm interface changes
Ben Skeggs [Wed, 28 Feb 2007 04:31:28 +0000 (15:31 +1100)]
nouveau: drm interface changes

17 years agofix comment
Brian [Tue, 27 Feb 2007 18:09:48 +0000 (11:09 -0700)]
fix comment

17 years agoassert that fb->RefCount==0 in _mesa_free_framebuffer_data()
Brian [Tue, 27 Feb 2007 18:09:28 +0000 (11:09 -0700)]
assert that fb->RefCount==0 in _mesa_free_framebuffer_data()

17 years agofix mem leak
Brian [Tue, 27 Feb 2007 00:05:52 +0000 (17:05 -0700)]
fix mem leak

17 years agoRewrite code related to buffer destruction.
Brian [Mon, 26 Feb 2007 18:39:17 +0000 (11:39 -0700)]
Rewrite code related to buffer destruction.

Do proper reference counting so that we don't wind up with dangling
references to deleted windows/framebuffers.  Should help with bug 7205.

17 years agoif renderbuffer ptr is null, just return
Brian [Mon, 26 Feb 2007 18:37:52 +0000 (11:37 -0700)]
if renderbuffer ptr is null, just return

17 years agoDo proper framebuffer refcounting in _mesa_make_current().
Brian [Mon, 26 Feb 2007 18:37:37 +0000 (11:37 -0700)]
Do proper framebuffer refcounting in _mesa_make_current().

Also, added DeletePending field to gl_framebuffer used when a window has been
deleted, but there still may be rendering contexts attached to the
gl_framebuffer object.

17 years agoupdated version with new Khronos license/copyright
Brian [Mon, 26 Feb 2007 16:19:32 +0000 (09:19 -0700)]
updated version with new Khronos license/copyright

17 years agos/pdp/prp/ in DoBindContext()
Panagiotis Papadakos [Mon, 26 Feb 2007 14:59:14 +0000 (07:59 -0700)]
s/pdp/prp/ in DoBindContext()

17 years agoadd missing param to _mesa_warning()
Panagiotis Papadakos [Mon, 26 Feb 2007 14:57:31 +0000 (07:57 -0700)]
add missing param to _mesa_warning()

17 years agoMerge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Mon, 26 Feb 2007 14:56:43 +0000 (07:56 -0700)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa

17 years agoFix #10071 - wrong max_index in vbo draw_prims. (Papadakos Panagiotis)
Aapo Tahkola [Sun, 25 Feb 2007 23:51:39 +0000 (01:51 +0200)]
Fix #10071 - wrong max_index in vbo draw_prims. (Papadakos Panagiotis)

17 years agoMerge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Sun, 25 Feb 2007 01:29:57 +0000 (18:29 -0700)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa