Eric Anholt [Fri, 8 Aug 2008 20:58:48 +0000 (13:58 -0700)]
intel-gem: Update to new check_aperture API for classic mode.
To do this, I had to clean up some of 965 state upload stuff. We may end
up over-emitting state in the aperture overflow case, but that should be rare,
and I'd rather have the simplification of state management.
Eric Anholt [Fri, 8 Aug 2008 17:53:25 +0000 (10:53 -0700)]
965: cleanups to state emission from aperture checking and state ordering.
Eric Anholt [Thu, 31 Jul 2008 21:13:30 +0000 (14:13 -0700)]
intel-gem: Always build GEM execbuffer code.
Eric Anholt [Wed, 30 Jul 2008 21:14:44 +0000 (14:14 -0700)]
intel-gem: Use new getparam to detect kernel GEM support.
Eric Anholt [Sun, 27 Jul 2008 00:12:04 +0000 (17:12 -0700)]
intel: Don't return a renderbuffer with alpha when just GL_RGB is requested.
Fixes oglconform rbGetterFuncs testcase. The span code for this mode hasn't
actually been tested.
Ian Romanick [Sat, 26 Jul 2008 01:31:44 +0000 (18:31 -0700)]
Merge branch 'master' into drm-gem
Conflicts:
src/mesa/drivers/dri/common/dri_bufmgr.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
Eric Anholt [Fri, 25 Jul 2008 19:40:16 +0000 (12:40 -0700)]
mesa: Return 0 for cube map face of non-cubemap framebuffer attachments.
Fixes some oglconform fbo testcases.
Eric Anholt [Fri, 25 Jul 2008 19:17:58 +0000 (12:17 -0700)]
intel: If a tex image doesn't fit in the object's tree, make a temporary tree.
Previously, we would just store the data as malloced memory hanging off the
object, which would get memcpyed in at validate time. This broke an
oglconform render-to-texture test, since validate wasn't called but a miptree
was expected.
Dave Airlie [Fri, 25 Jul 2008 10:32:22 +0000 (20:32 +1000)]
i965: fixup format for TFP zero copy
Dave Airlie [Fri, 25 Jul 2008 09:57:35 +0000 (19:57 +1000)]
Revert "intel: disable zero-copy TFP."
This reverts commit
94979950e8991bd44899eb4067c3ae43449ce51e.
I've fixed it instead
Dave Airlie [Fri, 25 Jul 2008 09:56:56 +0000 (19:56 +1000)]
i965: make tex offset override work..
should fix fd.o 14441
Dave Airlie [Fri, 25 Jul 2008 06:31:38 +0000 (16:31 +1000)]
intel: disable zero-copy TFP.
patch from Fedora. maybe someone can fix this later but for now
lets try and release Mesa so ajax can live his life and get Xorg 7.4 out.
Brian Paul [Thu, 24 Jul 2008 20:47:28 +0000 (14:47 -0600)]
mesa: move extensions->version code into separate function
Brian Paul [Thu, 24 Jul 2008 20:28:43 +0000 (14:28 -0600)]
mesa: don't include Mesa version in GL_SHADING_LANGUAGE_VERSION string
Brian Paul [Thu, 24 Jul 2008 20:27:11 +0000 (14:27 -0600)]
query/print GLSL version string
Jesse Barnes [Thu, 24 Jul 2008 16:11:37 +0000 (09:11 -0700)]
intel: remove buffer swap debug output
Accidentally pushed as part of the last commit.
Ian Romanick [Thu, 24 Jul 2008 15:39:51 +0000 (08:39 -0700)]
Revert "965: Fix color clamping issues"
This reverts commit
b993d539a76e7f1446890a85e4b61deec4d4162d. The
patch was applied incorrectly. Actual fix coming soon. Sorry for the
noise.
Thomas Hellstrom [Thu, 24 Jul 2008 11:35:35 +0000 (13:35 +0200)]
Fix a typo.
Thomas Hellstrom [Thu, 24 Jul 2008 11:32:59 +0000 (13:32 +0200)]
Add new demo "fbo_firecube".
Tests fbo render-to-texture for various internal texture image formats.
Pawel Pieczul [Wed, 23 Jul 2008 22:43:23 +0000 (15:43 -0700)]
965: Fix partially transparent textures in Doom 3 engine games
Numbers of destination depth registers corrected (destination stencil
register was sent as depth register).
Eric Anholt [Wed, 23 Jul 2008 16:17:07 +0000 (09:17 -0700)]
intel: Add a little span cache to spead up readpixels by cutting syscalls.
Eric Anholt [Tue, 22 Jul 2008 22:20:07 +0000 (15:20 -0700)]
intel-gem: Use pread/pwrite for span access.
This will avoid clflushing entire buffers for small acesses, such as those
commonly used by regression tests.
Eric Anholt [Wed, 16 Jul 2008 18:13:35 +0000 (11:13 -0700)]
intel: improve 2d batchbuffer debug output.
Eric Anholt [Wed, 16 Jul 2008 17:34:39 +0000 (10:34 -0700)]
intel: Fix CopyTexSubImage's src tiling arg for the blit.
Didn't hurt 915, but needed for 965.
Eric Anholt [Tue, 15 Jul 2008 21:26:19 +0000 (14:26 -0700)]
intel: move renderbuffer mapping to separate functions.
This lets us avoid duplicated code for doing so, including the depthstencil
paths that aren't covered by SpanRenderStart/Finish. Those paths were
missing the span funcs setup, leading to a null dereference in the fbotexture
demo.
Jesse Barnes [Tue, 22 Jul 2008 16:39:23 +0000 (09:39 -0700)]
intel: fix buffer swaps and enable page flipping on 965
Some buffer swap intel render buffer fields (pf_num_pages & vbl_pending) are
also used for page flipping, so enable the code that sets & updates them on
965. This allows buffer swaps and page flips to work on 965 and prevents hangs
in LOCK_HARDWARE in the buffer swap case due to an uninitialized vbl_pending
field.
Fixes FDO #16118.
Pawel Pieczul [Mon, 21 Jul 2008 17:57:20 +0000 (10:57 -0700)]
965: Fix color clamping issues
Brian Paul [Mon, 21 Jul 2008 15:01:21 +0000 (09:01 -0600)]
mesa: revert building glslcompiler by default
Ian Romanick [Fri, 18 Jul 2008 19:40:04 +0000 (12:40 -0700)]
intel-gem: Bump driver date
Bump the driver date and insert the string "GEM". When running tests,
this make it much easier to know that the right driver is being used.
Dan Nicholson [Fri, 18 Jul 2008 14:40:41 +0000 (07:40 -0700)]
autoconf: Support Motif widgets in GLw with --enable-motif
Add an --enable-motif option, which will enable the Motif widgets in
libGLw and link it with libXm. The Motif installation information will
be gathered from the motif-config script (this comes with LessTif) or
fallback to the standard autoconf checks.
To allow the location of the Motif headers to be set from configure, the
default setting of -I/usr/include/Motif1.2 has been moved into
configs/default and then passed to the Makefile through the MOTIF_CFLAGS
variable.
Xiang, Haihao [Fri, 18 Jul 2008 09:40:11 +0000 (17:40 +0800)]
intel: fix texture border issue. (bug #16697)
Brian Paul [Thu, 17 Jul 2008 21:40:10 +0000 (15:40 -0600)]
mesa: build the stand-alone glslcompiler by default, update the docs
Brian Paul [Thu, 17 Jul 2008 16:09:04 +0000 (10:09 -0600)]
mesa: regenerated file
Brian Paul [Thu, 17 Jul 2008 16:03:10 +0000 (10:03 -0600)]
mesa: fix/improve the atan(y,x) function
Brad Smith [Thu, 17 Jul 2008 14:15:57 +0000 (08:15 -0600)]
mesa: added checks for OpenBSD
Brian Paul [Wed, 16 Jul 2008 22:27:14 +0000 (16:27 -0600)]
mesa: regenerated file
Brian Paul [Wed, 16 Jul 2008 22:04:43 +0000 (16:04 -0600)]
mesa: fix temp re-use bug in emit_arith()
Brian Paul [Wed, 16 Jul 2008 20:47:21 +0000 (14:47 -0600)]
mesa: fix copy&paste errors in degrees() functions
Ian Romanick [Wed, 16 Jul 2008 17:37:49 +0000 (10:37 -0700)]
intel: Clean-up ARB_texture_env_crossbar
Enable support for ARB_texture_env_crossbar in the master extension
list instead of in every single device-specific list.
Ian Romanick [Wed, 9 Jul 2008 15:57:02 +0000 (08:57 -0700)]
Remove redundant initalization of MaxTextureUnits
Brian Paul [Wed, 16 Jul 2008 16:23:28 +0000 (10:23 -0600)]
mesa: add GL_POLYGON_OFFSET_POINT/LINE/FILL queries, remove GL_TEXTURE_ENV_COLOR, GL_TEXTURE_ENV_MODE
Issues found by Bob Ellison.
Blair Sadewitz [Tue, 15 Jul 2008 23:21:43 +0000 (17:21 -0600)]
additional preprocessor checks for stdint.h, inttypes.h, etc
The patches to glext.h and glxext.h have been sent to Khronos/bugzilla.
Blair Sadewitz [Tue, 15 Jul 2008 23:12:23 +0000 (17:12 -0600)]
mesa: added test for __NetBSD__
Blair Sadewitz [Tue, 15 Jul 2008 23:11:33 +0000 (17:11 -0600)]
mesa: added test for __NetBSD__
Blair Sadewitz [Tue, 15 Jul 2008 23:06:17 +0000 (17:06 -0600)]
mesa: check for __INTERIX to typedef uintptr_t
Blair Sadewitz [Tue, 15 Jul 2008 23:05:28 +0000 (17:05 -0600)]
mesa: extra braces
Brian Paul [Tue, 15 Jul 2008 22:55:23 +0000 (16:55 -0600)]
mesa: regenerated file
Brian Paul [Tue, 15 Jul 2008 22:04:26 +0000 (16:04 -0600)]
mesa: add missing IR_LOG2 case
Brian Paul [Tue, 15 Jul 2008 21:32:53 +0000 (15:32 -0600)]
mesa: fix some broken /= operators
Brian Paul [Tue, 15 Jul 2008 21:03:42 +0000 (15:03 -0600)]
mesa: fix some broken bool, bvec2, bvec3, bvec4 constructors
Brian Paul [Tue, 15 Jul 2008 20:41:47 +0000 (14:41 -0600)]
mesa: fix storage size computation in emit_arith()
Eric Anholt [Tue, 15 Jul 2008 20:14:18 +0000 (13:14 -0700)]
intel-gem: Disable spantmp sse/mmx functions when tile swizzling.
Those functions rely on being able to treat the GET_PTR returned value as an
array indexed by x, but that's not the case for our tiling.
Bug #16387
Ian Romanick [Tue, 15 Jul 2008 18:06:31 +0000 (11:06 -0700)]
glx: Update my e-mail address. :)
Ian Romanick [Tue, 15 Jul 2008 18:06:04 +0000 (11:06 -0700)]
glx: Trivial clean-ups to __glXSetArrayEnable
Brian Paul [Mon, 14 Jul 2008 21:59:44 +0000 (15:59 -0600)]
mesa: assemble main() after all other functions
Before, main() had to come after any functions it called.
Eric Anholt [Mon, 14 Jul 2008 20:55:37 +0000 (13:55 -0700)]
i915: fix build after previous commit.
Brian Paul [Mon, 14 Jul 2008 15:51:35 +0000 (09:51 -0600)]
mesa: fix stencil state problem when GL_ATI_separate_stencil wasn't enabled
In glStencilFunc/Op/Mask() set both the front and back-face state, unless
GL_EXT_stencil_two_side is enabled. Before, we only set the front+back state
if GL_ATI_separate_stencil was enabled.
Ultimately, we probably should remove GL_EXT_stencil_two_side since it's
incompatible with GL 2.x.
Guillaume Melquiond [Mon, 14 Jul 2008 14:50:36 +0000 (08:50 -0600)]
fix gltrace (bug 16691)
Julien Cristau [Sun, 13 Jul 2008 15:27:58 +0000 (17:27 +0200)]
glu: only export public symbols
Julien Cristau [Sun, 13 Jul 2008 15:13:32 +0000 (17:13 +0200)]
mklib: don't version symbols when using --exports
Use the default version instead of one based on the library SONAME
in the version script created by --exports.
Blair Sadewitz [Mon, 14 Jul 2008 14:15:10 +0000 (08:15 -0600)]
mesa: also check for __NetBSD__
Brian Paul [Wed, 9 Jul 2008 21:58:31 +0000 (15:58 -0600)]
mesa: check for null shader->Source
Chris Rankin [Mon, 14 Jul 2008 08:09:58 +0000 (10:09 +0200)]
radeon: SetTexOffset support
This patch is a straightforward duplication of the R200 SetTexOffset code,
except that there is no big-endian tx_table[] array.
Stephane Marchesin [Sun, 13 Jul 2008 23:03:07 +0000 (01:03 +0200)]
nouveau: say goodbye to the old DRI driver...
Dave Airlie [Sun, 13 Jul 2008 09:00:46 +0000 (19:00 +1000)]
glx/dri: only report DRI2 extensions when DRI2 is enabled.
Fixes bug 15477
Nicolai Haehnle [Sat, 12 Jul 2008 19:13:03 +0000 (21:13 +0200)]
r300_fragprog: Use nqssa+dce and program_pair for emit
Share almost all code with r500_fragprog now.
This also fixes Piglit's texrect-many test, which means that the compiz
bicubic plugin should work with hardware acceleration now.
Dan Nicholson [Sat, 12 Jul 2008 17:04:44 +0000 (10:04 -0700)]
Always pass -linker and -ldflags to mklib for shared libraries
This just makes the use of mklib more consistent throughout Mesa where
we always want to pass the linker and LDFLAGS when we might be making a
shared library.
Dan Nicholson [Fri, 11 Jul 2008 20:54:48 +0000 (13:54 -0700)]
Call mklib with $(SHELL) so the user controls the interpreter
Respect the user's choice of shell when running mklib rather than always
using /bin/sh.
Dan Nicholson [Tue, 8 Jul 2008 14:49:31 +0000 (07:49 -0700)]
Call minstall with $(SHELL) so the user controls the interpreter
Running minstall directly means that /bin/sh is always used as hte
interpreter. If the user needs or wants to use a different shell fo
minstall, they can use the SHELL make variable.
Dan Nicholson [Tue, 8 Jul 2008 14:44:58 +0000 (07:44 -0700)]
Set $(SHELL) for all configs
Most make implementations will use /bin/sh as the interpreter for
commands and only use a different shell when the $(SHELL) make variable
is set. This makes the setting explicit and allows $(SHELL) to be used
in the commands themselves.
Dan Nicholson [Mon, 30 Jun 2008 16:40:30 +0000 (09:40 -0700)]
autoconf: Subsitute SHELL for all platforms
Establish the shell that make will use from configure. This is exactly
how autoconf/automake operate, with the environment variable
CONFIG_SHELL respected to override the autoconf checks. In the usual
case where the user just executes `./configure', autoconf will pick a
shell from the current shell, sh, bash, ksh or sh5 that meets its base
criteria.
The special Solaris case of looking for a POSIX shell has been changed
to just set the SHELL variable since autoconf substitutes this already.
The EXTRA_CONFIG_LINES substitution is dropped as it should no longer be
needed.
Nicolai Haehnle [Sat, 12 Jul 2008 10:20:28 +0000 (12:20 +0200)]
r300: Fix saturate mode handling in radeon_program_alu
Nicolai Haehnle [Sat, 12 Jul 2008 10:04:28 +0000 (12:04 +0200)]
r500: Set Saturate correctly in radeon_program_pair
Nicolai Haehnle [Sat, 12 Jul 2008 09:11:59 +0000 (11:11 +0200)]
r300: Fix input register allocation in radeon_program_pair
When an input is marked in gl_program.InputsRead but is not actually read
in the final program (due to dead-code elimination or whatever), the order
of input registers must still match gl_program.InputsRead. This is done
even more explicitly now.
Nicolai Haehnle [Fri, 11 Jul 2008 23:19:19 +0000 (01:19 +0200)]
r300: Explicitly set absolute value for the argument of RSQ
This fixes the last r500 bug related to glean/fragProg1.
Nicolai Haehnle [Fri, 11 Jul 2008 23:14:35 +0000 (01:14 +0200)]
r500_fragprog: Major refactoring of final emit
Use an abstracted instruction scheduling and register allocation algorithm
that we will be able to share with r300_fragprog.
Unlike the original emit code, this code tries to pair instructions that
only use the RGB part of the ALU with instructions that only use the alpha
part. However, the pairing algorithm still has some shortcomings;
for example, it doesn't generate optimal code for the emulation of LIT.
Nicolai Haehnle [Sun, 6 Jul 2008 17:48:50 +0000 (19:48 +0200)]
r500: Add "Not quite SSA" and dead code elimination pass
In addition, this pass fixes non-native swizzles.
Nicolai Haehnle [Sun, 6 Jul 2008 14:58:51 +0000 (16:58 +0200)]
r500_fragprog: Transform trigonometric functions in first pass
Eric Anholt [Fri, 11 Jul 2008 21:16:36 +0000 (14:16 -0700)]
drm-gem: Use new GEM ioctls for tiling state, and support new swizzle modes.
Alex Deucher [Fri, 11 Jul 2008 23:23:06 +0000 (19:23 -0400)]
R300: update vap_cntl values for NUM_FPUS
based on info from hw team
Dan Nicholson [Fri, 11 Jul 2008 17:43:29 +0000 (10:43 -0700)]
Remove generated pkg-config files on `make clean'
Dan Nicholson [Tue, 1 Jul 2008 16:03:15 +0000 (09:03 -0700)]
autoconf: Add information about the --x-* options to --help output
Try to tell the user that the --x-* options are only used when the X
libraries can't be found by pkg-config.
Dan Nicholson [Tue, 1 Jul 2008 15:55:42 +0000 (08:55 -0700)]
autoconf: Tell the user about docs/autoconf.html in --help output
The documentation in autoconf.html is much more explicit about how the
different configure options control the build. This adds a notice at the
end of the `./configure --help' output to tell the user about it.
Dave Airlie [Thu, 10 Jul 2008 21:28:55 +0000 (07:28 +1000)]
intel: fix batch flushing problem with cliprects handling.
pointed out and debugged by stringfellow on #dri-devel
Brian Paul [Wed, 9 Jul 2008 21:06:36 +0000 (15:06 -0600)]
mesa: return -1, not GL_FALSE if _glapi_add_dispatch() fails name sanity check
Brian Paul [Wed, 9 Jul 2008 14:35:50 +0000 (08:35 -0600)]
mesa: fix state.clip[n].plane parsing bug (bug 16611)
Brian Paul [Wed, 9 Jul 2008 13:48:46 +0000 (07:48 -0600)]
mesa: check for OpenBSD (bug 15604)
Xiang, Haihao [Wed, 9 Jul 2008 05:08:09 +0000 (13:08 +0800)]
i915: fall back to software rendering when shadow comparison is
enabled for 1D texture. fix #12176
Brian Paul [Tue, 8 Jul 2008 22:52:45 +0000 (16:52 -0600)]
mesa: remove debug code
Brian Paul [Tue, 8 Jul 2008 22:28:33 +0000 (16:28 -0600)]
add yet another Makefile
Brian Paul [Tue, 8 Jul 2008 22:26:28 +0000 (16:26 -0600)]
bump version to rc3
Brian Paul [Tue, 8 Jul 2008 22:26:06 +0000 (16:26 -0600)]
added more Makefiles to file list
Brian Paul [Tue, 8 Jul 2008 22:17:04 +0000 (16:17 -0600)]
mesa: implement glGetUniformiv() with new ctx->Driver function
The old implementation could overwrite the caller's param buffer.
Brian Paul [Tue, 8 Jul 2008 22:16:57 +0000 (16:16 -0600)]
added src/mesa/drivers/Makefile to file list
Brian Paul [Tue, 8 Jul 2008 21:12:48 +0000 (15:12 -0600)]
mesa: bump version to rc2
Brian Paul [Tue, 8 Jul 2008 21:11:23 +0000 (15:11 -0600)]
added null texObj ptr check (bug 15567)
Brian Paul [Tue, 8 Jul 2008 20:59:36 +0000 (14:59 -0600)]
mesa: more debug output
Brian Paul [Tue, 8 Jul 2008 19:05:34 +0000 (13:05 -0600)]
mesa: compute global var size before doing codegen
Brian Paul [Tue, 8 Jul 2008 19:02:24 +0000 (13:02 -0600)]
mesa: add missing VARYING case to storage_string()
Xiang, Haihao [Tue, 8 Jul 2008 06:14:04 +0000 (14:14 +0800)]
i965: official name for GM45 chipset