mesa.git
16 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

16 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

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

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

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

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

16 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

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

16 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

16 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

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

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

16 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

16 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

16 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

16 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

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

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

16 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

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

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

16 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

16 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

16 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

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

16 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

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

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

16 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

16 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

16 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

16 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

16 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

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

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

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

16 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

16 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

16 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

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

16 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

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

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

16 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

16 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

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

16 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

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

16 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

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

16 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

16 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

16 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

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.