mesa.git
14 years agor600: fix typo in blend code
Alex Deucher [Mon, 20 Jul 2009 23:33:05 +0000 (19:33 -0400)]
r600: fix typo in blend code

14 years agor600: fix dst reg indexing
Kevin DeKorte [Mon, 20 Jul 2009 22:56:47 +0000 (18:56 -0400)]
r600: fix dst reg indexing

This fixes segfaults in apps like teapot and tunnel

14 years agor600: add blending support
Alex Deucher [Mon, 20 Jul 2009 22:50:59 +0000 (18:50 -0400)]
r600: add blending support

14 years agor600: add user clip plane support
Alex Deucher [Mon, 20 Jul 2009 21:22:59 +0000 (17:22 -0400)]
r600: add user clip plane support

14 years agor600: add logicop support
Alex Deucher [Mon, 20 Jul 2009 19:27:28 +0000 (15:27 -0400)]
r600: add logicop support

14 years agotgsi: get texturing working in vertex shader sse2 path
Keith Whitwell [Mon, 20 Jul 2009 18:45:24 +0000 (19:45 +0100)]
tgsi: get texturing working in vertex shader sse2 path

Missing file from previous commit.

14 years agoMerge branch 'mesa_7_5_branch'
Michel Dänzer [Mon, 20 Jul 2009 18:41:11 +0000 (20:41 +0200)]
Merge branch 'mesa_7_5_branch'

14 years agoradeon: With DRI1, if we have HW stencil, only expose fbconfigs with stencil.
Michel Dänzer [Mon, 20 Jul 2009 18:26:28 +0000 (20:26 +0200)]
radeon: With DRI1, if we have HW stencil, only expose fbconfigs with stencil.

Otherwise simple apps like glxgears pick up a DirectColor visual since the X
server mixes the depth 32 visual in with the other GLX visuals, and this seems
to result in a (mostly) black screen due to a bad ColorMap for a lot of people.

The bad ColorMap may be a bug in the apps, the X server or X driver, and
regardless of that I think the X server should ideally make the depth 32 GLX
visual separate from the rest again, but in the meantime this makes us cope.

(depth_bits is either 16 or 24, never 0)

14 years agotgsi: get texturing working in vertex shader sse2 path
Keith Whitwell [Mon, 20 Jul 2009 18:29:22 +0000 (19:29 +0100)]
tgsi: get texturing working in vertex shader sse2 path

14 years agotgsi: fix regression in indexed const lookups
Keith Whitwell [Mon, 20 Jul 2009 18:28:34 +0000 (19:28 +0100)]
tgsi: fix regression in indexed const lookups

This function was calling get_input_base() and get_output_base() to
get the names of a couple of register to use as temps.  Those
functions no longer return registers, so adjust it to get the
registers elsewhere.

This change doesn't address the issue that it's a fairly poor way to
grab a register name by calling a function with an apparently
unrelated meaning.

14 years agor600: Fix compilation
Kevin DeKorte [Mon, 20 Jul 2009 13:27:17 +0000 (09:27 -0400)]
r600: Fix compilation

14 years agoR6xx/r7xx: Fix line stipple and width issue
Cooper Yuan [Mon, 20 Jul 2009 09:42:47 +0000 (17:42 +0800)]
R6xx/r7xx: Fix line stipple and width issue

14 years agoAdd common_ppc.c to MESA_GALLIUM_SOURCES.
Michel Dänzer [Mon, 20 Jul 2009 00:11:17 +0000 (02:11 +0200)]
Add common_ppc.c to MESA_GALLIUM_SOURCES.

14 years agor300g: Fix SCons build.
Michel Dänzer [Mon, 20 Jul 2009 00:06:37 +0000 (02:06 +0200)]
r300g: Fix SCons build.

14 years agogallium/trace: Fix SCons build.
Michel Dänzer [Mon, 20 Jul 2009 00:05:38 +0000 (02:05 +0200)]
gallium/trace: Fix SCons build.

14 years agor300g: Guard R500 register writes by is_r500 check.
Michel Dänzer [Sun, 19 Jul 2009 23:53:15 +0000 (01:53 +0200)]
r300g: Guard R500 register writes by is_r500 check.

Flagged by the DRM command stream checker. This allows the driver to work on
non-R500 cards.

14 years agogallium: make g3dvl build again
Dave Airlie [Sat, 18 Jul 2009 07:44:44 +0000 (17:44 +1000)]
gallium: make g3dvl build again

14 years agoMerge branch 'mesa_7_5_branch'
Brian Paul [Sat, 18 Jul 2009 04:00:47 +0000 (22:00 -0600)]
Merge branch 'mesa_7_5_branch'

Conflicts:

Makefile
progs/glsl/multitex.c
src/mesa/main/enums.c
src/mesa/main/state.c
src/mesa/main/texenvprogram.c
src/mesa/main/version.h

14 years agoR6xx/R7xx: add fine grained syncing support
Alex Deucher [Fri, 17 Jul 2009 23:04:19 +0000 (19:04 -0400)]
R6xx/R7xx: add fine grained syncing support

14 years agoR6xx/r7xx: send depth state in it's own function
Alex Deucher [Fri, 17 Jul 2009 21:08:40 +0000 (17:08 -0400)]
R6xx/r7xx: send depth state in it's own function

14 years agost/egl: Fix broken build after EGL thread changes
Andrew Randrianasulu [Fri, 17 Jul 2009 22:55:12 +0000 (00:55 +0200)]
st/egl: Fix broken build after EGL thread changes

14 years agoR200: fix build when RADEON_DEBUG_BO is set
Alex Deucher [Fri, 17 Jul 2009 22:10:48 +0000 (18:10 -0400)]
R200: fix build when RADEON_DEBUG_BO is set

14 years agoradeon: disable BO debug
Dave Airlie [Fri, 17 Jul 2009 22:00:23 +0000 (08:00 +1000)]
radeon: disable BO debug

14 years agoprogs/util: remove extfuncs.h (we use GLEW instead)
Brian Paul [Fri, 17 Jul 2009 20:43:29 +0000 (14:43 -0600)]
progs/util: remove extfuncs.h (we use GLEW instead)

14 years agoegl: commit missing eglcurrent.[ch] files
Brian Paul [Fri, 17 Jul 2009 19:36:06 +0000 (13:36 -0600)]
egl: commit missing eglcurrent.[ch] files

Not sure how these got left out from earlier commit.

14 years agoprogs/glsl: finish conversion to GLEW
Brian Paul [Fri, 17 Jul 2009 19:23:11 +0000 (13:23 -0600)]
progs/glsl: finish conversion to GLEW

This is a follow-on to b799af91d5ffbee1481161fec29eb4c92b161272.
Remove _func function suffix and unneeded #includes.

14 years agoMerge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa into r6xx...
Alex Deucher [Fri, 17 Jul 2009 18:46:40 +0000 (14:46 -0400)]
Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa into r6xx-rewrite

14 years agoR6xx/r7xx: warning fixes
Kevin DeKorte [Fri, 17 Jul 2009 18:43:42 +0000 (14:43 -0400)]
R6xx/r7xx: warning fixes

patch from Kevin DeKorte with some minor fixes from me.

14 years agomesa: set version to 7.5
Brian Paul [Fri, 17 Jul 2009 18:40:48 +0000 (12:40 -0600)]
mesa: set version to 7.5

14 years agomesa: set version to 7.5
Brian Paul [Fri, 17 Jul 2009 18:40:44 +0000 (12:40 -0600)]
mesa: set version to 7.5

14 years agodocs: set date for 7.5 release
Brian Paul [Fri, 17 Jul 2009 18:40:24 +0000 (12:40 -0600)]
docs: set date for 7.5 release

14 years agoxeglthreads: Check current context for EGL per-thread support.
Chia-I Wu [Fri, 17 Jul 2009 04:21:59 +0000 (21:21 -0700)]
xeglthreads: Check current context for EGL per-thread support.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
14 years agoegl: Remove redundant DeletePending flag.
Chia-I Wu [Fri, 17 Jul 2009 17:56:00 +0000 (11:56 -0600)]
egl: Remove redundant DeletePending flag.

A context or surface that is neither linked to a display nor current to
a thread should be destroyed.  Therefore, an unlinked context or surface
implies a pending delete automatically.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
14 years agoegl: Destroy display's resources upon termination.
Chia-I Wu [Fri, 17 Jul 2009 04:21:57 +0000 (21:21 -0700)]
egl: Destroy display's resources upon termination.

eglTerminate should destroy the contexts and surfaces of the display.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
14 years agoegl: Return the same EGL Display for the same native display.
Chia-I Wu [Fri, 17 Jul 2009 04:21:56 +0000 (21:21 -0700)]
egl: Return the same EGL Display for the same native display.

The latest revision of the spec explicitly requires the same handle to
be returned for the same native display.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
14 years agoegl: Use the link functions to manage resources.
Chia-I Wu [Fri, 17 Jul 2009 17:53:03 +0000 (11:53 -0600)]
egl: Use the link functions to manage resources.

This commit uses the newly introduced link functions to manage EGL
contexts and surfaces.  As a result of this, the API for drivers are
changed.  All drivers are updated for the change.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
14 years agoegl: Add funtions to link contexts and surfaces to displays.
Chia-I Wu [Fri, 17 Jul 2009 17:48:27 +0000 (11:48 -0600)]
egl: Add funtions to link contexts and surfaces to displays.

EGL contexts and surfaces are resources of displays.  They should be
managed by displays.  This commit adds a bunch of functions to
egldisplay.c to help establish the links between contexts/surfaces and
displays.  How links are established is considered opaque outside
display.  Functions like _eglGetSurfaceHandle or _eglLookupSurface are
therefore moved to egldisplay.c, with some small modifications.

The idea is also extended to display.  That is, displays need to link to
themselves to be looked up.

This commit only adds the functions.  A commit to use them should
follow.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
14 years agoegl: Extend per-thread info for multiple current contexts.
Chia-I Wu [Fri, 17 Jul 2009 17:42:04 +0000 (11:42 -0600)]
egl: Extend per-thread info for multiple current contexts.

EGL allows multiple current contexts, as long as they are bound to
different client APIs.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
14 years agoegl: Support per-thread info.
Chia-I Wu [Fri, 17 Jul 2009 17:41:02 +0000 (11:41 -0600)]
egl: Support per-thread info.

This commit introduces a "current" system to manage per-thread info.  It
uses TLS, if GLX_USE_TLS is defined, or pthread, if PTHREADS is defined.
If none of them are defined, it uses a dummy implementation that is just
like before.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
14 years agoegl: Add eglcompiler.h for compiler features.
Chia-I Wu [Fri, 17 Jul 2009 04:21:51 +0000 (21:21 -0700)]
egl: Add eglcompiler.h for compiler features.

Only INLINE (from mesa/main/compiler.h) is defined now.  It may be used
to deal with symbol visibility and int/pointer conversion in the future.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agoR6xx/r7xx: disable depth/stencil compression for now
Alex Deucher [Fri, 17 Jul 2009 16:21:33 +0000 (12:21 -0400)]
R6xx/r7xx: disable depth/stencil compression for now

14 years agoR6xx/r7xx: add some missing state regs
Alex Deucher [Fri, 17 Jul 2009 16:07:15 +0000 (12:07 -0400)]
R6xx/r7xx: add some missing state regs

14 years agodocs: news entry for 7.5 release
Brian Paul [Fri, 17 Jul 2009 15:40:45 +0000 (09:40 -0600)]
docs: news entry for 7.5 release

14 years agodocs: update links to Gallium wiki page on freedesktop.org
Brian Paul [Fri, 17 Jul 2009 15:40:28 +0000 (09:40 -0600)]
docs: update links to Gallium wiki page on freedesktop.org

14 years agotexenv: Calculate whether we need to do secondary color on our own.
Eric Anholt [Fri, 17 Jul 2009 01:41:03 +0000 (18:41 -0700)]
texenv: Calculate whether we need to do secondary color on our own.

The _TriangleCaps bit is deprecated, not updated when we require, and
is set based on state that hasn't been updated at that point in
_mesa_update_state_locked().

Fixes incorrect clear color in glsl/twoside.c with meta_clear_tris.

14 years agoi965: Add missing state dependency of sf_unit on _NEW_BUFFERS.
Eric Anholt [Thu, 16 Jul 2009 22:57:22 +0000 (15:57 -0700)]
i965: Add missing state dependency of sf_unit on _NEW_BUFFERS.

14 years agoR6xx: fix rendering on r6xx/rs780 chips
Alex Deucher [Thu, 16 Jul 2009 21:35:44 +0000 (17:35 -0400)]
R6xx: fix rendering on r6xx/rs780 chips

You always need to emit a fetch shader (fs) even if you
aren't using it.  For now, just emit the fs with the
vs address to make the kernel happy.

14 years agopython/retrace: Process the call no passed to --to option inclusively.
José Fonseca [Thu, 16 Jul 2009 18:34:44 +0000 (19:34 +0100)]
python/retrace: Process the call no passed to --to option inclusively.

14 years agopython/retrace: Dump the surface copy contents.
José Fonseca [Thu, 16 Jul 2009 18:32:40 +0000 (19:32 +0100)]
python/retrace: Dump the surface copy contents.

14 years agopython/retrace: Flush stdout before calling the pipe driver.
José Fonseca [Thu, 16 Jul 2009 18:31:36 +0000 (19:31 +0100)]
python/retrace: Flush stdout before calling the pipe driver.

So that messages are in sync with stderr.

14 years agomesa: Fix logbase2.
José Fonseca [Thu, 16 Jul 2009 18:20:25 +0000 (19:20 +0100)]
mesa: Fix logbase2.

It was providing 1 too many for non power two values.

14 years agodraw: fix ppc build regression
Keith Whitwell [Thu, 16 Jul 2009 17:45:10 +0000 (18:45 +0100)]
draw: fix ppc build regression

Found by x.org tinderbox, reported by Chris Ball.

14 years agoWarning fixes
Kevin DeKorte [Thu, 16 Jul 2009 15:57:14 +0000 (11:57 -0400)]
Warning fixes

14 years agoR6xx/r7xx: remove unused function
Alex Deucher [Thu, 16 Jul 2009 15:50:43 +0000 (11:50 -0400)]
R6xx/r7xx: remove unused function

Spotted by kdekorte on IRC

14 years agost/mesa: add some array index bounds assertions
Brian Paul [Thu, 16 Jul 2009 14:44:51 +0000 (08:44 -0600)]
st/mesa: add some array index bounds assertions

14 years agoegl: Add xeglthreads
Chia-I Wu [Thu, 16 Jul 2009 14:29:19 +0000 (08:29 -0600)]
egl: Add xeglthreads

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
14 years agoRestore vp input mapping, fix vtx stream missing problem.
Richard Li [Thu, 16 Jul 2009 14:28:58 +0000 (10:28 -0400)]
Restore vp input mapping, fix vtx stream missing problem.

14 years agotgsi: simplify and fix sse KIL implementation
Keith Whitwell [Thu, 16 Jul 2009 11:49:27 +0000 (12:49 +0100)]
tgsi: simplify and fix sse KIL implementation

Use sse_movmskps to extract the correct bits of the comparison result
for use in updating the killmask.  Simplify some logic around
identifying the set of necessary comparisons to make.

14 years agortasm: export sse_movmskps
Keith Whitwell [Thu, 16 Jul 2009 11:47:11 +0000 (12:47 +0100)]
rtasm: export sse_movmskps

14 years agotgsi: initial texturing support on sse path
Keith Whitwell [Thu, 16 Jul 2009 10:01:19 +0000 (11:01 +0100)]
tgsi: initial texturing support on sse path

Most obvious problem is drawpixels comes out blocky, but this may be
an existing issue of KIL on the sse path.

14 years agopython: Hack to prevent segmentation faults when python exits.
José Fonseca [Thu, 16 Jul 2009 10:21:12 +0000 (11:21 +0100)]
python: Hack to prevent segmentation faults when python exits.

14 years agowgl: Expose pipe_screen/pipe_context via an extension.
José Fonseca [Thu, 16 Jul 2009 10:20:12 +0000 (11:20 +0100)]
wgl: Expose pipe_screen/pipe_context via an extension.

14 years agopython: Obtain pipe_screen/pipe_context from the system's OpenGL driver.
José Fonseca [Thu, 16 Jul 2009 10:19:06 +0000 (11:19 +0100)]
python: Obtain pipe_screen/pipe_context from the system's OpenGL driver.

14 years agotgsi: make sse function callout mechanism more generic
Keith Whitwell [Thu, 16 Jul 2009 09:11:46 +0000 (10:11 +0100)]
tgsi: make sse function callout mechanism more generic

Take a list of arguments rather than hardcoding TEMP_R0.

14 years agotgsi: reduce x86 reg usage in tgsi_sse generated programs
Keith Whitwell [Thu, 16 Jul 2009 06:50:34 +0000 (07:50 +0100)]
tgsi: reduce x86 reg usage in tgsi_sse generated programs

Pass the tgsi_exec_machine struct in directly and just hold a single
pointer to this struct, rather than keeping one for each of its
internal members.

14 years agotgsi: no need to separately malloc input and output arrays
Keith Whitwell [Wed, 15 Jul 2009 23:23:33 +0000 (00:23 +0100)]
tgsi: no need to separately malloc input and output arrays

Can now guarantee alignment in the initial allocation of the tgsi exec machine.

14 years agogallium: reduce recursive include of tgsi_exec.h
Keith Whitwell [Wed, 15 Jul 2009 23:21:17 +0000 (00:21 +0100)]
gallium: reduce recursive include of tgsi_exec.h

A lot of draw code no longer needs to see this header.

14 years agotgsi: make function call code in tgsi_sse.c less opaque
Keith Whitwell [Wed, 15 Jul 2009 22:59:55 +0000 (23:59 +0100)]
tgsi: make function call code in tgsi_sse.c less opaque

Explictly pass src and dst arguments (previously dst argument was also
being used as a src).  Separate argument handling from the rest of
the function call emit.

14 years agogallium: proper constructor and destructor for tgsi_exec_machine
Keith Whitwell [Wed, 15 Jul 2009 22:44:53 +0000 (23:44 +0100)]
gallium: proper constructor and destructor for tgsi_exec_machine

Centralize the creation, initialization and destruction of this struct.
Use align_malloc instead of home-brew alternatives.

14 years agoFix more merge fallout
Alex Deucher [Thu, 16 Jul 2009 06:59:36 +0000 (02:59 -0400)]
Fix more merge fallout

14 years agoR6xx/r7xx: warning fixes
Kevin DeKorte [Wed, 15 Jul 2009 21:13:09 +0000 (17:13 -0400)]
R6xx/r7xx: warning fixes

14 years agoR6xx/r7xx: fix missing vertex stream
Richard Li [Wed, 15 Jul 2009 21:00:42 +0000 (17:00 -0400)]
R6xx/r7xx: fix missing vertex stream

Somehow context->radeon.tcl.aos[j].bo is not null sometimes,
but it is safe for now because it is only a pointer to
dma.current so overwriting it would not hurt anything.

14 years agoradeon bo: Fix merge fall out
Alex Deucher [Wed, 15 Jul 2009 19:59:04 +0000 (15:59 -0400)]
radeon bo: Fix merge fall out

14 years agoR6xx/r7xx: more Makefile fixes
Alex Deucher [Wed, 15 Jul 2009 19:40:35 +0000 (15:40 -0400)]
R6xx/r7xx: more Makefile fixes

14 years agoFix r600 makefile for lastest CS changes
Alex Deucher [Wed, 15 Jul 2009 19:23:11 +0000 (15:23 -0400)]
Fix r600 makefile for lastest CS changes

14 years agoMerge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa into r6xx...
Alex Deucher [Wed, 15 Jul 2009 18:17:07 +0000 (14:17 -0400)]
Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa into r6xx-rewrite

This builds, but I get an assertion in radeonGetLock() due to
the drawable being null.

14 years agosoftpipe: limit blend results to [0,1]
Luca Barbieri [Wed, 15 Jul 2009 17:34:36 +0000 (11:34 -0600)]
softpipe: limit blend results to [0,1]

14 years agoFix state flag dependencies for fixed function fragment program updates.
Brian Paul [Wed, 15 Jul 2009 17:12:05 +0000 (11:12 -0600)]
Fix state flag dependencies for fixed function fragment program updates.

I started looking into why _NEW_ARRAY punishes us, and while annotating
dependencies noticed that a bunch of dependencies were missing.

(cherry picked from master, commit e5f63c403b767f9974e8eb5d412c012b8a69287f)

14 years agomake sure ctx->Driver.Flush is valid before calling it
Alex Deucher [Wed, 15 Jul 2009 15:31:24 +0000 (11:31 -0400)]
make sure ctx->Driver.Flush is valid before calling it

14 years agoUse memcpy directly in the common code
Alex Deucher [Wed, 15 Jul 2009 15:16:41 +0000 (11:16 -0400)]
Use memcpy directly in the common code

This alleviates the need for an additional symbol.

14 years agopython/retrace: Interpret surface_copy.
José Fonseca [Wed, 15 Jul 2009 14:37:27 +0000 (15:37 +0100)]
python/retrace: Interpret surface_copy.

14 years agopython/samples: Use PIPE_FORMAT_Z16_UNORM instead of PIPE_FORMAT_Z32_UNORM.
José Fonseca [Wed, 15 Jul 2009 14:37:04 +0000 (15:37 +0100)]
python/samples: Use PIPE_FORMAT_Z16_UNORM instead of PIPE_FORMAT_Z32_UNORM.

More common. True fix would be to use whatever the screen supports though.

14 years agomesa: recognize and eliminate repeated error messages
Keith Whitwell [Wed, 15 Jul 2009 12:29:58 +0000 (13:29 +0100)]
mesa: recognize and eliminate repeated error messages

14 years agomesa: split out errorstring switch from _mesa_error
Keith Whitwell [Tue, 14 Jul 2009 15:28:08 +0000 (16:28 +0100)]
mesa: split out errorstring switch from _mesa_error

Move a chunk of code out of _mesa_error()

14 years agomesa: remove dead code in _mesa_error
Keith Whitwell [Tue, 14 Jul 2009 15:25:59 +0000 (16:25 +0100)]
mesa: remove dead code in _mesa_error

Remove early and unused snprintf and where[] string.

14 years agomesa: don't call getenv every time _mesa_error is called
Keith Whitwell [Tue, 14 Jul 2009 15:23:04 +0000 (16:23 +0100)]
mesa: don't call getenv every time _mesa_error is called

Buggy apps can generate thousands of mesa_error calls.  Don't need
to keep calling getenv to retreive the same MESA_DEBUG string each
time.

14 years agoradeon: update span reading micro tile code
Dave Airlie [Wed, 15 Jul 2009 03:25:32 +0000 (13:25 +1000)]
radeon: update span reading micro tile code

tested on r500 with zreaddraw with Z buffer in all 3 modes

14 years agor300: emit z depth pitch reloc in preparation for tiling
Dave Airlie [Wed, 15 Jul 2009 03:24:30 +0000 (13:24 +1000)]
r300: emit z depth pitch reloc in preparation for tiling

14 years agoradeon: r300 fix span reading for macro tiled buffers.
Dave Airlie [Wed, 15 Jul 2009 02:03:34 +0000 (12:03 +1000)]
radeon: r300 fix span reading for macro tiled buffers.

this uses the correct formula for macro tiled buffers for readback

14 years agoradeon: for tiling you really need to use GET/PUT VALUE not PTR.
Dave Airlie [Wed, 8 Jul 2009 01:16:56 +0000 (11:16 +1000)]
radeon: for tiling you really need to use GET/PUT VALUE not PTR.

since the surfaces aren't linear you can't just use GET_PTR

14 years agoi965: the offset of any branch/jump instruction is in unit of 64bits on IGDNG
Xiang, Haihao [Wed, 15 Jul 2009 02:40:16 +0000 (10:40 +0800)]
i965: the offset of any branch/jump instruction is in unit of 64bits on IGDNG

14 years agoR6xx/r7xx: implement memcpy buffer swaps
Alex Deucher [Wed, 15 Jul 2009 01:19:32 +0000 (21:19 -0400)]
R6xx/r7xx: implement memcpy buffer swaps

This allows double buffered apps to run, but perfomance
will be awful until we implement something faster.

You must update to the latest kernel modules.

14 years agointel/radeon: add common metaops code.
Dave Airlie [Tue, 14 Jul 2009 23:35:09 +0000 (09:35 +1000)]
intel/radeon: add common metaops code.

Move all the metaops to a dri_metaops file and port radeon/intel
to use the new common meta ops code.

14 years agor6xx/r7xx: fix buffer aging bug
Alex Deucher [Wed, 15 Jul 2009 00:08:27 +0000 (20:08 -0400)]
r6xx/r7xx: fix buffer aging bug

We were using sparse indexing for aos, while the common
code expected packed indexing.

14 years agoR6xx/R7xx: no irqs yet.
Alex Deucher [Wed, 15 Jul 2009 00:06:29 +0000 (20:06 -0400)]
R6xx/R7xx: no irqs yet.

14 years agoradeon: fix unsigned vs signed comparison in stencil code.
Dave Airlie [Tue, 14 Jul 2009 21:10:45 +0000 (07:10 +1000)]
radeon: fix unsigned vs signed comparison in stencil code.

This function takes a GLint not a GLuint, passing in -1
breaks internally.

14 years agointel: Fix ClearDepth to not be affected by DepthRange.
Eric Anholt [Tue, 14 Jul 2009 21:49:03 +0000 (14:49 -0700)]
intel: Fix ClearDepth to not be affected by DepthRange.

Fixes new piglit depthrange-clear.c test.

14 years agointel: Set DepthRange in the metaops using RasterPos[2].
Eric Anholt [Tue, 14 Jul 2009 21:30:12 +0000 (14:30 -0700)]
intel: Set DepthRange in the metaops using RasterPos[2].

RasterPos[2] is already sent through the window transform, which includes
DepthRange handling.  So make DepthRange for the metaops a noop.

Fixes a failure in oglconform depthrange.c

14 years agoFix state flag dependencies for fixed function fragment program updates.
Eric Anholt [Tue, 2 Jun 2009 14:47:20 +0000 (07:47 -0700)]
Fix state flag dependencies for fixed function fragment program updates.

I started looking into why _NEW_ARRAY punishes us, and while annotating
dependencies noticed that a bunch of dependencies were missing.

14 years agointel: Flag _NEW_ARRAY state when doing array object binding in clears.
Eric Anholt [Tue, 14 Jul 2009 18:51:17 +0000 (11:51 -0700)]
intel: Flag _NEW_ARRAY state when doing array object binding in clears.

This is just following bind_vertex_array()'s behavior.