Commit Graph

24518 Commits

Author SHA1 Message Date
Peter Hutterer 5358e54d1a Add missing X11_INCLUDES to egl/drivers/demo and egl/main.
Compiling mesa on a system with no X headers installed in the default
include paths fails due to missing X11 includes. The header includes are
picked up by configure but not applied.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-07-21 11:45:49 +10:00
Eric Anholt 81d5550684 i965: Don't clip everything if FRONT_AND_BACK culling while culling disabled.
Fixes everything-black with meta_clear_tris on quake4-mpdemo and doom3-demo.

Bug #18844, 22077.
2009-07-20 18:31:13 -07:00
Alex Deucher 6617fa6fab r600: fix typo in blend code 2009-07-20 19:33:05 -04:00
Kevin DeKorte cc893d9a98 r600: fix dst reg indexing
This fixes segfaults in apps like teapot and tunnel
2009-07-20 19:00:57 -04:00
Alex Deucher 265d5eba65 r600: add blending support 2009-07-20 19:00:57 -04:00
Alex Deucher a369963b18 r600: add user clip plane support 2009-07-20 19:00:57 -04:00
Alex Deucher ce9c5a1a27 r600: add logicop support 2009-07-20 19:00:57 -04:00
Keith Whitwell cad82cd063 tgsi: get texturing working in vertex shader sse2 path
Missing file from previous commit.
2009-07-20 19:47:38 +01:00
Michel Dänzer cd63e35603 Merge branch 'mesa_7_5_branch' 2009-07-20 20:41:11 +02:00
Michel Dänzer 5ed4404005 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)
2009-07-20 20:34:04 +02:00
Keith Whitwell 442101dad7 tgsi: get texturing working in vertex shader sse2 path 2009-07-20 19:32:28 +01:00
Keith Whitwell 27a19be8d1 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.
2009-07-20 19:32:28 +01:00
Kevin DeKorte 91512fa019 r600: Fix compilation 2009-07-20 09:27:17 -04:00
Cooper Yuan 19249a1ae7 R6xx/r7xx: Fix line stipple and width issue 2009-07-20 17:42:47 +08:00
Michel Dänzer cf721c8137 Add common_ppc.c to MESA_GALLIUM_SOURCES. 2009-07-20 02:11:17 +02:00
Michel Dänzer 3d0009ce45 r300g: Fix SCons build. 2009-07-20 02:06:37 +02:00
Michel Dänzer 0b7a907f39 gallium/trace: Fix SCons build. 2009-07-20 02:05:38 +02:00
Michel Dänzer 3326be6c0a 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.
2009-07-20 01:53:15 +02:00
Dave Airlie a8921d0b52 gallium: make g3dvl build again 2009-07-18 17:44:44 +10:00
Brian Paul b96ae1b2c4 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
2009-07-17 22:00:47 -06:00
Alex Deucher f81f57e25d R6xx/R7xx: add fine grained syncing support 2009-07-17 19:05:30 -04:00
Alex Deucher b192b9dac6 R6xx/r7xx: send depth state in it's own function 2009-07-17 19:05:29 -04:00
Andrew Randrianasulu 2a6f58460a st/egl: Fix broken build after EGL thread changes 2009-07-18 00:55:12 +02:00
Alex Deucher 5008269cfe R200: fix build when RADEON_DEBUG_BO is set 2009-07-17 18:19:01 -04:00
Dave Airlie a046beaffe radeon: disable BO debug 2009-07-18 08:00:23 +10:00
Brian Paul cd10996d4f progs/util: remove extfuncs.h (we use GLEW instead) 2009-07-17 14:43:29 -06:00
Brian Paul 40fd101919 egl: commit missing eglcurrent.[ch] files
Not sure how these got left out from earlier commit.
2009-07-17 13:36:58 -06:00
Brian Paul ee0b1bc7d3 progs/glsl: finish conversion to GLEW
This is a follow-on to b799af91d5.
Remove _func function suffix and unneeded #includes.
2009-07-17 13:23:11 -06:00
Alex Deucher e910f6831b Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa into r6xx-rewrite 2009-07-17 14:46:40 -04:00
Kevin DeKorte 79a170108f R6xx/r7xx: warning fixes
patch from Kevin DeKorte with some minor fixes from me.
2009-07-17 14:43:42 -04:00
Brian Paul a77b455af0 mesa: set version to 7.5 2009-07-17 12:40:48 -06:00
Brian Paul 71b9e10291 mesa: set version to 7.5 2009-07-17 12:40:44 -06:00
Brian Paul 7fd3674672 docs: set date for 7.5 release 2009-07-17 12:40:24 -06:00
Chia-I Wu 30bccf8ea9 xeglthreads: Check current context for EGL per-thread support.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-07-17 11:56:32 -06:00
Chia-I Wu 15fdbc8361 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>
2009-07-17 11:56:00 -06:00
Chia-I Wu 3f7e0d5302 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>
2009-07-17 11:54:06 -06:00
Chia-I Wu be9d1ab171 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>
2009-07-17 11:53:39 -06:00
Chia-I Wu cca31340b5 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>
2009-07-17 11:53:03 -06:00
Chia-I Wu 18457cb263 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>
2009-07-17 11:48:27 -06:00
Chia-I Wu 21b635ffa8 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>
2009-07-17 11:42:04 -06:00
Chia-I Wu 75da80b295 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>
2009-07-17 11:41:02 -06:00
Chia-I Wu 8e92ec9fdd 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>
2009-07-17 11:36:45 -06:00
Alex Deucher c4ab08a0cd R6xx/r7xx: disable depth/stencil compression for now 2009-07-17 12:21:33 -04:00
Alex Deucher 60d681f367 R6xx/r7xx: add some missing state regs 2009-07-17 12:07:15 -04:00
Brian Paul 27587f46e5 docs: news entry for 7.5 release 2009-07-17 09:40:59 -06:00
Brian Paul 8c6e81f97d docs: update links to Gallium wiki page on freedesktop.org 2009-07-17 09:40:59 -06:00
Eric Anholt 9cea84b6b5 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.
2009-07-16 19:02:04 -07:00
Eric Anholt 99174e7630 i965: Add missing state dependency of sf_unit on _NEW_BUFFERS. 2009-07-16 19:00:34 -07:00
Alex Deucher 6f63698d26 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.
2009-07-16 17:35:44 -04:00
José Fonseca 2ba98efdf6 python/retrace: Process the call no passed to --to option inclusively. 2009-07-16 19:34:44 +01:00