Keith Whitwell [Fri, 2 Feb 2007 10:59:58 +0000 (10:59 +0000)]
Modify assert to reflect rebase criteria
Keith Whitwell [Thu, 1 Feb 2007 14:21:14 +0000 (14:21 +0000)]
Correct usage/meaning of max_index parameter.
Keith Whitwell [Thu, 1 Feb 2007 14:20:31 +0000 (14:20 +0000)]
Cope with internally-generated null inputs.
Keith Whitwell [Tue, 30 Jan 2007 20:22:55 +0000 (20:22 +0000)]
Use new rebase helper. Remove other rebase code.
Keith Whitwell [Tue, 30 Jan 2007 19:27:53 +0000 (19:27 +0000)]
Helper for rebasing draw requests where min_index != 0.
Keith Whitwell [Tue, 30 Jan 2007 19:19:51 +0000 (19:19 +0000)]
New tests for the array functions which also provoke rebasing.
Roland Scheidegger [Thu, 25 Jan 2007 17:52:40 +0000 (18:52 +0100)]
do not rebase index buffers as it does not work currently (tested with r200 and sw mesa)
Roland Scheidegger [Thu, 25 Jan 2007 15:39:02 +0000 (16:39 +0100)]
allocate larger minimum dstelt buffer
increase the minimum dstelt buffer size to avoid triggering an assertion later
because the split is triggered before the buffer is full. This fixes cases
where the vbo_split_copy path is hit because of maximum index limit, where the
dstelt buffer size needed could be very small (doom3 hit that assertion with a
vertex count of just 3)
Roland Scheidegger [Thu, 25 Jan 2007 13:32:06 +0000 (14:32 +0100)]
fix dstelt memory allocation to avoid hash corruption
Roland Scheidegger [Thu, 25 Jan 2007 11:12:54 +0000 (12:12 +0100)]
remove tnl/t_vtx_x86_gcc.S file from sources as it no longer exists
Roland Scheidegger [Thu, 25 Jan 2007 11:11:03 +0000 (12:11 +0100)]
re-fix bug 9062 in vbo code
Aapo Tahkola [Thu, 18 Jan 2007 03:30:20 +0000 (05:30 +0200)]
typo fix. this case still fails.
Aapo Tahkola [Thu, 18 Jan 2007 02:46:04 +0000 (04:46 +0200)]
Fix invalid enums passed to MapBuffer
Aapo Tahkola [Thu, 18 Jan 2007 02:17:56 +0000 (04:17 +0200)]
Fix invalid enums passed to MapBuffer
Keith Whitwell [Tue, 16 Jan 2007 13:30:04 +0000 (13:30 +0000)]
Don't special-case index, edgeflag.
Remove display list opcodes for INDEX and EDGEFLAG, handle them
through the regular ATTRIB mechanism now that Mesa understands them
to just be regular attribs.
Keith Whitwell [Tue, 16 Jan 2007 13:29:01 +0000 (13:29 +0000)]
Additional display list tests
Keith Whitwell [Tue, 16 Jan 2007 11:24:08 +0000 (11:24 +0000)]
Merge vbo_0_1_branch
Hopefully leaving behind the cruft generated by the CVS import.
Keith Whitwell [Tue, 16 Jan 2007 11:22:57 +0000 (11:22 +0000)]
Merge branch 'master' of git+ssh://keithw@git.freedesktop.org/git/mesa/mesa into vbo-0.2
Conflicts:
src/mesa/array_cache/sources
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_fallback.c
src/mesa/drivers/dri/i965/brw_vs_emit.c
src/mesa/drivers/dri/i965/brw_vs_tnl.c
src/mesa/drivers/dri/mach64/mach64_context.c
src/mesa/main/extensions.c
src/mesa/main/getstring.c
src/mesa/tnl/sources
src/mesa/tnl/t_save_api.c
src/mesa/tnl/t_save_playback.c
src/mesa/tnl/t_vtx_api.c
src/mesa/tnl/t_vtx_exec.c
src/mesa/vbo/vbo_attrib.h
src/mesa/vbo/vbo_exec_api.c
src/mesa/vbo/vbo_save_api.c
src/mesa/vbo/vbo_save_draw.c
Keith Whitwell [Tue, 16 Jan 2007 09:47:35 +0000 (09:47 +0000)]
Merge branch 'vbo_0_1_branch' into vbo-0.2
Keith Whitwell [Tue, 16 Jan 2007 09:47:26 +0000 (09:47 +0000)]
Merge branch 'master-merge' into vbo-0.2
Jerome Glisse [Mon, 15 Jan 2007 20:19:52 +0000 (21:19 +0100)]
mesa: Update _Current along Current on fragment program bound.
Same as a previously committed patch for vertex program, we
update fragment program ptr _Current along the Current one
so that _Current can't end up pointing to a no more valid
program.
Patrice Mandin [Mon, 15 Jan 2007 17:58:24 +0000 (18:58 +0100)]
nouveau:nv10: fix setting clip region
Keith Whitwell [Mon, 15 Jan 2007 16:57:01 +0000 (16:57 +0000)]
Remove unused index buffer.
Keith Whitwell [Mon, 15 Jan 2007 14:30:16 +0000 (14:30 +0000)]
Don't special-case FOG attribute initialization.
Initial fog value was being set to {0,0,0,0}. This results in vector
size 4, but isn't necessary. The regular {0,0,0,1} works fine.
Keith Whitwell [Mon, 15 Jan 2007 14:20:21 +0000 (14:20 +0000)]
Correctly initialize current attribute sizes.
Some legacy attributes (eg color) have an initial value other than {0,0,0,1}
which means that their initial size != 1 either.
keithw [Mon, 15 Jan 2007 14:10:42 +0000 (14:10 +0000)]
Remove debug, reenable inplace splitting.
Keith Whitwell [Mon, 15 Jan 2007 13:54:08 +0000 (13:54 +0000)]
Split too-large draw commands.
Use the vbo_split_ functionality to split incoming drawing command
to fit within the fixed-size buffers used by software t&l module.
Keith Whitwell [Mon, 15 Jan 2007 13:40:38 +0000 (13:40 +0000)]
Remove special-case handling for index and edgeflag
This isn't required with the changes to core mesa and the new
attribute layout.
keithw [Mon, 15 Jan 2007 11:58:06 +0000 (11:58 +0000)]
Hook in split functionality
keithw [Mon, 15 Jan 2007 11:54:40 +0000 (11:54 +0000)]
Add vbo_split files
keithw [Mon, 15 Jan 2007 11:52:58 +0000 (11:52 +0000)]
New files to manage splitting drawing commands
Stephane Marchesin [Mon, 15 Jan 2007 11:38:24 +0000 (12:38 +0100)]
nouveau: Fix a bug in the nv04 swtcl.
Ben Skeggs [Mon, 15 Jan 2007 06:28:56 +0000 (17:28 +1100)]
nouveau: Add 0x0244 pciid manually for now..
pciids.sf.net is slow to add it so our generator picks it up,
and it's *really* annoying me :)
Ben Skeggs [Mon, 15 Jan 2007 06:23:04 +0000 (17:23 +1100)]
nouveau: fail CreateScreen on unknown cards instead of guessing.
Carlos Martín Nieto [Sun, 14 Jan 2007 23:00:30 +0000 (00:00 +0100)]
nouveau: Implement much of the fog handling.
Stephane Marchesin [Sun, 14 Jan 2007 21:39:37 +0000 (22:39 +0100)]
nouveau: Update nouveau_reg.h from renouveau to the latest version.
Stephane Marchesin [Sun, 14 Jan 2007 20:17:08 +0000 (21:17 +0100)]
nouveau: Make the state cache hierarchical.
Stephane Marchesin [Sun, 14 Jan 2007 19:37:57 +0000 (20:37 +0100)]
nouveau: add the nv04 swtcl module (it's untested for now).
Stephane Marchesin [Sat, 13 Jan 2007 22:56:55 +0000 (23:56 +0100)]
nouveau: Cleanup the nv10 swtcl module.
Patrice Mandin [Sun, 14 Jan 2007 19:14:58 +0000 (20:14 +0100)]
nouveau: nv10: 16 bits color buffer format
Patrice Mandin [Sun, 14 Jan 2007 18:56:30 +0000 (19:56 +0100)]
Merge branch 'master' of git+ssh://pmandin@git.freedesktop.org/git/mesa/mesa
Patrice Mandin [Sun, 14 Jan 2007 18:55:45 +0000 (19:55 +0100)]
nouveau: nv10: added missing functions
Jerome Glisse [Sun, 14 Jan 2007 18:31:30 +0000 (19:31 +0100)]
r300: Fix vertex program position invariant bug, force position reading.
When we have a position invariant program we need to force routing the
position otherwise you may handle transform quite random data which might
be funny but unlikely what you want :).
Jerome Glisse [Sun, 14 Jan 2007 13:49:36 +0000 (14:49 +0100)]
mesa: Update _Current ptr along Current when a new vertex program is bind.
On new vertex program bind only the Current ptr where updated to
point to the new program; this could lead to _Current pointing to
and out of date or even a no more existing program which in turn
could lead to a segfault in some driver. To avoid this _Current
ptr is updated along Current if _Current where previously pointing
to the same program.
Patrice Mandin [Sun, 14 Jan 2007 13:11:10 +0000 (14:11 +0100)]
nouveau: remove already defined NV15_TCL and NV17_TCL
Patrice Mandin [Sun, 14 Jan 2007 13:09:04 +0000 (14:09 +0100)]
nouveau: import color material r,g,b,a
Patrice Mandin [Sun, 14 Jan 2007 13:03:42 +0000 (14:03 +0100)]
nouveau: nv10: stencil functions
Patrice Mandin [Sun, 14 Jan 2007 11:51:30 +0000 (12:51 +0100)]
nouveau: nv10: currently fails initcard and bindbuffers, till done
Patrice Mandin [Sun, 14 Jan 2007 11:45:15 +0000 (12:45 +0100)]
nouveau: nv10 blending done, remove nv10Viewport
Patrice Mandin [Sat, 13 Jan 2007 13:14:19 +0000 (14:14 +0100)]
nouveau: update nv10 state
Patrice Mandin [Sat, 13 Jan 2007 12:56:18 +0000 (13:56 +0100)]
nouveau: Add clear color for nv10
Patrice Mandin [Sat, 13 Jan 2007 12:22:03 +0000 (13:22 +0100)]
nv10 has alpha color mask
Jerome Glisse [Thu, 11 Jan 2007 11:53:06 +0000 (12:53 +0100)]
Eric Anholt [Wed, 10 Jan 2007 00:39:10 +0000 (16:39 -0800)]
Track rename of DamagePost -> DamageAdd.
Roland Scheidegger [Tue, 9 Jan 2007 13:42:22 +0000 (14:42 +0100)]
put back missing Driver.PolygonMode call (bug 9578)
Michel Dänzer [Thu, 21 Dec 2006 17:06:58 +0000 (18:06 +0100)]
i915tex: Remove unused tex_program field.
Michel Dänzer [Thu, 21 Dec 2006 16:30:00 +0000 (17:30 +0100)]
intel_finalize_mipmap_tree: Only flush batchbuffer when necessary.
Keith Packard [Mon, 8 Jan 2007 07:00:48 +0000 (23:00 -0800)]
Merge branch 'origin'
Ben Skeggs [Mon, 8 Jan 2007 00:53:45 +0000 (11:53 +1100)]
nouveau: allow the use of multiple subchannels/objects by default.
Keith Packard [Sun, 7 Jan 2007 01:13:45 +0000 (17:13 -0800)]
Various warning fixes for i965 driver.
vertex/fragment programs provided as const.
bmSetFenceLock should return bmSetFence value.
Keith Packard [Sun, 7 Jan 2007 01:13:29 +0000 (17:13 -0800)]
Initialize GL_ARB_occlusion_query only if DRM support is present.
DRM versions before 1.8 do not include the necessary ioctls to support
GL_ARB_occlusion_query, don't enable it on these versions.
Haihao Xiang [Wed, 27 Dec 2006 00:45:02 +0000 (16:45 -0800)]
i965: Support linear format in i965.
Signed-off-by: Keith Packard <keithp@neko.keithp.com>
Zou Nan hai [Wed, 13 Dec 2006 07:27:17 +0000 (15:27 +0800)]
i965: xdemos/glxthreads get: Assertion `block->fenced' failed (9201)
Signed-off-by: Keith Packard <keithp@neko.keithp.com>
Zou Nan hai [Tue, 12 Dec 2006 07:00:27 +0000 (15:00 +0800)]
i965: Take clip rects into account when computing max prim
Signed-off-by: Keith Packard <keithp@neko.keithp.com>
Wang Zhenyu [Mon, 11 Dec 2006 08:01:56 +0000 (00:01 -0800)]
i965: ARB_occlusion_query support
Signed-off-by: Keith Packard <keithp@neko.keithp.com>
Eric Anholt [Wed, 18 Oct 2006 07:24:01 +0000 (00:24 -0700)]
i965: Avoid branch instructions while in single program flow mode.
There is an errata for Broadwater that threads don't have the instruction/loop
mask stacks initialized on thread spawn. In single program flow mode, those
stacks are not writable, so we can't initialize them. However, they do get
read during ELSE and ENDIF instructions. So, instead, replace branch
instructions in single program flow mode with predicated jumps (ADD to the ip
register), avoiding use of the more complicated branch instructions that may
fail. This is also a minor optimization as no ENDIF equivalent is necessary.
Signed-off-by: Keith Packard <keithp@neko.keithp.com>
Eric Anholt [Wed, 11 Oct 2006 19:16:09 +0000 (12:16 -0700)]
i965: Connect INTEL_DEBUG=sync up to cmd/batch ioctls.
Signed-off-by: Keith Packard <keithp@neko.keithp.com>
Brian [Sat, 6 Jan 2007 21:55:07 +0000 (14:55 -0700)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Sat, 6 Jan 2007 19:58:28 +0000 (12:58 -0700)]
document 32-bit Z line/point fix
Brian [Sat, 6 Jan 2007 19:55:17 +0000 (12:55 -0700)]
Use GLuint instead of GLint to store intermediate Z values. Fixes problems when using 32-bit Z buffer.
Eric Anholt [Sat, 6 Jan 2007 02:19:58 +0000 (18:19 -0800)]
Add reporting of damage by DRI drivers when the extension support is available.
With this, tools like ximagesrc in gstreamer correctly see updates from GL
rendering. Support requires that the Xdamage library be current (but will be
disabled if not present) plus a new X Server with support for the new
XDamagePost request. libGL now has a new interface version, and also links
against libXdamage and libXfixes to support it, but backwards compatibility
is retained.
Currently, all drivers report damage at SwapBuffers time through common code --
front buffer rendering doesn't result in damage being reported. Also, the
damage is against the root window, as our drivers don't yet render to backing
store when they should (composited environments).
Brian [Fri, 5 Jan 2007 15:42:45 +0000 (08:42 -0700)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Fri, 5 Jan 2007 15:41:16 +0000 (08:41 -0700)]
document VBO bug fix 9445
Brian [Fri, 5 Jan 2007 15:40:06 +0000 (08:40 -0700)]
Fix glPush/PopClientAttrib() for VBO state (bug 9445).
Ian Romanick [Fri, 5 Jan 2007 02:37:10 +0000 (18:37 -0800)]
Merge branch 'master' of ssh+git://idr@git.freedesktop.org/git/mesa/mesa
Ian Romanick [Thu, 4 Jan 2007 22:53:48 +0000 (14:53 -0800)]
Use glxbyteorder.h in server-side source files.
Ian Romanick [Thu, 4 Jan 2007 22:52:53 +0000 (14:52 -0800)]
Hack indent flags for indirect_reqsize.h to eliminate extra diffs.
Ian Romanick [Thu, 4 Jan 2007 22:47:41 +0000 (14:47 -0800)]
Add missing files to server generation list.
The files indirect_reqsize.c and indirect_reqsize.h were missing from
the list of files to be generated for the server. Add them back to
the list. Also, update the INDENT_FLAGS to prevent conversion of
'GLbyte *pc' to 'GLbyte * pc' in function prototypes.
Jerome Glisse [Thu, 4 Jan 2007 19:27:49 +0000 (20:27 +0100)]
r300: Correct bug introduced by fragprog rework.
Thx for Tilman who spoted the bugs.
Brian [Thu, 4 Jan 2007 14:53:32 +0000 (07:53 -0700)]
s/unsigned/size_t/ (Matthias Hopf)
Patrice Mandin [Tue, 2 Jan 2007 13:31:16 +0000 (14:31 +0100)]
Update spot light params
Ben Skeggs [Tue, 2 Jan 2007 04:09:10 +0000 (15:09 +1100)]
nouveau: bump drm patchlevel.
Dave Airlie [Sat, 30 Dec 2006 23:01:17 +0000 (10:01 +1100)]
fix issue with i915tex advertising visuals it can't support
This may not be the proper way to fix this but it does work easily.
Haihao Xiang [Sat, 30 Dec 2006 18:30:42 +0000 (10:30 -0800)]
Use the tiled flag in the sarea to determine region tiling.
This fixes mis-rendering if back/depth fail to get set up as tiled. While it
probably won't ever be the case now that the pitch limits are loosened, this is
still the right thing to do.
Ben Skeggs [Wed, 27 Dec 2006 12:52:40 +0000 (23:52 +1100)]
nouveau: Use bufferobj interface for fragment program uploads
Ben Skeggs [Wed, 27 Dec 2006 12:30:34 +0000 (23:30 +1100)]
nouveau: Initial buffer object support
Ben Skeggs [Wed, 27 Dec 2006 04:54:30 +0000 (15:54 +1100)]
nouveau: We'll need syncNotifier for NV_MEMORY_TO_MEMORY_FORMAT too.
Ben Skeggs [Wed, 27 Dec 2006 04:50:59 +0000 (15:50 +1100)]
nouveau: add nouveau_mem_alloc/free debugging
Ben Skeggs [Wed, 27 Dec 2006 04:39:52 +0000 (15:39 +1100)]
nouveau: record *actual* type of memory that was alloc'd, not the requested types.
Ben Skeggs [Wed, 27 Dec 2006 04:38:09 +0000 (15:38 +1100)]
nouveau: Typo
Ben Skeggs [Tue, 26 Dec 2006 13:02:38 +0000 (00:02 +1100)]
nouveau: Add simple wrapper for NV_MEMORY_TO_MEMORY_FORMAT.
Jerome Glisse [Tue, 26 Dec 2006 17:39:21 +0000 (18:39 +0100)]
Deleted unused file which likely have be reintroduced during git move.
This file was deleted longtime ago, guess that git migration
created it again.
Ben Skeggs [Tue, 26 Dec 2006 11:03:12 +0000 (22:03 +1100)]
nouveau: Make use of NOUVEAU_DEBUG for shader disasm
Ben Skeggs [Tue, 26 Dec 2006 10:33:58 +0000 (21:33 +1100)]
nouveau: Make the notifier stuff actually work..
Ben Skeggs [Tue, 26 Dec 2006 10:10:38 +0000 (21:10 +1100)]
nouveau: Wait on notifier to check for completion of previous commands.
We can't wait on NV_PGRAPH_STATUS. We don't have the regs mapped, and there's
no guarantee that we'll catch PGRAPH idle when multiple channels are active.
Ben Skeggs [Tue, 26 Dec 2006 09:59:49 +0000 (20:59 +1100)]
nouveau: Add notifier support functions
Jerome Glisse [Mon, 25 Dec 2006 22:34:56 +0000 (23:34 +0100)]
Rework r300 fragprog avoid using bitfield structure.
It seems that bitfield structure lead to some strange
problem on 64bits arch, don't want to waste time debugging
strange things like that so converted pfs_reg_t structure
to a GLuint and use good old masking and shifting spell.
(cherry picked from
2a7de9d095d8e60da12b11aaa1efe664b87b11d3 commit)
Ben Skeggs [Sat, 23 Dec 2006 13:50:13 +0000 (00:50 +1100)]
nouveau: Kill some compile warnings.
Ben Skeggs [Sat, 23 Dec 2006 13:13:34 +0000 (00:13 +1100)]
nouveau: Modify span routines to use nouveau_renderbuffer instead of driRenderbuffer
Ben Skeggs [Sat, 23 Dec 2006 12:51:24 +0000 (23:51 +1100)]
nouveau: maintain numClipRects/pClipRects in context.