platform/upstream/mesa.git
16 years agoRework the GL_READ_BUFFER, GL_DRAW_BUFFER state repairs that Roland previously did.
Brian [Thu, 16 Aug 2007 17:52:48 +0000 (18:52 +0100)]
Rework the GL_READ_BUFFER, GL_DRAW_BUFFER state repairs that Roland previously did.

Basically, in update_framebuffer() (which should be called after an FBO is bound
with MakeCurrent or BindFramebuffer) we check if the FBO is a window-system FBO.
If it is, update the FBO's GL_READ/DRAW_BUFFER state according to the context state.
Old code still in place but disabled with #if 0 / #endif.

16 years agoupdate comments, etc related to Read/DrawBuffer state
Brian [Thu, 16 Aug 2007 15:49:35 +0000 (16:49 +0100)]
update comments, etc related to Read/DrawBuffer state

16 years agoremove reference to ctx->Color.DrawBuffer
Brian [Thu, 16 Aug 2007 15:43:31 +0000 (16:43 +0100)]
remove reference to ctx->Color.DrawBuffer

16 years agoreplace Proxy1D/2D/etc fields with ProxyTex[] array
Brian [Thu, 16 Aug 2007 10:06:39 +0000 (11:06 +0100)]
replace Proxy1D/2D/etc fields with ProxyTex[] array

16 years agoReplace Proxy1D/2D/etc with ProxyTex[] indexed by TEXTURE_x_INDEX.
Brian [Thu, 16 Aug 2007 10:06:13 +0000 (11:06 +0100)]
Replace Proxy1D/2D/etc with ProxyTex[] indexed by TEXTURE_x_INDEX.

Simplification in colortab.c too.

16 years agoreplace separate 1D/2D/etc fields with an array indexed by texture target
Brian [Thu, 16 Aug 2007 09:28:23 +0000 (10:28 +0100)]
replace separate 1D/2D/etc fields with an array indexed by texture target

16 years agoremove old Saved1D/2D/etc fields
Brian [Thu, 16 Aug 2007 09:27:24 +0000 (10:27 +0100)]
remove old Saved1D/2D/etc fields

16 years agoBring over the texobj refcounting changes from mesa_7_0_branch
Brian [Thu, 16 Aug 2007 09:05:00 +0000 (10:05 +0100)]
Bring over the texobj refcounting changes from mesa_7_0_branch

16 years agoi915tex: Unreference texture buffers on context destruction.
Michel Dänzer [Thu, 16 Aug 2007 06:45:16 +0000 (08:45 +0200)]
i915tex: Unreference texture buffers on context destruction.

Not doing this could cause the buffers to leak under some circumstances.

16 years agosuppress warning about ncon visuals (bug #6689)
Roland Scheidegger [Thu, 16 Aug 2007 00:41:03 +0000 (02:41 +0200)]
suppress warning about ncon visuals (bug #6689)

16 years agoi965: use BRW_TEXCOORDMODE_CLAMP instead of BRW_TEXCOORDMODE_CLAMP_BORDER
Xiang, Haihao [Wed, 15 Aug 2007 05:28:00 +0000 (13:28 +0800)]
i965: use BRW_TEXCOORDMODE_CLAMP instead of BRW_TEXCOORDMODE_CLAMP_BORDER
to implement GL_CLAMP

16 years agonouveau: Use half the notifier block for query objects.
Ben Skeggs [Wed, 15 Aug 2007 04:27:46 +0000 (14:27 +1000)]
nouveau: Use half the notifier block for query objects.

16 years agonouveau: Keep drm channel alloc struct around.
Ben Skeggs [Wed, 15 Aug 2007 04:26:15 +0000 (14:26 +1000)]
nouveau: Keep drm channel alloc struct around.

16 years agonouveau: reindent nouveau_span.c
Ben Skeggs [Mon, 13 Aug 2007 13:12:04 +0000 (23:12 +1000)]
nouveau: reindent nouveau_span.c

16 years agonouveau: Remove ALLOW_MULTI_SUBCHANNEL hack
Ben Skeggs [Mon, 13 Aug 2007 12:05:15 +0000 (22:05 +1000)]
nouveau: Remove ALLOW_MULTI_SUBCHANNEL hack

Irrelevant, since we depend on working context switching now.

16 years agonouveau: Always render offscreen, emulate front buffer rendering.
Ben Skeggs [Mon, 13 Aug 2007 10:38:10 +0000 (20:38 +1000)]
nouveau: Always render offscreen, emulate front buffer rendering.

16 years agonouveau: Split nouveau_buffers into nouveau_mem and nouveau_fbo
Ben Skeggs [Mon, 13 Aug 2007 10:02:04 +0000 (20:02 +1000)]
nouveau: Split nouveau_buffers into nouveau_mem and nouveau_fbo

16 years agonouveau: reindent nouveau_buffers.h
Ben Skeggs [Mon, 13 Aug 2007 07:21:02 +0000 (17:21 +1000)]
nouveau: reindent nouveau_buffers.h

16 years agonouveau: reindent nouveau_buffers.c
Ben Skeggs [Mon, 13 Aug 2007 07:02:20 +0000 (17:02 +1000)]
nouveau: reindent nouveau_buffers.c

16 years agonouveau: Lets only do private buffers.
Ben Skeggs [Mon, 13 Aug 2007 06:46:27 +0000 (16:46 +1000)]
nouveau: Lets only do private buffers.

16 years agoFix a few more problems with freeing FBOs/textures during context destruction.
Brian [Tue, 14 Aug 2007 10:56:59 +0000 (11:56 +0100)]
Fix a few more problems with freeing FBOs/textures during context destruction.

Free FBOs before textures since the later may be referenced by the former.
Need to bind the context we're destroying if there isn't a current context
so that ctx->DeleteTexture() etc can be used.

16 years agoxdemo case: Wei Wang's patch for bug#9759
Xiang, Haihao [Tue, 14 Aug 2007 03:39:23 +0000 (11:39 +0800)]
xdemo case: Wei Wang's patch for bug#9759

16 years agofree any render/framebuffers left in hash tables when freeing shared state
Brian [Mon, 13 Aug 2007 16:37:30 +0000 (17:37 +0100)]
free any render/framebuffers left in hash tables when freeing shared state

16 years agoi915tex: Make sure pitch is aligned properly for render-to-texture.
Michel Dänzer [Mon, 13 Aug 2007 11:22:43 +0000 (13:22 +0200)]
i915tex: Make sure pitch is aligned properly for render-to-texture.

Just always align texture pitch to multiples of 64 bytes for now, pending a
more sophisticated scheme to do it only when really necessary.

16 years agoImplement mutex/locking around texture object reference counting.
Brian [Mon, 13 Aug 2007 10:29:46 +0000 (11:29 +0100)]
Implement mutex/locking around texture object reference counting.

Use new _mesa_reference_texobj() function for referencing/unreferencing
textures.  Add new assertions/tests to try to detect invalid usage of
deleted textures.

16 years agoadded some missing Default1D/2DArray texture code
Brian [Mon, 13 Aug 2007 10:09:48 +0000 (11:09 +0100)]
added some missing Default1D/2DArray texture code

16 years agoi965: fix projtex_mask
Xiang, Haihao [Mon, 13 Aug 2007 09:16:27 +0000 (17:16 +0800)]
i965: fix projtex_mask
projtex_mask is only an 8bit field, and wm.input_size_masks includes
other attributes' information, therefore right shift is needed.

16 years agoi915: satisfy certain alignment restrictions for small
Xiang, Haihao [Mon, 13 Aug 2007 03:43:37 +0000 (11:43 +0800)]
i915: satisfy certain alignment restrictions for small
compressed texture

16 years agofix spantmp2 READ_RGBA inline asm (#11931)
Dan Torop [Sun, 12 Aug 2007 11:41:13 +0000 (13:41 +0200)]
fix spantmp2 READ_RGBA inline asm (#11931)

16 years agoMake it easier to compare against the pipe driver debug code.
Keith Whitwell [Sat, 11 Aug 2007 12:48:19 +0000 (13:48 +0100)]
Make it easier to compare against the pipe driver debug code.

16 years agoImprove debugging further.
Keith Whitwell [Sat, 11 Aug 2007 12:40:22 +0000 (13:40 +0100)]
Improve debugging further.

Pull apart some key packets into individual fields and print sanely.

16 years agoBetter debugging
Keith Whitwell [Fri, 10 Aug 2007 18:17:35 +0000 (19:17 +0100)]
Better debugging

16 years agoi965: roland's DXTn format texture patch(bug10347)
Xiang, Haihao [Fri, 10 Aug 2007 08:37:30 +0000 (16:37 +0800)]
i965: roland's DXTn format texture patch(bug10347)

16 years agoi965/i915tex: applying right alignment to compressed texture,
Xiang, Haihao [Fri, 10 Aug 2007 08:23:14 +0000 (16:23 +0800)]
i965/i915tex: applying right alignment to compressed texture,
which make small textures(4x4,2x2,1x1) work well.

16 years agoi965: set mt->cpp differently with compressed texture
Xiang, Haihao [Fri, 10 Aug 2007 07:14:12 +0000 (15:14 +0800)]
i965: set mt->cpp differently with compressed texture

16 years agofix byte swap bug for GLint stencil indexes (bug 11909)
Brian [Thu, 9 Aug 2007 07:47:05 +0000 (08:47 +0100)]
fix byte swap bug for GLint stencil indexes (bug 11909)

16 years agonouveau: Missing notifier -> notifierobj migration
Carlos Martín Nieto [Wed, 8 Aug 2007 12:49:37 +0000 (14:49 +0200)]
nouveau: Missing notifier -> notifierobj migration

I missed this in the original migration.

16 years agomove free() after dereference (bug 11878)
Brian [Tue, 7 Aug 2007 21:06:08 +0000 (22:06 +0100)]
move free() after dereference (bug 11878)

16 years agoparse standard -geometry option
Brian [Tue, 7 Aug 2007 21:02:27 +0000 (22:02 +0100)]
parse standard -geometry option

16 years agofix potential NULL dereference (bug 11879)
Brian [Tue, 7 Aug 2007 20:57:29 +0000 (21:57 +0100)]
fix potential NULL dereference (bug 11879)

16 years agoremove SHELL line, replace -e test with new logic (Daniel Stone)
Brian [Tue, 7 Aug 2007 20:51:46 +0000 (21:51 +0100)]
remove SHELL line, replace -e test with new logic (Daniel Stone)

16 years agofix potential NULL dereference (bug 11880)
Brian [Tue, 7 Aug 2007 20:48:31 +0000 (21:48 +0100)]
fix potential NULL dereference (bug 11880)

16 years agofix swizzle error test (bug 11881)
Brian [Tue, 7 Aug 2007 20:42:34 +0000 (21:42 +0100)]
fix swizzle error test (bug 11881)

16 years agoglxgears: Add an x/y window size parameter.
Ingo Molnar [Tue, 7 Aug 2007 07:53:48 +0000 (09:53 +0200)]
glxgears: Add an x/y window size parameter.

16 years agofix even-sized point positioning (bug 11874)
Brian [Tue, 7 Aug 2007 07:17:02 +0000 (08:17 +0100)]
fix even-sized point positioning (bug 11874)

16 years agofix vbo_split_copy related bug 9962
Xiang, Haihao [Tue, 7 Aug 2007 00:21:28 +0000 (08:21 +0800)]
fix vbo_split_copy related bug 9962

16 years agonouveau: update to DRM API patchlevel 10
Carlos Martín Nieto [Mon, 6 Aug 2007 23:00:29 +0000 (01:00 +0200)]
nouveau: update to DRM API patchlevel 10

Finally let DRI build for nouveau.

16 years agoadd OSMESA_LIB_NAME
Brian [Fri, 3 Aug 2007 16:08:39 +0000 (10:08 -0600)]
add OSMESA_LIB_NAME

16 years agoadded -lm
Brian [Fri, 3 Aug 2007 13:24:11 +0000 (07:24 -0600)]
added -lm

16 years agofix missing backslash
Brian [Fri, 3 Aug 2007 02:26:49 +0000 (20:26 -0600)]
fix missing backslash

16 years agoadded bluegene-osmesa
Brian [Thu, 2 Aug 2007 20:22:13 +0000 (14:22 -0600)]
added bluegene-osmesa

16 years agoOSmesa on BlueGene (Alexander Neundorf)
Brian [Thu, 2 Aug 2007 20:22:02 +0000 (14:22 -0600)]
OSmesa on BlueGene (Alexander Neundorf)

16 years agofix stencil value masking bug 11805, and fix sizeof() bug
Brian [Thu, 2 Aug 2007 15:08:29 +0000 (09:08 -0600)]
fix stencil value masking bug 11805, and fix sizeof() bug

16 years agoremove unnecessary null check (bug 11814)
Brian [Thu, 2 Aug 2007 14:44:34 +0000 (08:44 -0600)]
remove unnecessary null check (bug 11814)

16 years agofix invalid pointer usage in bezierPatchDeleteList(), bug 11807
Brian [Thu, 2 Aug 2007 14:40:29 +0000 (08:40 -0600)]
fix invalid pointer usage in bezierPatchDeleteList(), bug 11807

16 years agofix double free()s (bug 11808)
Brian [Thu, 2 Aug 2007 14:38:01 +0000 (08:38 -0600)]
fix double free()s (bug 11808)

16 years agos/MAX_TEXTURE_LEVELS/SIS_MAX_TEXTURE_LEVELS/ and add assertion (bug 11806)
Brian [Thu, 2 Aug 2007 14:35:13 +0000 (08:35 -0600)]
s/MAX_TEXTURE_LEVELS/SIS_MAX_TEXTURE_LEVELS/ and add assertion (bug 11806)

16 years agomove code to prevent NULL ptr dereference (bug 11810)
Brian [Thu, 2 Aug 2007 14:31:44 +0000 (08:31 -0600)]
move code to prevent NULL ptr dereference (bug 11810)

16 years agoRemove some code that was never hit (bug 11811).
Brian [Thu, 2 Aug 2007 14:29:55 +0000 (08:29 -0600)]
Remove some code that was never hit (bug 11811).

Also added an assertion to check that NR_MAT_ATTRIBS == MAT_ATTRIB_MAX.
In the unlikely event this ever changes, maybe restore the code.

16 years agoFix typo in logic for unalias2()
Keith Whitwell [Thu, 2 Aug 2007 10:37:57 +0000 (11:37 +0100)]
Fix typo in logic for unalias2()

16 years ago fix fd.o bug #11804
Zou Nan hai [Thu, 2 Aug 2007 07:27:13 +0000 (15:27 +0800)]
 fix fd.o bug #11804
 glPolygonMode with point sprite on i965

16 years ago Fix previous commit
Zou Nan hai [Thu, 2 Aug 2007 06:35:59 +0000 (14:35 +0800)]
 Fix previous commit

16 years ago EXT_texture_sRGB support on i965
Zou Nan hai [Thu, 2 Aug 2007 06:26:12 +0000 (14:26 +0800)]
 EXT_texture_sRGB support on i965

16 years agofix error code test limit (bug 11795)
Brian [Wed, 1 Aug 2007 17:27:29 +0000 (11:27 -0600)]
fix error code test limit (bug 11795)

16 years agotriangle rasterization with frag shader
Brian [Wed, 1 Aug 2007 17:13:25 +0000 (11:13 -0600)]
triangle rasterization with frag shader

16 years agoadded trirast program
Brian [Wed, 1 Aug 2007 17:12:51 +0000 (11:12 -0600)]
added trirast program

16 years agofix mem leak (bug 11793)
Brian [Wed, 1 Aug 2007 14:41:51 +0000 (08:41 -0600)]
fix mem leak (bug 11793)

16 years agofix mem leak (bug 11791)
Brian [Wed, 1 Aug 2007 14:40:49 +0000 (08:40 -0600)]
fix mem leak (bug 11791)

16 years ago fix fd.o bug #11788, max point size
Zou Nan hai [Wed, 1 Aug 2007 03:08:05 +0000 (11:08 +0800)]
  fix fd.o bug #11788, max point size

16 years agofix some FreeBSD issues
Brian [Tue, 31 Jul 2007 20:57:37 +0000 (14:57 -0600)]
fix some FreeBSD issues

16 years agofix failure caused by undeclared variable (bug 11783)
Brian [Tue, 31 Jul 2007 15:43:57 +0000 (09:43 -0600)]
fix failure caused by undeclared variable (bug 11783)

16 years agoadded sunos5-v9-cc-g++ config
Brian [Tue, 31 Jul 2007 15:32:10 +0000 (09:32 -0600)]
added sunos5-v9-cc-g++ config

16 years agoglGetAttribLocation always returned 1 (bug 11774)
Brian [Tue, 31 Jul 2007 15:31:41 +0000 (09:31 -0600)]
glGetAttribLocation always returned 1 (bug 11774)

16 years agoi965: fix bad casts in do_blit_bitmap to support WindowPos correctly
Xiang, Haihao [Tue, 31 Jul 2007 14:40:42 +0000 (22:40 +0800)]
i965: fix bad casts in do_blit_bitmap to support WindowPos correctly

16 years agoi965: Use I16_UNORM instead of L16_UNORM (bug 11742)
Xiang, Haihao [Tue, 31 Jul 2007 01:10:31 +0000 (09:10 +0800)]
i965: Use I16_UNORM instead of L16_UNORM (bug 11742)

16 years agoFix an error in _save_OBE_DrawElements
Xiang, Haihao [Mon, 30 Jul 2007 16:11:22 +0000 (00:11 +0800)]
Fix an error in _save_OBE_DrawElements

In the case that a buffer object is bound to
ELEMENT_ARRARY_BUFFER, it is invalid to directly
dereference indices passed to glDrawElements.

16 years agoFix an error in _mesa_validate_DrawElements
Xiang, Haihao [Mon, 30 Jul 2007 15:50:52 +0000 (23:50 +0800)]
Fix an error in _mesa_validate_DrawElements

The field 'Data' in an obj is NULL in some dri drivers(such
as i965). Use mapped pointer instead.

16 years agoNew sunos5-v9-cc-gcc config (Roland Egger)
Brian [Mon, 30 Jul 2007 15:01:02 +0000 (09:01 -0600)]
New sunos5-v9-cc-gcc config (Roland Egger)

16 years agomisc comments, clean-ups
Brian [Mon, 30 Jul 2007 14:52:57 +0000 (08:52 -0600)]
misc comments, clean-ups

16 years agoremove old comment, minor formatting fixes
Brian [Mon, 30 Jul 2007 14:13:40 +0000 (08:13 -0600)]
remove old comment, minor formatting fixes

16 years agohandle LSB_FIRST in _mesa_pack_bitmap by the way used in
Xiang, Haihao [Mon, 30 Jul 2007 08:30:32 +0000 (16:30 +0800)]
handle LSB_FIRST in _mesa_pack_bitmap by the way used in
_mesa_unpack_bitmap

16 years agoFix an error related to glPolygonStipple.
Xiang, Haihao [Mon, 30 Jul 2007 08:17:40 +0000 (16:17 +0800)]
Fix an error related to glPolygonStipple.

As glPixelStore(GL_UNPACK) affect the bits into a stipple pattern,
hence 128 bytes used to store the pattern in a display list aren't
enough sometimes.

16 years ago ARB sprite point support on i965
Zou Nan hai [Mon, 30 Jul 2007 02:18:11 +0000 (10:18 +0800)]
  ARB sprite point support on i965

16 years agoadded a few more functions
Brian [Mon, 30 Jul 2007 00:28:46 +0000 (18:28 -0600)]
added a few more functions

16 years agofix glPointParameteriv bug 11754
Jan Dvorak [Mon, 30 Jul 2007 00:26:22 +0000 (18:26 -0600)]
fix glPointParameteriv bug 11754

16 years agoAdded shader points and shader bitmap demos
Brian [Mon, 30 Jul 2007 00:04:23 +0000 (18:04 -0600)]
Added shader points and shader bitmap demos

16 years agofix cos/sin range reduction for i915 driver too
Roland Scheidegger [Sun, 29 Jul 2007 17:44:55 +0000 (19:44 +0200)]
fix cos/sin range reduction for i915 driver too

16 years agofix range reduction for sin/cos in i915tex (#11609)
Roland Scheidegger [Sun, 29 Jul 2007 17:40:50 +0000 (19:40 +0200)]
fix range reduction for sin/cos in i915tex (#11609)

16 years agofix fallback crashes when driver can't handle frag prog for i915 driver too (untested)
Roland Scheidegger [Sun, 29 Jul 2007 16:31:36 +0000 (18:31 +0200)]
fix fallback crashes when driver can't handle frag prog for i915 driver too (untested)

16 years agoFix crashes when the frag prog can't be handled in hardware (#11131)
Roland Scheidegger [Sun, 29 Jul 2007 16:04:28 +0000 (18:04 +0200)]
Fix crashes when the frag prog can't be handled in hardware (#11131)

Must not change to/from swrast after Render.Start or bad things will happen.
(Driver will still somewhat incorrectly report an implementation error,
and apps can't really figure out if a prog is natively supported as validation
is later - could try doing it earlier to give some hint at least, even though
native status may still change later due to fog etc.)

16 years agomore Mingw32 fixes
Zhang [Fri, 27 Jul 2007 17:19:35 +0000 (11:19 -0600)]
more Mingw32 fixes

16 years agofix-up inlined/non-inlined function inconsistencies
Brian [Thu, 26 Jul 2007 22:42:05 +0000 (16:42 -0600)]
fix-up inlined/non-inlined function inconsistencies

16 years agoFix function call bug 11731. Also, fix up IR_CALL/IR_FUNC confusion.
Brian [Thu, 26 Jul 2007 21:32:02 +0000 (15:32 -0600)]
Fix function call bug 11731.  Also, fix up IR_CALL/IR_FUNC confusion.

16 years agogenerate error upon writing to varying var in fragment program (bug 11733)
Brian [Thu, 26 Jul 2007 17:39:11 +0000 (11:39 -0600)]
generate error upon writing to varying var in fragment program (bug 11733)

16 years agoclamp float colors
Brian [Thu, 26 Jul 2007 14:22:47 +0000 (08:22 -0600)]
clamp float colors

16 years agofix color interpolation for CHAN_BITS==32
Brian [Thu, 26 Jul 2007 14:22:28 +0000 (08:22 -0600)]
fix color interpolation for CHAN_BITS==32

16 years agodon't use rgba_line() if CHAN_BITS==32
Brian [Thu, 26 Jul 2007 14:22:09 +0000 (08:22 -0600)]
don't use rgba_line() if CHAN_BITS==32

16 years agoremove unused MAX_3D_TEXTURE_SIZE, reformattting
Brian [Tue, 24 Jul 2007 23:45:14 +0000 (17:45 -0600)]
remove unused MAX_3D_TEXTURE_SIZE, reformattting

16 years agocall ctx->Driver.NewProgram() instead of _mesa_new_program()
Brian [Tue, 24 Jul 2007 15:56:44 +0000 (09:56 -0600)]
call ctx->Driver.NewProgram() instead of _mesa_new_program()

16 years agofix logic error, typos
Brian [Tue, 24 Jul 2007 15:19:22 +0000 (09:19 -0600)]
fix logic error, typos