mesa.git
14 years agodraw: Implement draw_arrays() in terms of draw_arrays_instanced().
Michal Krol [Wed, 30 Dec 2009 17:54:04 +0000 (18:54 +0100)]
draw: Implement draw_arrays() in terms of draw_arrays_instanced().

14 years agosp: Generalise drawing code to remove dupes.
Michal Krol [Wed, 30 Dec 2009 17:41:05 +0000 (18:41 +0100)]
sp: Generalise drawing code to remove dupes.

Also, avoid nested draw calls from simpler versions.

14 years agosp: Implement draw_elements_instanced().
Michal Krol [Wed, 30 Dec 2009 17:27:58 +0000 (18:27 +0100)]
sp: Implement draw_elements_instanced().

14 years agoImplement instanced indexed draw.
Michal Krol [Wed, 30 Dec 2009 17:26:40 +0000 (18:26 +0100)]
Implement instanced indexed draw.

14 years agotranslate: Fix a call to indexed SSE run.
Michal Krol [Wed, 30 Dec 2009 15:28:01 +0000 (16:28 +0100)]
translate: Fix a call to indexed SSE run.

14 years agotranslate: Implement instancing for linear SSE run.
Michal Krol [Wed, 30 Dec 2009 13:23:12 +0000 (14:23 +0100)]
translate: Implement instancing for linear SSE run.

14 years agortasm: Add x86_div().
Michal Krol [Wed, 30 Dec 2009 13:20:29 +0000 (14:20 +0100)]
rtasm: Add x86_div().

14 years agoImplement draw_arrays_instanced() in softpipe.
Michal Krol [Tue, 29 Dec 2009 22:21:01 +0000 (23:21 +0100)]
Implement draw_arrays_instanced() in softpipe.

Modify the translate module to respect instance divisors and accept
instance id as a parameter to calculate input vertex offset.

14 years agotranslate: Fix translate_key_compare().
Michal Krol [Tue, 29 Dec 2009 21:49:31 +0000 (22:49 +0100)]
translate: Fix translate_key_compare().

Sizes of translate keys must also match.

14 years agogallium: Move instance_divisor field from vertex_buffer to vertex_element.
Michal Krol [Tue, 29 Dec 2009 18:18:54 +0000 (19:18 +0100)]
gallium: Move instance_divisor field from vertex_buffer to vertex_element.

14 years agogallium: Add interfaces needed for instanced drawing.
Michal Krol [Wed, 23 Dec 2009 18:37:18 +0000 (19:37 +0100)]
gallium: Add interfaces needed for instanced drawing.

14 years agollvmpipe: Install unit tests on build/xxx/bin
José Fonseca [Wed, 23 Dec 2009 15:21:56 +0000 (15:21 +0000)]
llvmpipe: Install unit tests on build/xxx/bin

14 years agoutil: Define common dynamic library extensions.
José Fonseca [Wed, 23 Dec 2009 13:23:39 +0000 (13:23 +0000)]
util: Define common dynamic library extensions.

14 years agoglsl/pp: move static functions out of header file
Keith Whitwell [Wed, 23 Dec 2009 15:57:06 +0000 (15:57 +0000)]
glsl/pp: move static functions out of header file

14 years agoglsl/pp: quieten compiler about missing case statements
Keith Whitwell [Wed, 23 Dec 2009 15:56:31 +0000 (15:56 +0000)]
glsl/pp: quieten compiler about missing case statements

14 years agoi965g: Rename {pf->util_format}_is_depth_or_stencil()
Tomas Carnecky [Wed, 23 Dec 2009 15:57:17 +0000 (16:57 +0100)]
i965g: Rename {pf->util_format}_is_depth_or_stencil()

14 years agorbug: rename pf_is_compressed to util_format_is_compressed
Roland Scheidegger [Wed, 23 Dec 2009 15:55:16 +0000 (16:55 +0100)]
rbug: rename pf_is_compressed to util_format_is_compressed

14 years ago[i965] Rename {pf -> util}_format_is_depth_or_stencil()
Tomas Carnecky [Wed, 23 Dec 2009 15:40:20 +0000 (15:40 +0000)]
[i965] Rename {pf -> util}_format_is_depth_or_stencil()

The function was moved and renamed in 0bed834b.

Signed-off-by: Tomas Carnecky <tom@dbservice.com>
14 years agoprogs/tests: Fix build.
Vinson Lee [Tue, 22 Dec 2009 08:54:34 +0000 (00:54 -0800)]
progs/tests: Fix build.
(cherry picked from commit 1bf2d78b11ac9ac71f4be285963db1af9f09fe73)

14 years agointel: Replace some gen3 IS_* checks with context structure usage.
Eric Anholt [Wed, 16 Dec 2009 23:50:40 +0000 (15:50 -0800)]
intel: Replace some gen3 IS_* checks with context structure usage.

Shaves 400 bytes or so from i915_dri.so.

14 years agointel: Replace IS_965 checks with context structure usage.
Eric Anholt [Wed, 16 Dec 2009 23:42:55 +0000 (15:42 -0800)]
intel: Replace IS_965 checks with context structure usage.

Saves another 600 bytes or so of code.

14 years agointel: Replace IS_G4X() across the driver with context structure usage.
Eric Anholt [Wed, 16 Dec 2009 23:22:26 +0000 (15:22 -0800)]
intel: Replace IS_G4X() across the driver with context structure usage.

Saves ~2KB of code.

14 years agointel: Replace IS_IGDNG checks with intel->is_ironlake or needs_ff_sync.
Eric Anholt [Wed, 16 Dec 2009 22:45:50 +0000 (14:45 -0800)]
intel: Replace IS_IGDNG checks with intel->is_ironlake or needs_ff_sync.

Saves ~480 bytes of code.

14 years agomesa: Fix a NULL deref in glDeleteFragmentShaderATI(badname);
Eric Anholt [Tue, 22 Dec 2009 20:38:11 +0000 (12:38 -0800)]
mesa: Fix a NULL deref in glDeleteFragmentShaderATI(badname);

Fixes piglit ati-fs-bad-delete.  Caught by clang.

14 years agomesa: remove unnecessary store.
Eric Anholt [Tue, 22 Dec 2009 20:08:14 +0000 (12:08 -0800)]
mesa: remove unnecessary store.

14 years agomesa: Remove an unnecessary store reported by clang.
Eric Anholt [Tue, 22 Dec 2009 19:40:01 +0000 (11:40 -0800)]
mesa: Remove an unnecessary store reported by clang.

This was a workaround for a compiler warning that was showing a real
error.  The real error was later fixed.

14 years agointel: Fix leakage of active texture state in glBitmap fp metaops.
Eric Anholt [Tue, 22 Dec 2009 19:18:29 +0000 (11:18 -0800)]
intel: Fix leakage of active texture state in glBitmap fp metaops.

Noticed by clang.

14 years agoi915: Fix use of uninitialized variable in OPCODE_NOISE stub.
Eric Anholt [Tue, 22 Dec 2009 19:08:38 +0000 (11:08 -0800)]
i915: Fix use of uninitialized variable in OPCODE_NOISE stub.

We don't actually care which register is used since we're just
swizzling (0,0,0,0), but it should be a valid variable number.
Detected by clang.

14 years agomesa: Replace CLAMP_SELF() macro with more obvious CLAMP() usage.
Eric Anholt [Tue, 22 Dec 2009 19:04:32 +0000 (11:04 -0800)]
mesa: Replace CLAMP_SELF() macro with more obvious CLAMP() usage.

The same code is generated, and readers and static analyzers are
happier.

14 years agointel: Remove unused stored values reported by clang.
Eric Anholt [Tue, 22 Dec 2009 18:58:47 +0000 (10:58 -0800)]
intel: Remove unused stored values reported by clang.

14 years agomesa: Remove _mesa_exit wrapper for exit().
Eric Anholt [Tue, 22 Dec 2009 18:56:34 +0000 (10:56 -0800)]
mesa: Remove _mesa_exit wrapper for exit().

It does nothing else while being less useful than exit() because it lacks
attributes that real exit() has.

14 years agomesa: adjust OPCODE_IF/ELSE BranchTarget fields to point to ELSE/ENDIF instr.
Brian Paul [Tue, 22 Dec 2009 21:21:07 +0000 (14:21 -0700)]
mesa: adjust OPCODE_IF/ELSE BranchTarget fields to point to ELSE/ENDIF instr.

This is a little more logical.  Suggested in bug report 25654.

14 years agomesa: adjust BRK/CONT BranchTarget to always point to ENDLOOP instruction
Brian Paul [Tue, 22 Dec 2009 21:15:30 +0000 (14:15 -0700)]
mesa: adjust BRK/CONT BranchTarget to always point to ENDLOOP instruction

To be more consistant.

14 years agomesa: added some assertions in BNGLOOP/ENDLOOP cases
Brian Paul [Tue, 22 Dec 2009 19:57:31 +0000 (12:57 -0700)]
mesa: added some assertions in BNGLOOP/ENDLOOP cases

14 years agoi965g: fix for edgeflag changes (untested)
Roland Scheidegger [Tue, 22 Dec 2009 20:26:51 +0000 (21:26 +0100)]
i965g: fix for edgeflag changes (untested)

14 years agoMerge branch 'gallium-edgeflags'
Roland Scheidegger [Tue, 22 Dec 2009 19:54:26 +0000 (20:54 +0100)]
Merge branch 'gallium-edgeflags'

Conflicts:
src/mesa/state_tracker/st_draw.c

14 years agoscons: Set the default windows platform to be windows userspace.
José Fonseca [Fri, 18 Dec 2009 22:40:33 +0000 (22:40 +0000)]
scons: Set the default windows platform to be windows userspace.

I thought I had done this ages ago.

14 years agotgsi: Implement BREAKC in interpreter.
Michal Krol [Tue, 22 Dec 2009 10:58:45 +0000 (11:58 +0100)]
tgsi: Implement BREAKC in interpreter.

14 years agoi965g: fix bo_reference
Keith Whitwell [Tue, 22 Dec 2009 09:57:16 +0000 (09:57 +0000)]
i965g: fix bo_reference

14 years agoi965g: update for u_format changes
Keith Whitwell [Tue, 22 Dec 2009 09:52:26 +0000 (09:52 +0000)]
i965g: update for u_format changes

14 years agoMerge branch 'i965g-restart'
Keith Whitwell [Tue, 22 Dec 2009 09:40:39 +0000 (09:40 +0000)]
Merge branch 'i965g-restart'

Conflicts:
configure.ac

14 years agonv50: correct the negation of DDY sources
Christoph Bumiller [Mon, 21 Dec 2009 20:50:21 +0000 (21:50 +0100)]
nv50: correct the negation of DDY sources

The state tracker now does the correct thing, so
interpret negation normally.

14 years agointel: Replace release info in DRIVER_DATE with "DEVELOPMENT"
Ian Romanick [Tue, 22 Dec 2009 02:46:17 +0000 (18:46 -0800)]
intel: Replace release info in DRIVER_DATE with "DEVELOPMENT"

14 years agoMerge branch 'mesa_7_7_branch'
Ian Romanick [Tue, 22 Dec 2009 02:45:31 +0000 (18:45 -0800)]
Merge branch 'mesa_7_7_branch'

Conflicts:
src/mesa/main/version.h

14 years agoAdd MD5 checksums for 7.6.1 release
Ian Romanick [Tue, 22 Dec 2009 02:32:32 +0000 (18:32 -0800)]
Add MD5 checksums for 7.6.1 release

14 years agoAdd MD5 checksums for 7.7 release
Ian Romanick [Tue, 22 Dec 2009 02:30:35 +0000 (18:30 -0800)]
Add MD5 checksums for 7.7 release

14 years agomesa: set version string to 7.7
Ian Romanick [Tue, 22 Dec 2009 02:28:32 +0000 (18:28 -0800)]
mesa: set version string to 7.7

14 years agointel: Bump driver date to reflect status as final Q4 driver RC
Ian Romanick [Tue, 22 Dec 2009 02:27:50 +0000 (18:27 -0800)]
intel: Bump driver date to reflect status as final Q4 driver RC

14 years agoMerge branch 'mesa_7_6_branch' into mesa_7_7_branch
Ian Romanick [Tue, 22 Dec 2009 02:27:24 +0000 (18:27 -0800)]
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

Conflicts:
scons/gallium.py
scons/generic.py
src/mesa/main/version.h

14 years agomesa: set version string to 7.6.1
Ian Romanick [Tue, 22 Dec 2009 02:25:30 +0000 (18:25 -0800)]
mesa: set version string to 7.6.1

14 years agoglsl: assorted clean-ups in slang_compile.c
Brian Paul [Tue, 22 Dec 2009 01:04:27 +0000 (18:04 -0700)]
glsl: assorted clean-ups in slang_compile.c

14 years agoprogs/perf: Fix MSVC build.
Vinson Lee [Sat, 10 Oct 2009 16:45:16 +0000 (10:45 -0600)]
progs/perf: Fix MSVC build.
(cherry picked from commit cbf46ed670ef5a5c8a641730234dd7ae964c3170)

14 years agomesa: Fix missing finite symbol error on Windows.
José Fonseca [Thu, 24 Sep 2009 11:36:11 +0000 (12:36 +0100)]
mesa: Fix missing finite symbol error on Windows.

Caused by some weird logic regarding the __WIN32__ define which made
the finite definition dependent on the header include order.
(cherry picked from commit 622bdecabd73167d2f2f3aff0e223a8c64433f99)

14 years agomesa: Include <unistd.h> only when one is available.
Michal Krol [Mon, 7 Sep 2009 07:31:17 +0000 (09:31 +0200)]
mesa: Include <unistd.h> only when one is available.
(cherry picked from commit 970823978c2f7d2cf0757aa6ddbd6289b34c476f)

14 years agodarwin: Build glsl
Jeremy Huddleston [Tue, 22 Dec 2009 01:48:59 +0000 (17:48 -0800)]
darwin: Build glsl
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
14 years agoosmesa: Fix a copy/paste error in building libOSMesa
Jeremy Huddleston [Tue, 22 Dec 2009 01:48:35 +0000 (17:48 -0800)]
osmesa: Fix a copy/paste error in building libOSMesa

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
14 years agoMerge branch 'mesa_7_7_branch'
Brian Paul [Tue, 22 Dec 2009 01:35:54 +0000 (18:35 -0700)]
Merge branch 'mesa_7_7_branch'

Conflicts:
src/mesa/main/version.h
src/mesa/state_tracker/st_atom_shader.c

14 years agoscons: Define _USE_MATH_DEFINES on MSVC.
Vinson Lee [Tue, 22 Dec 2009 01:25:03 +0000 (17:25 -0800)]
scons: Define _USE_MATH_DEFINES on MSVC.

14 years agoMerge branch 'mesa_7_6_branch' into mesa_7_7_branch
Brian Paul [Tue, 22 Dec 2009 01:23:53 +0000 (18:23 -0700)]
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

Conflicts:
configure.ac
progs/demos/morph3d.c
progs/demos/textures.c
progs/glsl/shtest.c
progs/glsl/texaaline.c
progs/tests/packedpixels.c
progs/xdemos/corender.c
src/mesa/main/version.h

14 years agoconfigure.ac: fix for libdrm_radeon API changes.
Fabio Pedretti [Tue, 22 Dec 2009 00:43:35 +0000 (10:43 +1000)]
configure.ac: fix for libdrm_radeon API changes.

14 years agoconfigure.ac: fix for libdrm_radeon API changes.
Fabio Pedretti [Tue, 22 Dec 2009 00:43:35 +0000 (10:43 +1000)]
configure.ac: fix for libdrm_radeon API changes.

14 years agoconfigure.ac: fix for libdrm_radeon API changes.
Fabio Pedretti [Tue, 22 Dec 2009 00:43:35 +0000 (10:43 +1000)]
configure.ac: fix for libdrm_radeon API changes.

14 years agoradeon/r600: use new libdrm_radeon api
Dave Airlie [Thu, 17 Dec 2009 04:29:04 +0000 (14:29 +1000)]
radeon/r600: use new libdrm_radeon api

14 years agoradeon: drop assert accessing cref which is meant to be hidden
Dave Airlie [Thu, 17 Dec 2009 04:19:27 +0000 (14:19 +1000)]
radeon: drop assert accessing cref which is meant to be hidden

14 years agoradeon: drop unused members of radeon_state.
Dave Airlie [Thu, 17 Dec 2009 04:18:54 +0000 (14:18 +1000)]
radeon: drop unused members of radeon_state.

14 years agor600: move structs for legacy cmdbuf into cmdbuf C file.
Dave Airlie [Thu, 17 Dec 2009 04:23:08 +0000 (14:23 +1000)]
r600: move structs for legacy cmdbuf into cmdbuf C file.

these really shouldn't be exposed here

14 years agoradeon/r600: use new libdrm_radeon api
Dave Airlie [Thu, 17 Dec 2009 04:29:04 +0000 (14:29 +1000)]
radeon/r600: use new libdrm_radeon api

14 years agoradeon: drop assert accessing cref which is meant to be hidden
Dave Airlie [Thu, 17 Dec 2009 04:19:27 +0000 (14:19 +1000)]
radeon: drop assert accessing cref which is meant to be hidden

14 years agoradeon: drop unused members of radeon_state.
Dave Airlie [Thu, 17 Dec 2009 04:18:54 +0000 (14:18 +1000)]
radeon: drop unused members of radeon_state.

14 years agor600: move structs for legacy cmdbuf into cmdbuf C file.
Dave Airlie [Thu, 17 Dec 2009 04:23:08 +0000 (14:23 +1000)]
r600: move structs for legacy cmdbuf into cmdbuf C file.

these really shouldn't be exposed here

14 years agoprogs/redbook: Silence compiler warnings.
Vinson Lee [Mon, 21 Dec 2009 23:20:01 +0000 (15:20 -0800)]
progs/redbook: Silence compiler warnings.

14 years agoprogs/perf: added check for GL_ARB_framebuffer_object
Brian Paul [Mon, 21 Dec 2009 20:48:58 +0000 (13:48 -0700)]
progs/perf: added check for GL_ARB_framebuffer_object

14 years agoprogs/demos: report pixel rate in million pixels / sec
Brian Paul [Fri, 11 Dec 2009 22:22:17 +0000 (15:22 -0700)]
progs/demos: report pixel rate in million pixels / sec

14 years agoosmesa: added new GLSL libs
Brian Paul [Mon, 21 Dec 2009 20:37:49 +0000 (13:37 -0700)]
osmesa: added new GLSL libs

14 years agoprogs/osmes: add missing libGL dependency, remove unneeded lines
Brian Paul [Mon, 21 Dec 2009 20:37:11 +0000 (13:37 -0700)]
progs/osmes: add missing libGL dependency, remove unneeded lines

14 years agoi965g: fixes to build after merge of master
Keith Whitwell [Mon, 21 Dec 2009 19:50:05 +0000 (19:50 +0000)]
i965g: fixes to build after merge of master

14 years agoi965g: remove half-finished change to tgsi_parse
Keith Whitwell [Mon, 21 Dec 2009 19:22:45 +0000 (19:22 +0000)]
i965g: remove half-finished change to tgsi_parse

14 years agoi965g: back out unintentional changes to linux-dri
Keith Whitwell [Mon, 21 Dec 2009 19:21:09 +0000 (19:21 +0000)]
i965g: back out unintentional changes to linux-dri

14 years agoi965g: back out unintentional changes to gears
Keith Whitwell [Mon, 21 Dec 2009 19:19:01 +0000 (19:19 +0000)]
i965g: back out unintentional changes to gears

14 years agoMerge commit 'origin/master' into i965g-restart
Keith Whitwell [Mon, 21 Dec 2009 19:18:41 +0000 (19:18 +0000)]
Merge commit 'origin/master' into i965g-restart

Conflicts:
SConstruct
configs/default
configs/linux-dri

14 years agoutil: draw cube mipmaps with TEX CUBE
Christoph Bumiller [Mon, 21 Dec 2009 17:31:57 +0000 (18:31 +0100)]
util: draw cube mipmaps with TEX CUBE

14 years agopython: fix some pipe_format_simplify merge damage
Roland Scheidegger [Mon, 21 Dec 2009 17:20:31 +0000 (18:20 +0100)]
python: fix some pipe_format_simplify merge damage

14 years agosvga: fix typo
Roland Scheidegger [Mon, 21 Dec 2009 17:20:01 +0000 (18:20 +0100)]
svga: fix typo

14 years agows/i965: respect DEBUG_WINSYS flag
Keith Whitwell [Mon, 21 Dec 2009 16:58:14 +0000 (16:58 +0000)]
ws/i965: respect DEBUG_WINSYS flag

14 years agoi965g: hook vertex state emit up to PIPE_NEW_VERTEX_BUFFER
Keith Whitwell [Mon, 21 Dec 2009 16:57:37 +0000 (16:57 +0000)]
i965g: hook vertex state emit up to PIPE_NEW_VERTEX_BUFFER

14 years agoi965g: keep refcounts to bound vertex buffers
Keith Whitwell [Mon, 21 Dec 2009 16:56:46 +0000 (16:56 +0000)]
i965g: keep refcounts to bound vertex buffers

14 years agoi965g: add DEBUG_WINSYS flag
Keith Whitwell [Mon, 21 Dec 2009 16:55:40 +0000 (16:55 +0000)]
i965g: add DEBUG_WINSYS flag

14 years agor600: fix glFrontFace(GL_CW)
Dave Airlie [Mon, 21 Dec 2009 00:21:28 +0000 (10:21 +1000)]
r600: fix glFrontFace(GL_CW)

fd.o bug #25290

Suggested fix from Rafael Monica

14 years agoi965g: remove duplicate set_viewport_state, fixes samples/depth
Keith Whitwell [Mon, 21 Dec 2009 15:38:08 +0000 (15:38 +0000)]
i965g: remove duplicate set_viewport_state, fixes samples/depth

14 years agor600: support more of arb_point_sprite and also sprite_coord_origin
Andre Maasikas [Mon, 21 Dec 2009 13:19:21 +0000 (15:19 +0200)]
r600: support more of arb_point_sprite and also sprite_coord_origin

14 years agor600: disallow negative offsets for relative addressing for now
Andre Maasikas [Mon, 21 Dec 2009 09:47:12 +0000 (11:47 +0200)]
r600: disallow negative offsets for relative addressing for now

otherwise for example const[ADDR-3] gets us 253 - ALU_SRC_LITERAL which
expects immediate floats to follow and hangs

14 years agovega: Add missing actual argument.
Michal Krol [Mon, 21 Dec 2009 10:58:17 +0000 (11:58 +0100)]
vega: Add missing actual argument.

14 years agost/mesa: Check for single level mipmap trees.
Younes Manton [Mon, 21 Dec 2009 01:11:55 +0000 (20:11 -0500)]
st/mesa: Check for single level mipmap trees.

The assert in util_gen_mipmap() caught it, although
it does the right thing anyway.

14 years agodarwin: mklib: Use lipo rather than file to figure out architectures of object files
Jeremy Huddleston [Mon, 21 Dec 2009 05:34:27 +0000 (21:34 -0800)]
darwin: mklib: Use lipo rather than file to figure out architectures of object files
(cherry picked from commit ad7f9d71e22fb7667c90dbbc0558939b89a45154)

14 years agodarwin: Cleanup CPPFLAGS a bit
Jeremy Huddleston [Mon, 21 Dec 2009 05:32:35 +0000 (21:32 -0800)]
darwin: Cleanup CPPFLAGS a bit
(cherry picked from commit 4a1e103858a1db0fb037891b8d4a9426eff32b98)

14 years agodarwin: mklib: Use lipo rather than file to figure out architectures of object files
Jeremy Huddleston [Mon, 21 Dec 2009 05:34:27 +0000 (21:34 -0800)]
darwin: mklib: Use lipo rather than file to figure out architectures of object files

14 years agodarwin: Cleanup CPPFLAGS a bit
Jeremy Huddleston [Mon, 21 Dec 2009 05:32:35 +0000 (21:32 -0800)]
darwin: Cleanup CPPFLAGS a bit

14 years agor600: fix glFrontFace(GL_CW)
Dave Airlie [Mon, 21 Dec 2009 00:21:28 +0000 (10:21 +1000)]
r600: fix glFrontFace(GL_CW)

fd.o bug #25290

Suggested fix from Rafael Monica

14 years agor300g: Add a few more params.
Corbin Simpson [Sun, 20 Dec 2009 22:00:34 +0000 (14:00 -0800)]
r300g: Add a few more params.

14 years agoglsl: make stack compile.
Dave Airlie [Sun, 20 Dec 2009 23:10:21 +0000 (09:10 +1000)]
glsl: make stack compile.

it would be nice if this stuff would be test built on mesa's primary
platform with mesa's primary build system.

Signed-off-by: Dave Airlie <airlied@redhat.com>