profile/ivi/mesa.git
16 years ago[r300] Add register definitions based on AMD spec starting with chapter 10
Christoph Brill [Mon, 25 Feb 2008 19:54:23 +0000 (20:54 +0100)]
[r300] Add register definitions based on AMD spec starting with chapter 10

16 years ago[r300] Add some more register from the AMD spec in the area of AARESOLVE
Christoph Brill [Mon, 25 Feb 2008 19:30:40 +0000 (20:30 +0100)]
[r300] Add some more register from the AMD spec in the area of AARESOLVE

16 years ago[r300] Sync the names for Z-Buffer registers with the AMD spec
Christoph Brill [Mon, 25 Feb 2008 19:24:00 +0000 (20:24 +0100)]
[r300] Sync the names for Z-Buffer registers with the AMD spec

This patch tries to get the Z-Buffer register names in sync with the AMD spec
so that talking to AMD engineers is much simpler.

16 years ago[r300] Add more struct names for r300_hw_state
Christoph Brill [Mon, 25 Feb 2008 19:20:59 +0000 (20:20 +0100)]
[r300] Add more struct names for r300_hw_state

16 years ago[r300] rename all unkown structs r300_hw_state to readable names
Christoph Brill [Mon, 25 Feb 2008 19:18:10 +0000 (20:18 +0100)]
[r300] rename all unkown structs r300_hw_state to readable names

16 years ago[r300] Add RB3D_DISCARD_SRC_PIXEL_LTE_THRESHOLD and some HyperZ defintions
Christoph Brill [Mon, 25 Feb 2008 19:15:20 +0000 (20:15 +0100)]
[r300] Add RB3D_DISCARD_SRC_PIXEL_LTE_THRESHOLD and some HyperZ defintions

16 years ago[r300] Replace more magic number by register definitions from AMD
Christoph Brill [Mon, 25 Feb 2008 19:11:46 +0000 (20:11 +0100)]
[r300] Replace more magic number by register definitions from AMD

16 years ago[r300] clean some more magic registers based on AMD spec
Christoph Brill [Mon, 25 Feb 2008 19:08:33 +0000 (20:08 +0100)]
[r300] clean some more magic registers based on AMD spec

16 years ago[r300] Update some magic registers to real names
Christoph Brill [Mon, 25 Feb 2008 19:03:35 +0000 (20:03 +0100)]
[r300] Update some magic registers to real names

16 years ago[r300] Document Z-buffer related register ZB_BW_CNTL
Christoph Brill [Mon, 25 Feb 2008 19:01:27 +0000 (20:01 +0100)]
[r300] Document Z-buffer related register ZB_BW_CNTL

16 years ago[r300] document VAP_CNTL based on AMD spec
Christoph Brill [Mon, 25 Feb 2008 18:50:05 +0000 (19:50 +0100)]
[r300] document VAP_CNTL based on AMD spec

16 years ago[r300] Document some of the wild guesses in VAP_OUTPUT_VTX_FMT based on AMD spec
Christoph Brill [Mon, 25 Feb 2008 18:39:16 +0000 (19:39 +0100)]
[r300] Document some of the wild guesses in VAP_OUTPUT_VTX_FMT based on AMD spec

16 years ago[r300] document type 3 packets to draw primitives based on AMD spec
Christoph Brill [Mon, 25 Feb 2008 18:18:08 +0000 (19:18 +0100)]
[r300] document type 3 packets to draw primitives based on AMD spec

16 years agoObsolete, replaced by glut_fcb.c (fortran callbacks)
Brian [Mon, 25 Feb 2008 18:00:01 +0000 (11:00 -0700)]
Obsolete, replaced by glut_fcb.c (fortran callbacks)

16 years agoReplace glut_fbc.c with glut_fcb.c (cb=callback)
Brian [Mon, 25 Feb 2008 17:57:40 +0000 (10:57 -0700)]
Replace glut_fbc.c with glut_fcb.c (cb=callback)

16 years agointel: Only enable GL_ARB_occlusion_query on i965.
Kristian Høgsberg [Mon, 25 Feb 2008 17:03:28 +0000 (12:03 -0500)]
intel: Only enable GL_ARB_occlusion_query on i965.

16 years ago [intel] fix random ut2004 crash on some machine, for cubemap textures,
Zou Nan hai [Mon, 25 Feb 2008 07:27:47 +0000 (15:27 +0800)]
 [intel] fix random ut2004 crash on some machine, for cubemap textures,
image offset is already considered when map, add it again in
        StoreImage may lead to wrong result and crash.

16 years agoi965: fix assertion failure caused by commit dd1d66fc4ab5d7064113a2017a431c3461598b91.
Xiang, Haihao [Mon, 25 Feb 2008 03:04:59 +0000 (11:04 +0800)]
i965: fix assertion failure caused by commit dd1d66fc4ab5d7064113a2017a431c3461598b91.

16 years agor300: fixup some more names
Dave Airlie [Sat, 23 Feb 2008 09:17:00 +0000 (19:17 +1000)]
r300: fixup some more names

16 years agor300: some initial register info from doc drop
Dave Airlie [Sat, 23 Feb 2008 08:54:07 +0000 (18:54 +1000)]
r300: some initial register info from doc drop

16 years agointel: Merge intel_context.c from i915 and i965.
Kristian Høgsberg [Fri, 22 Feb 2008 23:06:19 +0000 (18:06 -0500)]
intel: Merge intel_context.c from i915 and i965.

16 years agoMerge {i915,i965}/intel_context.h as intel/intel_context.h
Kristian Høgsberg [Fri, 22 Feb 2008 05:51:52 +0000 (00:51 -0500)]
Merge {i915,i965}/intel_context.h as intel/intel_context.h

16 years agoUse drm_i915_sarea instead of drmI830Sarea and remove i830_common.h
Alan Hourihane [Fri, 22 Feb 2008 00:18:54 +0000 (00:18 +0000)]
Use drm_i915_sarea instead of drmI830Sarea and remove i830_common.h

16 years agoautoconf: Fix thinko when checking freebsd CPU types
Dan Nicholson [Thu, 21 Feb 2008 18:32:04 +0000 (10:32 -0800)]
autoconf: Fix thinko when checking freebsd CPU types

16 years agoautoconf: Set the default drivers after checking platform specifics
Dan Nicholson [Thu, 21 Feb 2008 18:17:19 +0000 (10:17 -0800)]
autoconf: Set the default drivers after checking platform specifics

The platform-specific overrides to the DRI drivers were being ignored
because the default was being set first. Instead, have the default be a
fallback after the platform checks.

16 years agoFix glBegin-time test for invalid programs/shaders.
Brian [Wed, 20 Feb 2008 15:54:15 +0000 (08:54 -0700)]
Fix glBegin-time test for invalid programs/shaders.

16 years agoraise GL_INVALID_OPERATION if glProgramString compilation fails
Brian [Wed, 20 Feb 2008 15:53:41 +0000 (08:53 -0700)]
raise GL_INVALID_OPERATION if glProgramString compilation fails

16 years agoRegenerated (see bug 11893)
Brian [Tue, 19 Feb 2008 15:39:12 +0000 (08:39 -0700)]
Regenerated (see bug 11893)

16 years agoAdded <size name="Get" mode="get"/> lines for point parameter tokens.
Brian [Tue, 19 Feb 2008 15:38:42 +0000 (08:38 -0700)]
Added <size name="Get" mode="get"/> lines for point parameter tokens.

See bug 11893.  This allows GL_POINT_SIZE_MIN/MAX/etc to be queried with
indirect rendering.

16 years agoRegenerated (raise GL_INVALID_VALUE if counter param is negative)
Brian [Tue, 19 Feb 2008 15:27:44 +0000 (08:27 -0700)]
Regenerated (raise GL_INVALID_VALUE if counter param is negative)

16 years agoIf parameter is a 'counter', raise GL_INVALID_VALUE if value is negative
Brian [Tue, 19 Feb 2008 15:27:08 +0000 (08:27 -0700)]
If parameter is a 'counter', raise GL_INVALID_VALUE if value is negative

Fixes bug 10984.

16 years agoApple: Pulled in changes from Apple's patchset to allow mesa to build on darwin again
Jeremy Huddleston [Tue, 19 Feb 2008 08:54:35 +0000 (00:54 -0800)]
Apple: Pulled in changes from Apple's patchset to allow mesa to build on darwin again
(cherry picked from commit e70609b7b877dc0d8e67c958c453305e78f831df)

16 years ago fix compile for previous commit
Zou Nan hai [Tue, 19 Feb 2008 06:53:58 +0000 (14:53 +0800)]
 fix compile for previous commit

16 years ago[i965] fix broken glsl texdemo1
Zou Nan hai [Tue, 19 Feb 2008 06:47:57 +0000 (14:47 +0800)]
[i965] fix broken glsl texdemo1

16 years agoInstall dri_sarea.h in 'make install'
Adam Jackson [Mon, 18 Feb 2008 16:45:40 +0000 (11:45 -0500)]
Install dri_sarea.h in 'make install'

16 years agoIgnore glxgears_pixmap
Dan Nicholson [Mon, 18 Feb 2008 03:34:48 +0000 (19:34 -0800)]
Ignore glxgears_pixmap

16 years agoDistribute dri_sarea.h with the tarballs
Dan Nicholson [Mon, 18 Feb 2008 02:10:15 +0000 (18:10 -0800)]
Distribute dri_sarea.h with the tarballs

The GL/internal/dri_sarea.h header was missing from the tarballs,
causing the build to bomb for DRI2.

16 years agoglapi: Generate xserver glapi sources in the mesa tree
Dan Nicholson [Wed, 16 Jan 2008 03:25:41 +0000 (19:25 -0800)]
glapi: Generate xserver glapi sources in the mesa tree

Instead of generating the glapi sources for the xserver and commiting
them to the xserver tree, we can keep them in the mesa tree and change
the xserver build to use the files from the mesa tree.

This makes the xserver glx build more robust as it reduces the chances
for mismatches of the glX API used in the xserver vs. in mesa.

16 years agoFix potential glDrawPixels(GL_DEPTH_COMPONENT) crashes (bug 13915)
Brian [Sat, 16 Feb 2008 16:56:54 +0000 (09:56 -0700)]
Fix potential glDrawPixels(GL_DEPTH_COMPONENT) crashes (bug 13915)

Also, general clean-up of the Xlib-optimized glDraw/CopyPixels code.

16 years agoAdded minmag.c test
Brian [Sat, 16 Feb 2008 16:38:34 +0000 (09:38 -0700)]
Added minmag.c test

Test that different minification and magnification filters are chosen for the
non-mipmapped texture case.

16 years agoFix path to minstall in last commit.
Adam Jackson [Fri, 15 Feb 2008 22:22:09 +0000 (17:22 -0500)]
Fix path to minstall in last commit.

16 years agoInstall dri_interface.h in 'make install'.
Adam Jackson [Fri, 15 Feb 2008 22:17:03 +0000 (17:17 -0500)]
Install dri_interface.h in 'make install'.

16 years ago[intel] Allow attIndex to be negative to avoid defeating the >= 0 check.
Eric Anholt [Fri, 15 Feb 2008 21:48:11 +0000 (13:48 -0800)]
[intel] Allow attIndex to be negative to avoid defeating the >= 0 check.

Otherwise, we would go wildly out of bounds if passed -1 (no renderbuffer), such
as while doing LOCK_HARDWARE with glDrawBuffer(GL_NONE).

16 years ago[915] Don't attempt our accelerated drawpixels if no color buffer is attached.
Eric Anholt [Fri, 15 Feb 2008 21:42:37 +0000 (13:42 -0800)]
[915] Don't attempt our accelerated drawpixels if no color buffer is attached.

Otherwise, glDrawBuffer(GL_NONE); glDrawPixels() results in a segfault when
we try to emit the color buffer state during setup.

16 years ago[915] Revert broken context creation change from IS_915 commit.
Eric Anholt [Fri, 15 Feb 2008 21:16:01 +0000 (13:16 -0800)]
[915] Revert broken context creation change from IS_915 commit.

The IS_945 case was left to fall through to the 830 case, along with the
not-recognized-at-all case, making that dead code.

16 years agoFix glBindTexture crash (bug 14514)
Brian [Fri, 15 Feb 2008 20:41:39 +0000 (13:41 -0700)]
Fix glBindTexture crash (bug 14514)

16 years agochmod a-x **/glslnoise.c
Adam Jackson [Fri, 15 Feb 2008 20:05:42 +0000 (15:05 -0500)]
chmod a-x **/glslnoise.c

16 years agoFix parallel build by making symlinks before makedepend.
Adam Jackson [Fri, 15 Feb 2008 19:59:30 +0000 (14:59 -0500)]
Fix parallel build by making symlinks before makedepend.

16 years agoFix sis_dri on ia64.
Adam Jackson [Fri, 15 Feb 2008 19:57:51 +0000 (14:57 -0500)]
Fix sis_dri on ia64.

16 years agoFix build on ia64.
Adam Jackson [Fri, 15 Feb 2008 19:56:32 +0000 (14:56 -0500)]
Fix build on ia64.

16 years agoAdd IS_915(), simplify IS_9XX() a bit.
Adam Jackson [Fri, 15 Feb 2008 19:52:58 +0000 (14:52 -0500)]
Add IS_915(), simplify IS_9XX() a bit.

16 years ago[intel] Bug #13636: Allow recursive buffer mapping in bufmgr_ttm.
Eric Anholt [Fri, 15 Feb 2008 00:14:00 +0000 (16:14 -0800)]
[intel] Bug #13636: Allow recursive buffer mapping in bufmgr_ttm.

16 years agoAdd E7221 variant to i915.
Adam Jackson [Fri, 15 Feb 2008 19:46:25 +0000 (14:46 -0500)]
Add E7221 variant to i915.

16 years agoTrivial SELinux awareness. Enable with --enable-selinux.
Adam Jackson [Fri, 15 Feb 2008 18:49:12 +0000 (13:49 -0500)]
Trivial SELinux awareness.  Enable with --enable-selinux.

Avoids AVC warnings when allocating executable memory by first checking
if the current process has permission to do so.

16 years agofix bug with generated fragment programs if vertex shader is active
Roland Scheidegger [Fri, 15 Feb 2008 16:26:06 +0000 (17:26 +0100)]
fix bug with generated fragment programs if vertex shader is active

When generating a fragment program from fixed function, checking
texUnit->_ReallyEnabled is not sufficient, need texUnit->Enabled too
since the former also represents texture enables from an active vertex
shader.

16 years agoi965: don't swizzle fogcoord if FogOption is FOG_NONE.
Xiang, Haihao [Fri, 15 Feb 2008 08:13:11 +0000 (16:13 +0800)]
i965: don't swizzle fogcoord if FogOption is FOG_NONE.
fix #10788 issue on 965.

16 years agoi915: set fogcoord to (f,0,0,1). fix #10788 issue on 915.
Xiang, Haihao [Fri, 15 Feb 2008 07:20:45 +0000 (15:20 +0800)]
i915: set fogcoord to (f,0,0,1). fix #10788 issue on 915.

16 years agoAdd TTM buffer object based texture from pixmap implementation.
Kristian Høgsberg [Fri, 15 Feb 2008 03:12:51 +0000 (22:12 -0500)]
Add TTM buffer object based texture from pixmap implementation.

Currently only implemented for intel hw.

16 years agoAdd GLXPixmap version of glxgears to show case new GLX Pixmap functionality.
Kristian Høgsberg [Fri, 15 Feb 2008 03:05:55 +0000 (22:05 -0500)]
Add GLXPixmap version of glxgears to show case new GLX Pixmap functionality.

16 years agoHook up i915 driver to new DRI2 infrastructure.
Kristian Høgsberg [Mon, 21 Jan 2008 22:07:33 +0000 (17:07 -0500)]
Hook up i915 driver to new DRI2 infrastructure.

16 years agoAdd new DRI2 infrastructure.
Kristian Høgsberg [Mon, 14 Jan 2008 23:31:05 +0000 (18:31 -0500)]
Add new DRI2 infrastructure.

16 years agominiglx doc updates
caner [Thu, 14 Feb 2008 16:33:05 +0000 (09:33 -0700)]
miniglx doc updates

16 years agoi965: use setup attributes as inputs when allocating registers
Xiang, Haihao [Thu, 14 Feb 2008 05:24:27 +0000 (13:24 +0800)]
i965: use setup attributes as inputs when allocating registers
for WM payload.  fix #10767

16 years ago[i965] flip point sprite
Zou Nan hai [Thu, 14 Feb 2008 03:01:34 +0000 (11:01 +0800)]
[i965] flip point sprite

16 years ago[i965] gl_FrontFacing support
Zou Nan hai [Thu, 14 Feb 2008 02:12:03 +0000 (10:12 +0800)]
[i965] gl_FrontFacing support

16 years agoi965: remove unused hal hooks
Dave Airlie [Thu, 14 Feb 2008 00:44:43 +0000 (10:44 +1000)]
i965: remove unused hal hooks

These don't appear to have ever been used.

16 years ago[965] Fix ARB_occlusion_query from intel_screen.c merge.
Eric Anholt [Thu, 14 Feb 2008 00:08:19 +0000 (16:08 -0800)]
[965] Fix ARB_occlusion_query from intel_screen.c merge.

It wasn't being initialized at screen setup, so we were getting stub
entrypoints even though it was exposed as enabled.  Fixes arbocclude mesa demo.

16 years ago[intel] Fix 965 rendering with non-TTM by merging intel_ioctl between 915/965.
Eric Anholt [Wed, 13 Feb 2008 18:34:20 +0000 (10:34 -0800)]
[intel] Fix 965 rendering with non-TTM by merging intel_ioctl between 915/965.

The 965 path wasn't setting pClipRects for batch submission since it didn't
want kernel cliprect handling before.  The 915 path also grew the INTEL_NO_HW=1
option for testing just driver overhead.

16 years agoWhen mapping, wait on the buffer's fence, not hardware idle, in bufmgr_fake
Eric Anholt [Wed, 13 Feb 2008 17:26:06 +0000 (09:26 -0800)]
When mapping, wait on the buffer's fence, not hardware idle, in bufmgr_fake

16 years agoRemove O(n^2) debugging code from non-debug path of dri_bufmgr_fake.
Eric Anholt [Wed, 13 Feb 2008 17:16:07 +0000 (09:16 -0800)]
Remove O(n^2) debugging code from non-debug path of dri_bufmgr_fake.

16 years ago_mesa_swizzle_ubyt_image: Don't use single swizzle_copy call
Xiang, Haihao [Wed, 13 Feb 2008 07:57:44 +0000 (15:57 +0800)]
_mesa_swizzle_ubyt_image: Don't use single swizzle_copy call
if components don't match. fix #13508

16 years ago[intel] Remove cached reloc data buffer now that it's not a BO.
Eric Anholt [Wed, 13 Feb 2008 00:03:58 +0000 (16:03 -0800)]
[intel] Remove cached reloc data buffer now that it's not a BO.

It's not worth the extra effort to avoid a free/malloc, and we'd rather
auto-size the reloc data buffer at some point so we don't need to have
max_relocs.

16 years ago[intel] Fix type of some more flags variables for uint64_t flags.
Eric Anholt [Wed, 13 Feb 2008 00:01:26 +0000 (16:01 -0800)]
[intel] Fix type of some more flags variables for uint64_t flags.

Harmless since we don't yet have any bits above 31 for flags.

16 years ago[intel] Note when BO map/unmap fail with TTM.
Eric Anholt [Mon, 11 Feb 2008 16:29:05 +0000 (08:29 -0800)]
[intel] Note when BO map/unmap fail with TTM.

16 years ago[intel] Fix INTEL_DEBUG=bufmgr after relocation interface fixups.
Eric Anholt [Fri, 8 Feb 2008 23:58:45 +0000 (15:58 -0800)]
[intel] Fix INTEL_DEBUG=bufmgr after relocation interface fixups.

16 years ago[965] Remove stale brw_state_cache.c comment and function export.
Eric Anholt [Thu, 7 Feb 2008 23:12:59 +0000 (15:12 -0800)]
[965] Remove stale brw_state_cache.c comment and function export.

16 years agoFix broken test.
Brian [Tue, 12 Feb 2008 23:56:18 +0000 (16:56 -0700)]
Fix broken test.

As-is, if the texture was too large for the target, an assertion would fail.
Now check proxy texture first and if it works, then test non-proxy target.

16 years agoSet Min/MaxLod with glTexParameterf, not glTexParameteri
Brian [Tue, 12 Feb 2008 22:53:37 +0000 (15:53 -0700)]
Set Min/MaxLod with glTexParameterf, not glTexParameteri

16 years agotweak incr/decrements amounts for keyboard options
Brian [Tue, 12 Feb 2008 21:59:07 +0000 (14:59 -0700)]
tweak incr/decrements amounts for keyboard options

16 years agopress 0,1,2,etc keys for specific bias values
Brian [Mon, 11 Feb 2008 16:46:10 +0000 (09:46 -0700)]
press 0,1,2,etc keys for specific bias values

16 years agoglapi: Correct prerequisites for gl_and_glX_API.xml
Dan Nicholson [Tue, 15 Jan 2008 18:21:31 +0000 (10:21 -0800)]
glapi: Correct prerequisites for gl_and_glX_API.xml

The indirect_dispatch.h and indirect_table.c source files use
gl_and_glX_API.xml in their generation rather than glX_API.xml, but it
wasn't listed in their prerequisites. In turn, gl_and_glX_API.xml uses
glX_API.xml, but this is already listed in $(COMMON_GLX).

16 years agoglapi: Use make automatic variables to clean up the commands
Dan Nicholson [Tue, 15 Jan 2008 18:15:36 +0000 (10:15 -0800)]
glapi: Use make automatic variables to clean up the commands

Make use of the make automatic variables $@ (the target) and $< (first
prerequisite) to clean up the commands for the glapi generation. This
improves readability and guards against typos since words are repeated
less frequently.

16 years agoglapi: Use variable for indent and flags
Dan Nicholson [Tue, 15 Jan 2008 17:52:17 +0000 (09:52 -0800)]
glapi: Use variable for indent and flags

Put the path to indent and the flags to call it with in configs/default
rather than in the Makefile. This makes it easier to change the values
globally.

16 years agonouveau: ddx versioning changed
Ben Skeggs [Tue, 12 Feb 2008 06:28:31 +0000 (17:28 +1100)]
nouveau: ddx versioning changed

16 years ago[directfb] Added RGB444 and RGB555.
Claudio Ciccani [Fri, 8 Feb 2008 11:36:45 +0000 (12:36 +0100)]
[directfb] Added RGB444 and RGB555.
Also added color expansion for RGB16, ARGB1555 and ARGB4444.

16 years ago[glut-directfb] Fixed displaying of single buffered window.
Claudio Ciccani [Fri, 8 Feb 2008 11:35:08 +0000 (12:35 +0100)]
[glut-directfb] Fixed displaying of single buffered window.

16 years ago[glut-directfb] When converting microseconds to milliseconds, round to the next integer.
Claudio Ciccani [Fri, 8 Feb 2008 11:03:53 +0000 (12:03 +0100)]
[glut-directfb] When converting microseconds to milliseconds, round to the next integer.

16 years ago[965] Flush icache on new batch, not just new context.
Eric Anholt [Thu, 7 Feb 2008 20:09:16 +0000 (12:09 -0800)]
[965] Flush icache on new batch, not just new context.

This is required since our buffer manager may now move our
instruction-containing buffers at any batchbuffer emit.

16 years agoadded -altopts to allow overriding all other opts
Andy Skinner [Thu, 7 Feb 2008 20:20:06 +0000 (13:20 -0700)]
added -altopts to allow overriding all other opts

16 years ago[915] Fix COS function using same plan as SIN.
Eric Anholt [Wed, 6 Feb 2008 23:41:04 +0000 (15:41 -0800)]
[915] Fix COS function using same plan as SIN.

The previous COS function failed badly outside of [-pi/2, pi/2].

16 years ago[915] Use a quartic term to improve the accuracy of SIN results.
Eric Anholt [Wed, 6 Feb 2008 23:38:16 +0000 (15:38 -0800)]
[915] Use a quartic term to improve the accuracy of SIN results.

This is described in the link in the comment, and is the same technique that
r300 uses.

16 years ago[915] Fix fp SIN function, and use a quadratic approximation instead of Taylor.
Eric Anholt [Wed, 6 Feb 2008 19:34:14 +0000 (11:34 -0800)]
[915] Fix fp SIN function, and use a quadratic approximation instead of Taylor.

The Taylor series notably fails at producing sin(pi) == 0, which leads to
discontinuity every 2*pi.  The quadratic gets us sin(pi) == 0 behavior, at the
expense of going from 2.4% THD with working Taylor series to 3.8% THD (easily
seen on comparative graphs of the two).  However, our previous implementation
was producing sin(pi) < -1 and worse, so any reasonable approximation is an
improvement.  This also fixes the repeating behavior, where the previous
implementation would repeat sin(x) for x>pi as sin(x % pi) and the opposite
for x < -pi.

16 years ago[965] Bug 14314: assertion failure with with !AIGLX and depth=24 visual.
Eric Anholt [Tue, 5 Feb 2008 19:00:04 +0000 (11:00 -0800)]
[965] Bug 14314: assertion failure with with !AIGLX and depth=24 visual.

16 years ago[965] Fix TTM relocation caching overzealousness.
Eric Anholt [Tue, 5 Feb 2008 17:38:02 +0000 (09:38 -0800)]
[965] Fix TTM relocation caching overzealousness.

The failure mode that was a available was:
reloc 1 -> target_buf
exec: PRESUMED_OFFSET wrong, buffer migrates, r1 entry updated.
reloc 2 -> target_buf
exec: suppose buffer migrates again.  PRESUMED_OFFSET wrong. r2 entry updated.
reloc 1 -> target_buf
exec: suppose buffer doesn't migrate.  PRESUMED_OFFSET right. no relocations
      performed.  r1 has stale pointer at original location.

Failures were reported with OGLconform's VBO test and SPECviewperf90, though
I haven't confirmed that this fixes it.

16 years agoi965: adjust the byte order of clear color. fix #14165
Xiang, Haihao [Tue, 5 Feb 2008 07:17:58 +0000 (15:17 +0800)]
i965: adjust the byte order of clear color. fix #14165

16 years agoReplace usage of DRM_BO_FLAG_MEM_TT in intel_regions.c with local/cached.
Eric Anholt [Tue, 5 Feb 2008 02:19:03 +0000 (18:19 -0800)]
Replace usage of DRM_BO_FLAG_MEM_TT in intel_regions.c with local/cached.

In addition to potentially binding when it was about to be mapped anyway,
failure to use CACHED_MAPPED means eating a full wbinvd on validate.  Thanks to
airlied for catching this.

16 years agoInclude glext.h in the cva test so that it actually uses CVAs.
Eric Anholt [Sun, 3 Feb 2008 09:04:46 +0000 (01:04 -0800)]
Include glext.h in the cva test so that it actually uses CVAs.

16 years agoAllow first != 0 in mesa CVA handling, and add more error checking.
Eric Anholt [Sat, 2 Feb 2008 10:54:13 +0000 (02:54 -0800)]
Allow first != 0 in mesa CVA handling, and add more error checking.

16 years ago[965] Convert brw_draw_upload to managing dri_bos, not gl_buffer_objects.
Eric Anholt [Sun, 3 Feb 2008 07:27:19 +0000 (23:27 -0800)]
[965] Convert brw_draw_upload to managing dri_bos, not gl_buffer_objects.

This helps us avoid a bunch of mess with gl_client_arrays that we filled
with unused data and confused readers.

16 years ago[965] Remove dead structure in brw_draw_upload.c.
Eric Anholt [Sat, 2 Feb 2008 10:59:55 +0000 (02:59 -0800)]
[965] Remove dead structure in brw_draw_upload.c.