Markus Amsler [Sun, 30 Mar 2008 16:10:47 +0000 (16:10 +0000)]
r300: Take PROGRAM_CONSTANT into account.
This bug was introduced by commit
978145a075255ae153ee05c2a037400e61558079.
Oliver McFadden [Sat, 29 Mar 2008 14:46:32 +0000 (14:46 +0000)]
Merge branch 'r300-vertprog-branch' of ssh://people.freedesktop.org/~z3ro/mesa
Brian [Fri, 28 Mar 2008 19:24:12 +0000 (13:24 -0600)]
fix texture/renderbuffer mix-up in test_attachment_completeness()
Xiang, Haihao [Fri, 28 Mar 2008 09:32:45 +0000 (17:32 +0800)]
i965: depth offset on glPolygonMode(GL_LINE/GL_POINT)
Dave Airlie [Fri, 28 Mar 2008 02:16:33 +0000 (13:16 +1100)]
r300: finish conversion of RS_INST regs
Dave Airlie [Fri, 28 Mar 2008 02:06:28 +0000 (13:06 +1100)]
r300: move to using RS_INST names
Brian [Thu, 27 Mar 2008 22:17:37 +0000 (16:17 -0600)]
consolidate some parsing functions that were pretty much identical for vertex/fragment programs
Brian [Thu, 27 Mar 2008 22:01:53 +0000 (16:01 -0600)]
when negating scalar src args, use NEGATE_XYZW, not NEGATE_X
This makes things easier on the back-end when generating GPU code.
cherry-picked from gallium-0.1
Brian [Thu, 27 Mar 2008 22:00:15 +0000 (16:00 -0600)]
Set param_var->param_binding_type = PROGRAM_CONSTANT
cherry-picked from gallium-0.1
Eric Anholt [Thu, 27 Mar 2008 18:57:08 +0000 (11:57 -0700)]
Add a couple of test apps for line/unfilled polygon clipping.
Michal Wajdeczko [Wed, 26 Mar 2008 20:43:16 +0000 (13:43 -0700)]
[965] Fix massively broken state cache dirty flagging.
It was flagging a last_bo update even when last_bo didn't change, but
another part was failing to update last_bo when it should have.
Michal Wajdeczko [Wed, 26 Mar 2008 20:33:34 +0000 (13:33 -0700)]
[intel] Use mesa texmemory functions to allocate teximage Data.
Failure to consistently do so resulted in mismatched aligned versus
unaligned alloc/free.
Eric Anholt [Wed, 26 Mar 2008 20:23:43 +0000 (13:23 -0700)]
[965] Don't let the negate flags of src0 affect 1 constants in precalc_dst/lit
This patch is a variant of a submission by Michal Wajdeczko to fix
oglconform fpalu failures.
Michal Wajdeczko [Wed, 26 Mar 2008 19:51:20 +0000 (12:51 -0700)]
[965] Correctly set read mask for OPCODE_SWZ in pass1.
While OPCODE_SWZ has usually been optimized away in pass0, it may still
exist if a SWZ with dst saturate was emitted in pass_fp. Fixes an error
in oglconform fpalu.c.
Eric Anholt [Tue, 25 Mar 2008 17:22:50 +0000 (10:22 -0700)]
[965] Clean up whitespace and dead code from do_unfilled change.
Oliver McFadden [Wed, 26 Mar 2008 08:01:13 +0000 (08:01 +0000)]
r300: Indented the vertex program code...
Oliver McFadden [Wed, 26 Mar 2008 07:53:16 +0000 (07:53 +0000)]
r300: Cleaned up the default vertex program code with longer lines.
Oliver McFadden [Wed, 26 Mar 2008 07:28:29 +0000 (07:28 +0000)]
r300: Removed the last of the duplicate vertex program macros.
Oliver McFadden [Wed, 26 Mar 2008 07:09:21 +0000 (07:09 +0000)]
r300: Added Copyright lines to the vertex program code.
Zou Nan hai [Wed, 26 Mar 2008 06:40:30 +0000 (14:40 +0800)]
[i915] don't use 4x4 filter for 1D shadowmap
Oliver McFadden [Wed, 26 Mar 2008 06:31:33 +0000 (06:31 +0000)]
r300: Renamed the Mesa opcode translation functions.
Oliver McFadden [Wed, 26 Mar 2008 06:24:48 +0000 (06:24 +0000)]
r300: Renamed the destination-and-opcode/source macros to more appropriate names.
Brian [Tue, 25 Mar 2008 20:03:52 +0000 (14:03 -0600)]
implement glGet/BindAttribLocationARB() for display lists
More such shader functions are needed...
Brian [Tue, 25 Mar 2008 14:11:27 +0000 (08:11 -0600)]
updated to version 40
Xiang, Haihao [Tue, 25 Mar 2008 09:29:08 +0000 (17:29 +0800)]
intel: fix the issue "VBO: Cannot allocate memory for a BO" on
965 after merging intel_context.c from i915 and i965. fix bug# 15152.
Brian [Tue, 25 Mar 2008 01:55:41 +0000 (19:55 -0600)]
add GL_READ_FRAMEBUFFER_BINDING_EXT case, regenerate get.c file
Brian [Tue, 25 Mar 2008 01:55:11 +0000 (19:55 -0600)]
fix wrong values for GL_READ/DRAW_FRAMEBUFFER_BINDING_EXT tokens
Alex Deucher [Mon, 24 Mar 2008 18:49:43 +0000 (14:49 -0400)]
R300: fix typo r300 fog reg
Noticed by pzad on IRC
Oliver McFadden [Mon, 24 Mar 2008 12:46:56 +0000 (12:46 +0000)]
r300: Merged the constant zero/one source macros.
Oliver McFadden [Mon, 24 Mar 2008 12:46:40 +0000 (12:46 +0000)]
r300: Merged the Vector and Math Engine opcode macros.
Eric Anholt [Sat, 22 Mar 2008 18:03:16 +0000 (11:03 -0700)]
autoconf: Add a workaround for second AC_PROG_PATH not overwriting results.
Brian [Sat, 22 Mar 2008 16:27:03 +0000 (10:27 -0600)]
use ctx->Driver.DeleteProgram() in a few more places
Brian [Sat, 22 Mar 2008 15:11:43 +0000 (09:11 -0600)]
delete default programs with ctx->Driver.DeleteProgram()
Michal Wajdeczko [Fri, 21 Mar 2008 21:18:26 +0000 (14:18 -0700)]
[965] Avoid emitting dead code for DPx/math instructions.
The pass1 optimization stage clears out writemasks and registers, but the
instructions themselves are still being processed at this stage, and could
have resulted in them still being emitted.
Michal Wajdeczko [Fri, 21 Mar 2008 20:48:12 +0000 (13:48 -0700)]
[965] Improve pinterp performance by delaying reads of just-written regs.
Michal Wajdeczko [Fri, 21 Mar 2008 20:43:44 +0000 (13:43 -0700)]
[965] Fix negating of unsigned value in emit_wpos_xy.
Michal Wajdeczko [Fri, 21 Mar 2008 20:41:12 +0000 (13:41 -0700)]
[965] Add MVP code for position invariant vertex programs.
This fixes the arbvptorus demo.
Michal Wajdeczko [Fri, 21 Mar 2008 20:11:07 +0000 (13:11 -0700)]
[win32] Use native aligned memory allocation functions.
Michal Wajdeczko [Fri, 21 Mar 2008 20:05:42 +0000 (13:05 -0700)]
[965] Shuffle state flags to match the order we initialize them in.
Michal Wajdeczko [Fri, 21 Mar 2008 00:38:12 +0000 (17:38 -0700)]
intel: Use _mesa_ffs wrapper, and fix a use-after-free with INTEL_DEBUG=buf.
Eric Anholt [Fri, 21 Mar 2008 00:28:58 +0000 (17:28 -0700)]
autoconf: automatically detect if -ldl is required.
This logic was copied from the xserver.
Eric Anholt [Fri, 21 Mar 2008 00:19:07 +0000 (17:19 -0700)]
Fix xdemos build on FreeBSD: <sys/types.h> before <netinet/tcp.h>
Eric Anholt [Fri, 21 Mar 2008 00:14:20 +0000 (17:14 -0700)]
Fix autoconf build on FreeBSD: detect gmake, and put -D*_SOURCE under linux.
Brian [Fri, 21 Mar 2008 20:19:28 +0000 (14:19 -0600)]
Refactor PBO validate/map code.
We always need to do PBO validation, so do that in core Mesa before calling driver routine.
Brian [Fri, 21 Mar 2008 19:42:36 +0000 (13:42 -0600)]
include varray.h to silence warning
Brian [Fri, 21 Mar 2008 19:41:00 +0000 (13:41 -0600)]
add a number of PBO validate/map/unmap functions
Helper functions for (some) drivers, including swrast.
Brian [Fri, 21 Mar 2008 18:31:21 +0000 (12:31 -0600)]
Fix some PBO breakage.
In _mesa_Bitmap, can't early return if bitmap ptr is NULL, it may be an offset
into a PBO. Similarly for _mesa_GetTexImage.
Zou Nan hai [Fri, 21 Mar 2008 10:16:11 +0000 (18:16 +0800)]
[i965] multiple rendering target fix
Zou Nan hai [Thu, 20 Mar 2008 09:47:02 +0000 (17:47 +0800)]
[i915] GL_DEPTH_TEXTURE_MODE fix
Xiang, Haihao [Thu, 20 Mar 2008 03:22:46 +0000 (11:22 +0800)]
mesa: The span array is only populated in single-pixel
point drawing function.
Eric Anholt [Thu, 20 Mar 2008 00:53:21 +0000 (17:53 -0700)]
[965] Initialize region surface key structure padding.
Fixes valgrind warnings, and potential performance loss from cache misses.
Eric Anholt [Wed, 19 Mar 2008 23:14:48 +0000 (16:14 -0700)]
[intel] Fix an uninitialized variable access in PRESUMED_OFFSET clearing.
It was harmless, as the only time we need to clear PRESUMED_OFFSET, the
variable had been initialized already.
Brian [Wed, 19 Mar 2008 23:24:20 +0000 (17:24 -0600)]
fix IEEE_ONE definition for ICC compiler (bug 15134)
Alex Deucher [Wed, 19 Mar 2008 22:10:47 +0000 (18:10 -0400)]
Radeon 9500 (0x4144) only has one pipe
confirmed by Reid Linnemann <lreid@cs.okstate.edu>
Brian [Wed, 19 Mar 2008 15:52:08 +0000 (09:52 -0600)]
x86_init_func_size() returns int to indicate success/fail (bug 15119)
Brian [Wed, 19 Mar 2008 14:38:28 +0000 (08:38 -0600)]
s/x86_init_func/x86_init_func_size (fixes bug 15119)
Zou Nan hai [Wed, 19 Mar 2008 08:32:29 +0000 (16:32 +0800)]
[i915] arb point sprite only support in i965
Zou Nan hai [Wed, 19 Mar 2008 08:29:47 +0000 (16:29 +0800)]
[i915] fix fragment.position
Eric Anholt [Wed, 19 Mar 2008 02:45:30 +0000 (19:45 -0700)]
[i915] Bug #13634: Fix bugs in 945 cube mipmap layout.
The most egregious, and the one the bug report and failure in the cubemap
demo were about was introduced with intel_mipmap_pitch_align(), where a
"* 2" for the pitch calculation was lost. The base size < 32 case also
failed to align, which may have caused problems with render to texture.
Another bug would have broken 2x2/1x1 base mipmap levels by placing the
data where the hardware wouldn't look for it.
Other bugs remain with the layout of the small mipmap faces (hardware looks
for them in X,Y,Z,-X,-Y,-Z order along the bottom row, but we lay them out
X,-X,Y,-Y,Z,-Z).
Eric Anholt [Wed, 19 Mar 2008 00:49:31 +0000 (17:49 -0700)]
[i915] Add comments about how cube texture layout works.
Eric Anholt [Tue, 18 Mar 2008 23:06:41 +0000 (16:06 -0700)]
[i915] Move miptree layout code into separate functions per target.
Also clean up some other miscellaneous formatting nits while I'm at it.
Eric Anholt [Tue, 18 Mar 2008 23:20:44 +0000 (16:20 -0700)]
[intel] Clarify miptree layout by using byte offsets to images.
Eric Anholt [Tue, 18 Mar 2008 22:29:11 +0000 (15:29 -0700)]
[945] Remove conditional in 945 3D mipmap layout checking for cube layout.
Alan Hourihane [Wed, 19 Mar 2008 01:03:48 +0000 (01:03 +0000)]
set outputs_safe to 0 as it's possible for the code generation
to slip over the allocated memory for the vb.
pull in sse fixes from gallium-0.1
Zou Nan hai [Tue, 18 Mar 2008 09:37:25 +0000 (17:37 +0800)]
Revert "[i965] make stipple pattern continue across GL_LINE_LOOP and GL_LINE_STRIP"
There is no information in GS to determinate when to reset line stipple count, still fallback to software
This reverts commit
5a0314b431ab147c6156c3011f4cb54161ba4b25.
Xiang, Haihao [Tue, 18 Mar 2008 07:02:57 +0000 (15:02 +0800)]
glx: Add isDirect back to __GLXcontextRec. It is needed
to check whether oldGC is used for direct rendering in
function MakeContextCurrent. However it is possible
oldGC->driContext is already freed. fix bug #14926.
Zou Nan hai [Tue, 18 Mar 2008 02:27:20 +0000 (10:27 +0800)]
[i965] make stipple pattern continue across GL_LINE_LOOP and GL_LINE_STRIP
Dave Airlie [Tue, 18 Mar 2008 00:29:16 +0000 (10:29 +1000)]
r300: add new rs690 pci id
Andrzej Trznadel [Mon, 17 Mar 2008 22:54:24 +0000 (15:54 -0700)]
[965] Fix fp temp reg release code to not usually release all temps.
Also, use wrapped ffs() instead of native.
Andrzej Trznadel [Mon, 17 Mar 2008 22:52:08 +0000 (15:52 -0700)]
Fix compat implementation of ffs() to return 1-based bit numbers.
Markus Amsler [Mon, 17 Mar 2008 14:35:27 +0000 (08:35 -0600)]
only set InputsRead bit if input is really used
Markus Amsler [Mon, 17 Mar 2008 11:11:11 +0000 (12:11 +0100)]
mesa: Add vertex.attrib 0-15 to arb_input_attrib_string.
Markus Amsler [Mon, 17 Mar 2008 11:03:54 +0000 (12:03 +0100)]
r300: Simplify r300VAPInputRoute1.
Markus Amsler [Mon, 17 Mar 2008 11:02:56 +0000 (12:02 +0100)]
r300: Simplify r300VAPInputRoute0, check for valid input.
Zou Nan hai [Mon, 17 Mar 2008 09:52:26 +0000 (17:52 +0800)]
[i965] round pointsize to nearest int according to spec
Xiang, Haihao [Mon, 17 Mar 2008 09:02:42 +0000 (17:02 +0800)]
Xiang, Haihao [Mon, 17 Mar 2008 08:52:07 +0000 (16:52 +0800)]
intel: It is needed to allocating texture memory to accommodate
a texture when calling TexImage with pixels set to NULL pointer.
Xiang, Haihao [Mon, 17 Mar 2008 08:50:20 +0000 (16:50 +0800)]
intel: Remove an assertion from intel_miptree_create. TexImage
call with zero width/height/depth matches GL spec.
Xiang, Haihao [Mon, 17 Mar 2008 08:48:36 +0000 (16:48 +0800)]
mesa: avoid to unlock an unlocked array in _mesa_PopClientAttrib
Xiang, Haihao [Mon, 17 Mar 2008 08:47:42 +0000 (16:47 +0800)]
mesa: Follow GL spec to draw DEPTH_COMPONENT pixels when
there's no depth buffer. Fix bug #11580
Zou Nan hai [Mon, 17 Mar 2008 08:39:10 +0000 (16:39 +0800)]
[i965] fix wpos height 1 pixel higher
Kristian Høgsberg [Sat, 15 Mar 2008 18:06:42 +0000 (14:06 -0400)]
Test createNewScreen for NULL, not createNewScreenName in driCreateScreen().
Brian [Fri, 14 Mar 2008 20:15:55 +0000 (14:15 -0600)]
init tmpNode to zeros
Brian [Fri, 14 Mar 2008 19:59:32 +0000 (13:59 -0600)]
mesa: fix emit_clamp() so that we don't use an output register as temporary
IR_CLAMP is decomposed into OPCODE_MIN+OPCODE_MAX. Allocate a temporary
register for the intermediate value so we don't inadvertantly use an output
register (which are write-only on some GPUs).
Xiang, Haihao [Fri, 14 Mar 2008 07:27:15 +0000 (15:27 +0800)]
glx: fix rotation regression. bug #14963
Xiang, Haihao [Fri, 14 Mar 2008 03:39:08 +0000 (11:39 +0800)]
intel: fix abort issue with shadowtex demo when use
DEPTH_STENCIL texture. (bug#14952).
Roland Scheidegger [Thu, 13 Mar 2008 11:43:04 +0000 (12:43 +0100)]
fix state.lightprod ambient/specular w value (bug #14983)
Zou Nan hai [Thu, 13 Mar 2008 06:46:38 +0000 (14:46 +0800)]
[i965] multiple rendering target support
Kristian Høgsberg [Wed, 12 Mar 2008 06:18:12 +0000 (02:18 -0400)]
libGL: Pull the drawable hash back out in the generic code.
This will be shared between dri and dri2 code.
Kristian Høgsberg [Wed, 12 Mar 2008 06:01:40 +0000 (02:01 -0400)]
Add another missing check for uninitialized DRI.
Spotted by Chris Taylor.
Dan Nicholson [Tue, 11 Mar 2008 13:24:56 +0000 (06:24 -0700)]
Fix include path for rain demo so glut.h is found
Dan Nicholson [Mon, 10 Mar 2008 21:05:46 +0000 (14:05 -0700)]
autoconf: Enable xdemos by default when we build libGL
Since the xdemos only link to libGL now, we can enable them for all but
the osmesa driver target.
Jeremy Huddleston [Mon, 10 Mar 2008 23:02:55 +0000 (16:02 -0700)]
Darwin: Fixed small error in darwin config files
(cherry picked from commit
a21c61ee8bc86a8843024cbf8e9daf4b39a7571a)
Kristian Høgsberg [Mon, 10 Mar 2008 22:43:53 +0000 (18:43 -0400)]
Move make install logic for libGL back into src/mesa/Makefile.
This makes make install work again for non-glx libGL implementations.
The make install logic is split into three sub-targets: install-libgl,
install-osmesa, install-drivers. The install target in src/glx/x11
is then implemented using the src/mesa make install-libgl rule.
Thanks to Dan Nicholson for pointing out the breakage.
Kristian Høgsberg [Mon, 10 Mar 2008 21:59:46 +0000 (17:59 -0400)]
Only try to call DRI function if DRI got initialized properly.
Jeremy Huddleston [Mon, 10 Mar 2008 22:13:28 +0000 (15:13 -0700)]
Darwin: Config/source fixes to now build glxdemo apps and OSMesa
Also added darwin-fat-32bit darwin-fat-all configs and deleted old darwin-x86ppc config
(cherry picked from commit
7120c0089d663a2b7e7b0c97da38f9bc233fbdd7)
Dan Nicholson [Fri, 7 Mar 2008 20:04:17 +0000 (12:04 -0800)]
autoconf: Add autogen.sh from Xorg for easier setup from git
The defacto method to rebuild the autotools and run the generated
configure is an autogen.sh script. It is much more discoverable than the
custom `make configure' used here. The Makefile targets are still useful
for creating tarballs, though. This autogen.sh is copied from Xorg.
Dan Nicholson [Mon, 10 Mar 2008 19:36:10 +0000 (12:36 -0700)]
Ignore more demo programs
Brian [Mon, 10 Mar 2008 13:42:58 +0000 (07:42 -0600)]
remove extra #include of assert.h (bug 14932)
Brian [Mon, 10 Mar 2008 13:41:53 +0000 (07:41 -0600)]
fix parsing of state.texenv.color (bug 14931)