mesa.git
17 years agomesa: bind VBO_ATTRIB_XXX to correct input array when
Xiang, Haihao [Fri, 14 Sep 2007 08:26:56 +0000 (16:26 +0800)]
mesa: bind VBO_ATTRIB_XXX to correct input array when
executing a display list. fix #10604

17 years agoi965: align the address of the first element within
Xiang, Haihao [Fri, 14 Sep 2007 03:10:23 +0000 (11:10 +0800)]
i965: align the address of the first element within
the index buffer. (fix#11910)

17 years agoMerge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Thu, 13 Sep 2007 20:45:22 +0000 (14:45 -0600)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa

17 years agoupdated vrml link
Brian [Thu, 13 Sep 2007 20:44:27 +0000 (14:44 -0600)]
updated vrml link

17 years agoFix timer problem when using Fortran bindings (submitted by Bill Mitchell)
Brian [Thu, 13 Sep 2007 20:42:23 +0000 (14:42 -0600)]
Fix timer problem when using Fortran bindings (submitted by Bill Mitchell)

Also, add some comments about what's going on.

17 years agonouveau : diable broken light enable on nv10
Matthieu Castet [Thu, 13 Sep 2007 20:13:39 +0000 (22:13 +0200)]
nouveau : diable broken light enable on nv10

17 years agoadded program_error2() function for better error reporting
Brian [Thu, 13 Sep 2007 17:41:49 +0000 (11:41 -0600)]
added program_error2() function for better error reporting

17 years agoFix state.texgen parsing error (bug 12313).
Brian [Thu, 13 Sep 2007 17:29:00 +0000 (11:29 -0600)]
Fix state.texgen parsing error (bug 12313).

Replace *(*inst++) with *(*inst)++ in a few places.

17 years agoadded .pc.in files to tarballs
Brian [Thu, 13 Sep 2007 15:27:10 +0000 (09:27 -0600)]
added .pc.in files to tarballs

17 years agoadded null ptr check
Brian [Thu, 13 Sep 2007 15:26:27 +0000 (09:26 -0600)]
added null ptr check

17 years agocheck return value of invert_matrix()
Jonathan Bestien-Filiatrault [Wed, 12 Sep 2007 22:21:13 +0000 (16:21 -0600)]
check return value of invert_matrix()

17 years agoAdd glut_fcb.c to the build and update to fix warnings (see bug 12405)
Brian [Wed, 12 Sep 2007 19:40:15 +0000 (13:40 -0600)]
Add glut_fcb.c to the build and update to fix warnings (see bug 12405)

17 years agoRename. "fcb" = fortran call back
Brian [Wed, 12 Sep 2007 19:37:10 +0000 (13:37 -0600)]
Rename.  "fcb" = fortran call back

17 years agoRemove unused plane->pipe mapping fields from SAREA private.
Jesse Barnes [Wed, 12 Sep 2007 16:03:44 +0000 (09:03 -0700)]
Remove unused plane->pipe mapping fields from SAREA private.

17 years agoupdated with pkg-config info
Brian [Wed, 12 Sep 2007 16:11:49 +0000 (10:11 -0600)]
updated with pkg-config info

17 years agopkg-config support
Dan Nicholson [Wed, 12 Sep 2007 16:03:05 +0000 (10:03 -0600)]
pkg-config support

17 years agoDESTDIR support.
Dan Nicholson [Wed, 12 Sep 2007 15:57:53 +0000 (09:57 -0600)]
DESTDIR support.

17 years agoi965: translate shadow compare function into correct
Xiang, Haihao [Wed, 12 Sep 2007 08:51:45 +0000 (16:51 +0800)]
i965: translate shadow compare function into correct
internal function to match the EXT_shadow_funs
spec. fix bug#11925

17 years agoi965: revert commit 1a15b2169ba6cb100627eb525a20a00537cfb6f0,
Xiang, Haihao [Wed, 12 Sep 2007 07:13:06 +0000 (15:13 +0800)]
i965: revert commit 1a15b2169ba6cb100627eb525a20a00537cfb6f0,
and keep the instruction state unchanged after calling
brw_emit_tri_setup/brw_emit_line_setup when building setup
thread for SF_UNFILLED_TRIS.

17 years agoprefix some include filenames with shader/
root [Tue, 11 Sep 2007 21:24:43 +0000 (15:24 -0600)]
prefix some include filenames with shader/

17 years agoFix-up #includes to remove some -I options.
Brian [Tue, 11 Sep 2007 16:57:37 +0000 (10:57 -0600)]
Fix-up #includes to remove some -I options.

eg: #include "shader/program.h" and remove -I$(TOP)/src/mesa/program

17 years agoIn _mesa_make_current(), don't unbind FBOs from the old context.
Brian [Tue, 11 Sep 2007 16:56:35 +0000 (10:56 -0600)]
In _mesa_make_current(), don't unbind FBOs from the old context.

This fixes the X server crash reported by KeithP on Aug 29.
The old context's FBOs will be unreferenced during context destruction so
there's no memleak with this change.

17 years agoUpdate depth test state when binding new framebuffer object
Brian [Tue, 11 Sep 2007 15:21:34 +0000 (09:21 -0600)]
Update depth test state when binding new framebuffer object

17 years agofix comment
Brian [Tue, 11 Sep 2007 15:20:48 +0000 (09:20 -0600)]
fix comment

17 years agoMerge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa
Jesse Barnes [Tue, 11 Sep 2007 10:55:40 +0000 (03:55 -0700)]
Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa

17 years agointel: disentangle planes & pipes
Jesse Barnes [Tue, 11 Sep 2007 10:54:34 +0000 (03:54 -0700)]
intel: disentangle planes & pipes

This is the Mesa portion of the pipe & plane disambiguation.  Mesa needs to use
the new assumptions about plane vs. pipe mappings and should use the new SAREA
field names to avoid confusion.

17 years agoi965: take the secondary color into account when drawing
Xiang, Haihao [Tue, 11 Sep 2007 08:57:07 +0000 (16:57 +0800)]
i965: take the secondary color into account when drawing
bitmap. fix#10688

17 years agoi965: limit on LOD Bias, fix#11987
Xiang, Haihao [Tue, 11 Sep 2007 08:49:02 +0000 (16:49 +0800)]
i965: limit on LOD Bias, fix#11987

17 years agoclean-up (see bug 12317)
Brian [Mon, 10 Sep 2007 14:35:53 +0000 (08:35 -0600)]
clean-up (see bug 12317)

17 years agonouveau: nv10: check NULL pointers
Patrice Mandin [Thu, 6 Sep 2007 20:36:12 +0000 (22:36 +0200)]
nouveau: nv10: check NULL pointers

17 years agonouveau: init depth range
Patrice Mandin [Thu, 6 Sep 2007 20:33:22 +0000 (22:33 +0200)]
nouveau: init depth range

17 years agonouveau: nv10: replace macros by loop to set vertex attributes
Patrice Mandin [Thu, 6 Sep 2007 18:00:25 +0000 (20:00 +0200)]
nouveau: nv10: replace macros by loop to set vertex attributes

17 years agonouveau: need parenthesis around macro params, generator should be fixed
Patrice Mandin [Thu, 6 Sep 2007 17:58:59 +0000 (19:58 +0200)]
nouveau: need parenthesis around macro params, generator should be fixed

17 years agoDisable an assert for hw that do not emit POS as first vertex attrib, like nv1x
Patrice Mandin [Thu, 6 Sep 2007 17:12:58 +0000 (19:12 +0200)]
Disable an assert for hw that do not emit POS as first vertex attrib, like nv1x

17 years agonouveau: nv10: emit vertex data in proper order for nv1x hw
Patrice Mandin [Wed, 5 Sep 2007 21:35:52 +0000 (23:35 +0200)]
nouveau: nv10: emit vertex data in proper order for nv1x hw

17 years agoupdated bug report guidelines
Brian [Wed, 5 Sep 2007 16:03:32 +0000 (10:03 -0600)]
updated bug report guidelines

17 years agoupdated VC7 project files
Christoph Kubisch [Wed, 5 Sep 2007 16:03:08 +0000 (10:03 -0600)]
updated VC7 project files

17 years agoi965: only take non-varying attribute into account when
Xiang, Haihao [Wed, 5 Sep 2007 05:31:01 +0000 (13:31 +0800)]
i965: only take non-varying attribute into account when
compiling sf_prog. fix bug#11378 (which is introduced by
commit d619cceea47dc3070ebb7f7ea4f8b6b31a672d38)

17 years agonouveau: who needs nv03 ?
Stephane Marchesin [Tue, 4 Sep 2007 21:21:21 +0000 (23:21 +0200)]
nouveau: who needs nv03 ?

17 years agonouveau: nv10: need to transpose mesa model+proj matrix for hw
Patrice Mandin [Tue, 4 Sep 2007 17:13:07 +0000 (19:13 +0200)]
nouveau: nv10: need to transpose mesa model+proj matrix for hw

17 years agoUse temporary matrix in __gluInvertMatrixd() to fix aliasing problem (see bugs 12269...
Brian [Mon, 3 Sep 2007 22:20:05 +0000 (16:20 -0600)]
Use temporary matrix in __gluInvertMatrixd() to fix aliasing problem (see bugs 12269, 6748)

17 years agonouveau: nv10: forgot function to set modelview matrix
Patrice Mandin [Mon, 3 Sep 2007 21:42:33 +0000 (23:42 +0200)]
nouveau: nv10: forgot function to set modelview matrix

17 years agonouveau: separate modelview and projection matrix updates
Patrice Mandin [Mon, 3 Sep 2007 21:08:57 +0000 (23:08 +0200)]
nouveau: separate modelview and projection matrix updates

17 years agoi965: Correct build_lighting in i965 driver according to
Xiang, Haihao [Sat, 1 Sep 2007 07:43:15 +0000 (15:43 +0800)]
i965: Correct build_lighting in i965 driver according to
commit 6dd98e9853a6984150aa47467112e016c40a4ab4.

17 years agoFix problem introduced in previous commit in which a state variable (uniform) is...
Brian [Fri, 31 Aug 2007 22:42:05 +0000 (16:42 -0600)]
Fix problem introduced in previous commit in which a state variable (uniform) is written to.  (see bug 12239)

Also, added some assertions to the emit_arg() and emit_dst() functions to
catch this kind of error in the future.

17 years agonouveau: nv10: remove setting projection matrix when scaling viewport
Patrice Mandin [Fri, 31 Aug 2007 17:45:14 +0000 (19:45 +0200)]
nouveau: nv10: remove setting projection matrix when scaling viewport

17 years agonouveau: add hw-dependent function to update modelview*projection matrix
Patrice Mandin [Fri, 31 Aug 2007 17:43:16 +0000 (19:43 +0200)]
nouveau: add hw-dependent function to update modelview*projection matrix

17 years agoi965: Calculate the positional light in homogeneous coordinates.
Xiang, Haihao [Fri, 31 Aug 2007 08:50:48 +0000 (16:50 +0800)]
i965: Calculate the positional light in homogeneous coordinates.
fix bug#11009

17 years ago optimize 965 clip
Zou Nan hai [Fri, 31 Aug 2007 05:42:20 +0000 (13:42 +0800)]
  optimize 965 clip
  1. increase clip thread number to 2
  2. do cliptest for -rhw

17 years agoi965: Take the upper limitation on LOD into account.
Xiang, Haihao [Fri, 31 Aug 2007 04:51:36 +0000 (12:51 +0800)]
i965: Take the upper limitation on LOD into account.

17 years agoBug #10571: Fix 965 line clipping when neither vertex needs clipping.
David Moore [Thu, 30 Aug 2007 21:43:30 +0000 (14:43 -0700)]
Bug #10571: Fix 965 line clipping when neither vertex needs clipping.

17 years agofix another occurence of movaps which might not be aligned
Roland Scheidegger [Thu, 30 Aug 2007 16:04:49 +0000 (18:04 +0200)]
fix another occurence of movaps which might not be aligned

17 years agos/movaps/movups/ (see bug 12216)
Brian [Thu, 30 Aug 2007 14:41:38 +0000 (08:41 -0600)]
s/movaps/movups/ (see bug 12216)

17 years agoi965: store read drawable info in intel_context. Some OpenGL
Xiang, Haihao [Wed, 29 Aug 2007 19:11:10 +0000 (15:11 -0400)]
i965: store read drawable info in intel_context. Some OpenGL
operations are based on read drawable. fix bug#10136.

17 years agoi965: check NULL pointer. fix bug#12193
Xiang, Haihao [Wed, 29 Aug 2007 17:03:34 +0000 (13:03 -0400)]
i965: check NULL pointer. fix bug#12193

17 years agoi965: samplers group in fours in WM_STATE. fix bug#9415
Xiang, Haihao [Wed, 29 Aug 2007 14:13:10 +0000 (10:13 -0400)]
i965: samplers group in fours in WM_STATE. fix bug#9415

17 years agoAdd register defines for hw binning
Keith Packard [Tue, 28 Aug 2007 19:27:51 +0000 (12:27 -0700)]
Add register defines for hw binning

17 years agoi965: flush batch buffer when getting the maximum. This makes
Xiang, Haihao [Tue, 28 Aug 2007 15:35:52 +0000 (11:35 -0400)]
i965: flush batch buffer when getting the maximum. This makes
some 3D programs such as pymol work well.

17 years agoadded --noclear option to demonstrate rendering without glClear
Brian [Mon, 27 Aug 2007 18:00:19 +0000 (12:00 -0600)]
added --noclear option to demonstrate rendering without glClear

17 years agofixed problem with big glDrawArrays (see bug 12141)
Colin McDonald [Mon, 27 Aug 2007 16:47:32 +0000 (10:47 -0600)]
fixed problem with big glDrawArrays (see bug 12141)

17 years agonew __gluInvertMatrix() function (Mesa bug 6748)
Brian [Mon, 27 Aug 2007 16:36:11 +0000 (10:36 -0600)]
new __gluInvertMatrix() function (Mesa bug 6748)

17 years agonouveau: nv10: set total stride of vertex array for POS attribute
Patrice Mandin [Mon, 27 Aug 2007 09:45:30 +0000 (11:45 +0200)]
nouveau: nv10: set total stride of vertex array for POS attribute

17 years agonouveau: nv10: also set modelview0 matrix to identity
Patrice Mandin [Sat, 25 Aug 2007 15:46:53 +0000 (17:46 +0200)]
nouveau: nv10: also set modelview0 matrix to identity

17 years agonouveau: nv10: add a scissor func, do not cache viewport settings
Patrice Mandin [Sat, 25 Aug 2007 10:36:03 +0000 (12:36 +0200)]
nouveau: nv10: add a scissor func, do not cache viewport settings

17 years agonouveau: nv10: properly set viewport and projection
Patrice Mandin [Sat, 25 Aug 2007 09:39:04 +0000 (11:39 +0200)]
nouveau: nv10: properly set viewport and projection

17 years agoremove CallDepth++/-- accidentally removed in prev commit
Brian [Fri, 24 Aug 2007 07:43:58 +0000 (08:43 +0100)]
remove CallDepth++/-- accidentally removed in prev commit

17 years agoUnbreak Linux builds with -fvisibility=hidden.
Adam Jackson [Thu, 23 Aug 2007 22:38:02 +0000 (18:38 -0400)]
Unbreak Linux builds with -fvisibility=hidden.

17 years agoFor _mesa_share_state(), update the context's references to the new share group's...
Brian [Thu, 23 Aug 2007 07:53:43 +0000 (08:53 +0100)]
For _mesa_share_state(), update the context's references to the new share group's objects (Shane Blackett)

17 years agoremove unneeded CallStack array
Brian [Thu, 23 Aug 2007 07:16:52 +0000 (08:16 +0100)]
remove unneeded CallStack array

17 years agonouveau: nv10: set projection matrix from viewport size
Patrice Mandin [Wed, 22 Aug 2007 09:01:59 +0000 (11:01 +0200)]
nouveau: nv10: set projection matrix from viewport size

17 years agonouveau: nv10: initialize more of nv10 tcl engine
Patrice Mandin [Wed, 22 Aug 2007 08:28:13 +0000 (10:28 +0200)]
nouveau: nv10: initialize more of nv10 tcl engine

17 years agonouveau: nv10: Move some initialization stuff
Patrice Mandin [Tue, 21 Aug 2007 14:55:42 +0000 (16:55 +0200)]
nouveau: nv10: Move some initialization stuff

17 years agonouveau: Use proper notifier object
Patrice Mandin [Tue, 21 Aug 2007 14:53:13 +0000 (16:53 +0200)]
nouveau: Use proper notifier object

17 years agonouveau: nv10: Remove commented, unsupported by hw command
Patrice Mandin [Tue, 21 Aug 2007 14:52:10 +0000 (16:52 +0200)]
nouveau: nv10: Remove commented, unsupported by hw command

17 years agoUse correct object for GART
Patrice Mandin [Mon, 20 Aug 2007 17:35:31 +0000 (19:35 +0200)]
Use correct object for GART

17 years agorefactor bounds checking code
Brian [Mon, 20 Aug 2007 12:12:20 +0000 (13:12 +0100)]
refactor bounds checking code

17 years agodon't map buffer in _mesa_validate_DrawElements() unless needed
Brian [Mon, 20 Aug 2007 11:55:34 +0000 (12:55 +0100)]
don't map buffer in _mesa_validate_DrawElements() unless needed

17 years agonouveau: nv10: only one color buffer atm
Patrice Mandin [Sun, 19 Aug 2007 18:12:26 +0000 (20:12 +0200)]
nouveau: nv10: only one color buffer atm

17 years agosome fixes for compressed cube maps (bug 11986)
Brian [Sat, 18 Aug 2007 15:25:16 +0000 (16:25 +0100)]
some fixes for compressed cube maps (bug 11986)

17 years agoremove dead code left over after fixing GL_READ/DRAW_BUFFER state issues
Brian [Sat, 18 Aug 2007 15:10:25 +0000 (16:10 +0100)]
remove dead code left over after fixing GL_READ/DRAW_BUFFER state issues

17 years agoBrian's fix for bug9829
Xiang, Haihao [Fri, 17 Aug 2007 17:36:13 +0000 (13:36 -0400)]
Brian's fix for bug9829

17 years agoi965: align width/height for volume texture
Xiang, Haihao [Fri, 17 Aug 2007 16:42:52 +0000 (12:42 -0400)]
i965: align width/height for volume texture

17 years agonouveau: nv10: clear a buffer
Patrice Mandin [Thu, 16 Aug 2007 19:50:34 +0000 (21:50 +0200)]
nouveau: nv10: clear a buffer

17 years agonouveau: nv10: add function to clear a buffer
Patrice Mandin [Thu, 16 Aug 2007 19:31:30 +0000 (21:31 +0200)]
nouveau: nv10: add function to clear a buffer

17 years agonouveau: store render buffer pointers in context, to access them when clearing buffer
Patrice Mandin [Thu, 16 Aug 2007 19:28:40 +0000 (21:28 +0200)]
nouveau: store render buffer pointers in context, to access them when clearing buffer

17 years agonouveau: nv10: create objects needed to clear buffer
Patrice Mandin [Thu, 16 Aug 2007 18:53:29 +0000 (20:53 +0200)]
nouveau: nv10: create objects needed to clear buffer

17 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.

17 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

17 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

17 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

17 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.

17 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

17 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

17 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

17 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.

17 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)

17 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

17 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.

17 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.

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