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
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.
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.
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
Keith Whitwell [Sun, 4 Mar 2007 21:47:05 +0000 (21:47 +0000)]
Propogate UsesKill information.
Christoph Bill [Thu, 1 Mar 2007 20:11:45 +0000 (21:11 +0100)]
r300: Use register name & add a register about shading.
Christoph Bill [Thu, 1 Mar 2007 19:45:04 +0000 (20:45 +0100)]
r300: Use reg definition when available & add missing reg definition.
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).
Rune Petersen [Thu, 1 Mar 2007 19:36:19 +0000 (20:36 +0100)]
Optimize cos&sin instruction a bit more.
Brian [Thu, 1 Mar 2007 16:40:21 +0000 (09:40 -0700)]
move oldFb decl into tighter scopes
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
Brian [Thu, 1 Mar 2007 14:56:11 +0000 (07:56 -0700)]
fix clipping, display name, warnings
Brian [Thu, 1 Mar 2007 14:42:42 +0000 (07:42 -0700)]
s/unsigned int/size_t/ (bug 10135)
Brian [Thu, 1 Mar 2007 14:39:27 +0000 (07:39 -0700)]
include assert.h
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
Brian [Wed, 28 Feb 2007 18:58:06 +0000 (11:58 -0700)]
s/ARB/MESA/ in extension check (bug 10126)
Ben Skeggs [Wed, 28 Feb 2007 04:31:28 +0000 (15:31 +1100)]
nouveau: drm interface changes
Brian [Tue, 27 Feb 2007 18:09:48 +0000 (11:09 -0700)]
fix comment
Brian [Tue, 27 Feb 2007 18:09:28 +0000 (11:09 -0700)]
assert that fb->RefCount==0 in _mesa_free_framebuffer_data()
Brian [Tue, 27 Feb 2007 00:05:52 +0000 (17:05 -0700)]
fix mem leak
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.
Brian [Mon, 26 Feb 2007 18:37:52 +0000 (11:37 -0700)]
if renderbuffer ptr is null, just return
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.
Brian [Mon, 26 Feb 2007 16:19:32 +0000 (09:19 -0700)]
updated version with new Khronos license/copyright
Panagiotis Papadakos [Mon, 26 Feb 2007 14:59:14 +0000 (07:59 -0700)]
s/pdp/prp/ in DoBindContext()
Panagiotis Papadakos [Mon, 26 Feb 2007 14:57:31 +0000 (07:57 -0700)]
add missing param to _mesa_warning()
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
Aapo Tahkola [Sun, 25 Feb 2007 23:51:39 +0000 (01:51 +0200)]
Fix #10071 - wrong max_index in vbo draw_prims. (Papadakos Panagiotis)
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
Brian [Sun, 25 Feb 2007 01:15:45 +0000 (18:15 -0700)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Sun, 25 Feb 2007 01:14:53 +0000 (18:14 -0700)]
Fix broken cubemap mipmap layout (the cubemap.c demo was segfaulting).
In i915_miptree_layout() change the width, height parameters that are passed
to intel_miptree_set_level_info(). As it was, the width, height values were
larger than the source image dimensions and we segfaulted in memcpy() when
copying the original texture data into the texture buffer region.
This fix should probably be checked by someone more familiar with the code (Keith?)
Brian [Sun, 25 Feb 2007 01:11:09 +0000 (18:11 -0700)]
clean-up, comment code
Brian [Sun, 25 Feb 2007 01:10:41 +0000 (18:10 -0700)]
make src ptr const
Ian Romanick [Fri, 23 Feb 2007 23:15:50 +0000 (15:15 -0800)]
Fix GLAPIENTRYP for OS X.
Fix build problems related to incorrect define of GLAPIENTRYP on OS X.
Reported by bushing on IRC.
Roland Scheidegger [Fri, 23 Feb 2007 00:43:13 +0000 (01:43 +0100)]
r200 fix broken (by new input handling) fogcoord
Brian [Thu, 22 Feb 2007 15:57:36 +0000 (08:57 -0700)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Dave Airlie [Thu, 22 Feb 2007 08:33:50 +0000 (19:33 +1100)]
r300: get rid of CB_DPATH legacy
Ian Romanick [Tue, 20 Feb 2007 23:19:23 +0000 (15:19 -0800)]
Merge branch 'master' of ssh+git://idr@git.freedesktop.org/git/mesa/mesa
Ian Romanick [Tue, 20 Feb 2007 23:18:53 +0000 (15:18 -0800)]
Delete two invalid assertions.
These two assertions are invalid for a couple reasons. Primarily,
when this code is compiled into the X-server, the symbols
"glSecondaryColor3fEXT" and "glPointParameterivNV" do not exist.
Patrice Mandin [Tue, 20 Feb 2007 22:17:09 +0000 (23:17 +0100)]
nouveau: nv10: grr, ctx->DrawBuffer invalid?
Patrice Mandin [Tue, 20 Feb 2007 22:13:48 +0000 (23:13 +0100)]
nouveau: nv10: also check ctx->DrawBuffer in nv10ViewportScale
Patrice Mandin [Tue, 20 Feb 2007 22:04:21 +0000 (23:04 +0100)]
nouveau: nv10: keep 24/8 depth/stencil value, don't check for depth bits
Adam Jackson [Tue, 20 Feb 2007 17:48:50 +0000 (12:48 -0500)]
Fix parallel make in r300 driver.
Brian [Tue, 20 Feb 2007 16:24:06 +0000 (09:24 -0700)]
more branch info
Brian [Tue, 20 Feb 2007 15:41:15 +0000 (08:41 -0700)]
glxext.h version 18
Brian [Tue, 20 Feb 2007 15:40:55 +0000 (08:40 -0700)]
updated to version 18
Brian [Tue, 20 Feb 2007 15:38:46 +0000 (08:38 -0700)]
glext.h version 39
Brian [Tue, 20 Feb 2007 15:38:29 +0000 (08:38 -0700)]
updated to version 39
Christian Neumair [Tue, 20 Feb 2007 15:11:11 +0000 (08:11 -0700)]
set log level w/ env var
Thomas Hellstrom [Mon, 19 Feb 2007 18:57:30 +0000 (19:57 +0100)]
i915tex: Fix performance regression with new vbo code and latest drm.
With current memory preferences, vbos ended up in AGP space
where reading from them got a bit slow.
Make sure buffer objects are initially created in system memory.
Sean D'Epagnier [Sat, 17 Feb 2007 00:46:11 +0000 (17:46 -0700)]
Merge branch 'master' of git+ssh://geckosenator@git.freedesktop.org/git/mesa/mesa
Sean D'Epagnier [Sat, 17 Feb 2007 00:44:13 +0000 (17:44 -0700)]
Commiting a few minor fixes to glut fbdev (segfault on a separate stack)
Updated all drivers that used the old _ac_ functions to use
the new _vbo_ functions. I know this fixed the fbdev driver,
it looks like it might fix some other drivers too.
Jerome Glisse [Fri, 16 Feb 2007 22:22:04 +0000 (23:22 +0100)]
doxygen: update doxygen project number to 6.5
doxygen number was laggin behind a bit.
Jerome Glisse [Fri, 16 Feb 2007 22:18:56 +0000 (23:18 +0100)]
Update doxygen doc to reflet vbo changes.
Update doxygen doc, array_cache no longuer exist,
new shiny vbo modules is there. Tested on unix,
but i think i didn't broke that bat :).
Patrice Mandin [Fri, 16 Feb 2007 21:39:28 +0000 (22:39 +0100)]
nouveau: nv50: update
Patrice Mandin [Fri, 16 Feb 2007 21:39:12 +0000 (22:39 +0100)]
nouveau: nv10,20: wrong viewport clip setup
Patrice Mandin [Fri, 16 Feb 2007 21:09:42 +0000 (22:09 +0100)]
nouveau: nv20: texture matrix
Patrice Mandin [Fri, 16 Feb 2007 21:03:31 +0000 (22:03 +0100)]
nouveau: nv20: update
Patrice Mandin [Fri, 16 Feb 2007 19:26:57 +0000 (20:26 +0100)]
nouveau: nv10: set clear value for 16 and 24 bits depth
Patrice Mandin [Fri, 16 Feb 2007 18:54:55 +0000 (19:54 +0100)]
nouveau: nv10: rescale depth near and far
Patrice Mandin [Fri, 16 Feb 2007 18:46:54 +0000 (19:46 +0100)]
nouveau: nv10: fix viewport scale and origin
Rune Peterson [Wed, 14 Feb 2007 22:10:52 +0000 (23:10 +0100)]
r300: Fix cos & add scs to fragment program.
So this do :
- Fixes COS.
- Does range reductions for SIN & COS.
- Adds SCS.
- removes the optimized version of SIN & COS.
- tweaked weight (should help on precision).
- fixed a copy paste typo in emit_arith().
Etienne Clement [Wed, 14 Feb 2007 20:21:12 +0000 (13:21 -0700)]
test for POT before using sample_2d_linear_repeat()
Roland Scheidegger [Wed, 14 Feb 2007 19:34:52 +0000 (20:34 +0100)]
fix typo preventing generic arrays from working with ARB_vp (bug #9952)
Patrice Mandin [Wed, 14 Feb 2007 19:28:31 +0000 (20:28 +0100)]
nouveau: nv10: there are 8 clipping regions
Roland Scheidegger [Wed, 14 Feb 2007 15:38:32 +0000 (16:38 +0100)]
fix stupid bug in the optimized per-vertex fog generation code
Thomas Hellstrom [Wed, 14 Feb 2007 10:11:23 +0000 (11:11 +0100)]
i915tex: Take into account various mapping states when dropping the
batch buffer after a resolution / rotation switch.
Xiang, Haihao [Mon, 12 Feb 2007 08:38:50 +0000 (16:38 +0800)]
I965: fix a failure on waiting irq.
Wait until getting the right fence if drm/i915 resets the
counter.
Zou Nan hai [Mon, 12 Feb 2007 04:16:49 +0000 (12:16 +0800)]
fd.o #BZ 9684
gcc may cast an overflowed float value to an negative int value on i386,
fix it to make sure at least some apps will not crash if it contains wrong normal data.
Rune Peterson [Sun, 11 Feb 2007 23:24:36 +0000 (00:24 +0100)]
r300: Add proper support for sin/cos instruction in fragment program
Getting proper SIN and COS wasn't as easy as it appeared.
I had to make make some changes to the fragment program code.
general FP changes:
- support HHH swizzle for vector instructions.
- don't copy a source to a temp when it is not XYZW swizzled, but
combine the two and have the swizzle resolve any issues.
(saves temps/instructions with more elaborate shader code)
- fix overflow in cnstv[].
Rune Peterson [Sun, 11 Feb 2007 01:19:43 +0000 (18:19 -0700)]
ctx->Point._Size fix
Roland Scheidegger [Fri, 9 Feb 2007 18:21:29 +0000 (19:21 +0100)]
optimize per-pixel fog program
use the same internal state as for vertex fog. From the old implemenentation,
this changes a SUB+MUL into a MAD for linear fog, and saves a MUL for EXP/EXP2,
plus saves a (constant) parameter. While here, fix the broken (forgotten)
swizzling. (untested)
Zou Nan hai [Fri, 9 Feb 2007 05:28:56 +0000 (13:28 +0800)]
array overflow fix
Roland Scheidegger [Thu, 8 Feb 2007 23:36:53 +0000 (00:36 +0100)]
r200: simplify / unify input map handling for vp and fftnl
Use the same input map handling for fftnl and vertex programs. It doesn't
enable any new functionality (should make it easy to support per-vertex
materials though), but the code is much cleaner.
Roland Scheidegger [Thu, 8 Feb 2007 23:36:40 +0000 (00:36 +0100)]
optimize generated vertex programs a bit
Use new internal state to avoid per-vertex normalization of static spot
direction vector. Use internal state for simpler per-vertex fog computations
(MAD instead of SUB/MUL for linear fog, EX2 instead of POW for EXP/EXP2 fog).
Simplify point size calc (2 MADs instead of MOV, MUL, MUL, DP3), and while
there fix it up (RSQ instead of RCP). All untested...
Roland Scheidegger [Thu, 8 Feb 2007 22:54:28 +0000 (23:54 +0100)]
fix issues in vp when using FRAG_BIT_WPOS in a fragment program (bug #9910)
Redirect all VERT_RESULT_HPOS writes to a temp and use that for fixup.
The viewport transformation still seems to take some shortcuts, and it
still does not seem to work at all...
Ben Skeggs [Tue, 6 Feb 2007 02:49:39 +0000 (13:49 +1100)]
nouveau: a couple of NV3x fixes
Jakob Bornecrantz [Mon, 5 Feb 2007 23:22:47 +0000 (10:22 +1100)]
Add support for CN700 chipset in miniglx
Roland Scheidegger [Mon, 5 Feb 2007 20:29:25 +0000 (21:29 +0100)]
fix issues when using mixed-mode pos-invariant vp and ff tnl (bug #9856)
ARB_vp requires vertex transformation to be invariant to fixed function tnl
if the position_invariant option is used. So the same function needs to be
used, otherwise z-fighting artifacts may happen with applications which rely
on the results being really the same due to precision issues when dealing with
floating point values (may not be a problem when using a non-optimizing
compiler strictly following IEEE rules).
Brian [Mon, 5 Feb 2007 17:29:58 +0000 (10:29 -0700)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Panagiotis Papadakos [Mon, 5 Feb 2007 17:29:10 +0000 (10:29 -0700)]
fix mem leak
Ben Skeggs [Mon, 5 Feb 2007 15:28:55 +0000 (02:28 +1100)]
nouveau: OUT_RINGp expects the size in dwords, not bytes.
This fixes the *actual* bug that the previous commit was supposed to fix..
Panagiotis Papadakos [Mon, 5 Feb 2007 15:17:50 +0000 (08:17 -0700)]
fix mem leaks
Ben Skeggs [Mon, 5 Feb 2007 14:57:04 +0000 (01:57 +1100)]
nouveau: fix a small bug in nv10 swtcl
Ben Skeggs [Mon, 5 Feb 2007 13:39:50 +0000 (00:39 +1100)]
nouveau: new bufferobj code.
The old code suffered from a number of issues, the most severe being that
with the Mesa VBO merge even swtcl used the driver's bufferobj interface.
On most VBO types (or non-AGP cards) the buffer ended up in vram, and
killed swtcl performance greatly. All bufferobj's start in system memory
now, until they get referenced as a "real" VBO.
The other big change is that only potentially "damaged" areas are
uploaded/downloaded to/from the hardware.
Panagiotis Papadakos [Mon, 5 Feb 2007 08:34:55 +0000 (10:34 +0200)]
break if we removed driver from Drivers list in driDestroyDisplay
Else we read memory we just released, in for statement.
Patrice Mandin [Sun, 4 Feb 2007 12:10:23 +0000 (13:10 +0100)]
nouveau: nv10: add init for unknown 0x120
Stephane Marchesin [Sun, 4 Feb 2007 02:17:06 +0000 (03:17 +0100)]
nouveau: fix nv04 and nv10 swtcl, more work on nv04 state.
Patrice Mandin [Sat, 3 Feb 2007 22:46:58 +0000 (23:46 +0100)]
nouveau: forgot function declaration
Patrice Mandin [Sat, 3 Feb 2007 22:32:12 +0000 (23:32 +0100)]
nouveau: nv50: use nv50 state
Brian [Sat, 3 Feb 2007 17:30:50 +0000 (10:30 -0700)]
Add _NEW_PROGRAM flag to _MESA_NEW_NEED_EYE_COORDS.
This fixes a segfault in the texgen code that can occur after we've
disabled a vertex program.
Michel Dänzer [Sat, 3 Feb 2007 16:37:01 +0000 (17:37 +0100)]
Merge branch 'origin'
Michel Dänzer [Sat, 3 Feb 2007 16:32:02 +0000 (17:32 +0100)]
Fall back to software rasterization if r300_translate_fragment_shader() fails.
Aborting immediately is a bad idea with AIGLX.
Michel Dänzer [Sat, 3 Feb 2007 16:24:22 +0000 (17:24 +0100)]
Remove unused r200 files from r300 driver directory.
Michel Dänzer [Sat, 3 Feb 2007 16:23:19 +0000 (17:23 +0100)]
r300CreateContext: Really initialize r300->initialMaxAnisotropy.
Patrice Mandin [Sat, 3 Feb 2007 12:22:42 +0000 (13:22 +0100)]
nouveau: fix viewport clipping initialization
Patrice Mandin [Sat, 3 Feb 2007 12:20:16 +0000 (13:20 +0100)]
nouveau: use color pitch as depth pitch if depth disabled
Roland Scheidegger [Sat, 3 Feb 2007 02:31:31 +0000 (03:31 +0100)]
disable r200 materials-between-begin-end check if vertex progs are enabled
Roland Scheidegger [Sat, 3 Feb 2007 02:15:45 +0000 (03:15 +0100)]
remove now unused vtxfmt stuff from radeon/r200 header files
Roland Scheidegger [Sat, 3 Feb 2007 02:15:14 +0000 (03:15 +0100)]
fix errorneously adding fog state params to all vertex programs...