platform/upstream/mesa.git
14 years agoprogs/gallium: Move into src/gallium/tests
José Fonseca [Mon, 12 Apr 2010 22:05:13 +0000 (07:05 +0900)]
progs/gallium: Move into src/gallium/tests

Two reasons:
- progs will eventually have its own repository
- it is just to easy to forget updating the
  code for interface changes when it is outside of src

14 years agogallium/auxiliary: add dynamically sized buffer/array/vector
Luca Barbieri [Thu, 25 Feb 2010 12:11:12 +0000 (13:11 +0100)]
gallium/auxiliary: add dynamically sized buffer/array/vector

14 years agonvfx: add LRP in vertprog
Luca Barbieri [Thu, 25 Feb 2010 01:52:43 +0000 (02:52 +0100)]
nvfx: add LRP in vertprog

glsl generates these.

14 years agonvfx: add SIN and COS in vertprog
Luca Barbieri [Tue, 19 Jan 2010 16:26:20 +0000 (17:26 +0100)]
nvfx: add SIN and COS in vertprog

14 years agonvfx: add missing vertprog setcond instructions
Luca Barbieri [Mon, 18 Jan 2010 17:20:45 +0000 (18:20 +0100)]
nvfx: add missing vertprog setcond instructions

Trivially adds SEQ, SGT, SLE, SNE, SFL, STR and SSG which were missing.

14 years agonvfx: allocate a bigger block for queries
Luca Barbieri [Mon, 18 Jan 2010 00:13:40 +0000 (01:13 +0100)]
nvfx: allocate a bigger block for queries

This patch allocates a bigger chunk of memory to store queries in,
increasing the (hidden) outstanding query limit.

14 years agonvfx: support an unlimited number of occlusion queries
Luca Barbieri [Mon, 18 Jan 2010 00:02:55 +0000 (01:02 +0100)]
nvfx: support an unlimited number of occlusion queries

Currently on nv30/nv40 an assert will be triggered once 32 queries are
outstanding.

This violates the OpenGL/Gallium interface, which requires support for
an unlimited number of fences.

This patch fixes the problem by putting queries in a linked list and
waiting on the oldest one if allocation fails.

nVidia seems to use a similar strategy, but with 1024 instead of 32 fences.
The next patch will improve this.

14 years agor300g: Move declaration before code.
Vinson Lee [Mon, 12 Apr 2010 19:50:41 +0000 (12:50 -0700)]
r300g: Move declaration before code.

Fixes SCons build.

14 years agonvfx: fix TXL opcode value
Luca Barbieri [Mon, 22 Mar 2010 04:43:56 +0000 (05:43 +0100)]
nvfx: fix TXL opcode value

Was broken during unification

14 years agonvfx: Add support for two sided color
Luca Barbieri [Mon, 11 Jan 2010 00:09:44 +0000 (01:09 +0100)]
nvfx: Add support for two sided color

This patch adds support for two-sided vertex color to nv30/nv40.

When set, the COLOR0/1 fs inputs on back faces will be wired to vs outputs BCOLOR0/1.
This makes OpenGL two sided lighting work, which can be tested with progs/demos/projtex.

14 years agonvfx: fix compile error
Luca Barbieri [Mon, 12 Apr 2010 18:43:08 +0000 (20:43 +0200)]
nvfx: fix compile error

14 years agonvfx: don't use hw index buffers on nv3x and nv44
Luca Barbieri [Mon, 12 Apr 2010 18:36:44 +0000 (20:36 +0200)]
nvfx: don't use hw index buffers on nv3x and nv44

They only apparently work on nv40 grclass cards, and this was the
previous behavior of the driver.

This really needs to be investigated more.

14 years agonvfx: expose PIPE_FORMAT_B8G8R8X8_UNORM support
Luca Barbieri [Wed, 20 Jan 2010 03:36:58 +0000 (04:36 +0100)]
nvfx: expose PIPE_FORMAT_B8G8R8X8_UNORM support

This is implemented in nvfx_state_fb and fragtex but was missing
in nvfx_screen.

This allows to avoid glCopyTexSubImage CPU fallbacks and makes Doom 3
much faster as a result.

14 years agonvfx: add support for ARB_half_float_vertex
Luca Barbieri [Mon, 18 Jan 2010 16:38:29 +0000 (17:38 +0100)]
nvfx: add support for ARB_half_float_vertex

14 years agost/mesa: half float vertex support (unexposed)
Luca Barbieri [Mon, 18 Jan 2010 15:42:57 +0000 (16:42 +0100)]
st/mesa: half float vertex support (unexposed)

This was proposed by Marek Olšák and no one objected, so just
pushing it.

The extension is currently not exposed, because the mechanism to
discover if the driver actually supports this is missing.

We probably should change is_format_supported to handle this too.

This will allow to test Gallium drivers anyway in the meantime.

Based on work by Dave Airlie.

Changes by me:
1. Fix assertion in st
2. Change to use unpadded Gallium formats

14 years agonvfx: allocate buffers in GART if !NOUVEAU_SWTNL
Luca Barbieri [Mon, 12 Apr 2010 16:53:30 +0000 (18:53 +0200)]
nvfx: allocate buffers in GART if !NOUVEAU_SWTNL

Should improve performance and fix serious regressions on AGP cards.

14 years agonvfx: move check for NOUVEAU_SWTNL
Luca Barbieri [Mon, 12 Apr 2010 16:06:06 +0000 (18:06 +0200)]
nvfx: move check for NOUVEAU_SWTNL

14 years agonvfx: remove #include "nouveau_stateobj.h"
Luca Barbieri [Tue, 23 Feb 2010 16:33:14 +0000 (17:33 +0100)]
nvfx: remove #include "nouveau_stateobj.h"

No longer used, finally!

14 years agonvfx: rework validation logic to use code and avoid stateobjs
Luca Barbieri [Tue, 23 Feb 2010 15:48:22 +0000 (16:48 +0100)]
nvfx: rework validation logic to use code and avoid stateobjs

This makes the code faster due to the lack of indirect calls and also
makes it much easier to understand what is actually going on.

14 years agonvfx: add NVFX_NEW_{FRAG,VERT}CONST
Luca Barbieri [Tue, 23 Feb 2010 15:31:33 +0000 (16:31 +0100)]
nvfx: add NVFX_NEW_{FRAG,VERT}CONST

14 years agonvfx: so->RING_3D: vertprog
Luca Barbieri [Tue, 23 Feb 2010 14:52:24 +0000 (15:52 +0100)]
nvfx: so->RING_3D: vertprog

We could use an sb here instead, but there is no obvious performance
advantage, and perhaps there could be a disadvantage.

14 years agonvfx: so->RING_3D: sr
Luca Barbieri [Tue, 23 Feb 2010 14:45:07 +0000 (15:45 +0100)]
nvfx: so->RING_3D: sr

14 years agonvfx: so->sb: blend
Luca Barbieri [Tue, 23 Feb 2010 14:34:35 +0000 (15:34 +0100)]
nvfx: so->sb: blend

14 years agonvfx: so->sb: zsa
Luca Barbieri [Tue, 23 Feb 2010 14:26:32 +0000 (15:26 +0100)]
nvfx: so->sb: zsa

14 years agonvfx: so->sb: rasterizer
Luca Barbieri [Tue, 23 Feb 2010 14:22:07 +0000 (15:22 +0100)]
nvfx: so->sb: rasterizer

14 years agonvfx: so->RING_3D: screen
Luca Barbieri [Tue, 23 Feb 2010 14:12:30 +0000 (15:12 +0100)]
nvfx: so->RING_3D: screen

14 years agonvfx: so->RING_3D: viewport
Luca Barbieri [Tue, 23 Feb 2010 14:10:05 +0000 (15:10 +0100)]
nvfx: so->RING_3D: viewport

14 years agonvfx: so->RING_3D: stipple
Luca Barbieri [Tue, 23 Feb 2010 14:09:32 +0000 (15:09 +0100)]
nvfx: so->RING_3D: stipple

14 years agonvfx: so->RING_3D: scissor
Luca Barbieri [Tue, 23 Feb 2010 14:05:54 +0000 (15:05 +0100)]
nvfx: so->RING_3D: scissor

14 years agonvfx: so->RING_3D: blend
Luca Barbieri [Tue, 23 Feb 2010 14:05:36 +0000 (15:05 +0100)]
nvfx: so->RING_3D: blend

14 years agonvfx: so->RING_3D: fb
Luca Barbieri [Sun, 14 Mar 2010 19:52:18 +0000 (20:52 +0100)]
nvfx: so->RING_3D: fb

14 years agonvfx: so->RING_3D: fragprog
Luca Barbieri [Sun, 14 Mar 2010 19:51:42 +0000 (20:51 +0100)]
nvfx: so->RING_3D: fragprog

14 years agonvfx: so->RING_3D: fragtex
Luca Barbieri [Sun, 14 Mar 2010 19:50:03 +0000 (20:50 +0100)]
nvfx: so->RING_3D: fragtex

14 years agonvfx: so->RING_3D: vbo
Luca Barbieri [Tue, 23 Feb 2010 10:14:28 +0000 (11:14 +0100)]
nvfx: so->RING_3D: vbo

14 years agonvfx: stop using flush_notify
Luca Barbieri [Sun, 14 Mar 2010 02:09:02 +0000 (03:09 +0100)]
nvfx: stop using flush_notify

Rather than emitting relocations on flush notifications, emit them
in nvfx_state_start.

14 years agonouveau: add state buffers, lightweight replacement for state objects
Luca Barbieri [Tue, 23 Feb 2010 10:11:52 +0000 (11:11 +0100)]
nouveau: add state buffers, lightweight replacement for state objects

Just a dumb buffer, allowed by the RING_3D/fixed subchannel binding and
no support for relocations.

This is *much* faster than state objects.

14 years agonouveau: don't autobind in state objects relocations
Luca Barbieri [Tue, 23 Feb 2010 22:16:36 +0000 (23:16 +0100)]
nouveau: don't autobind in state objects relocations

Autobinding creates additional pushbuffer usage which may not be
accounted in callers, and is also slow.

The next relocations patch depends on this for correctness.

Assert instead if the objects are not bound, which should happen at
screen creation time.

14 years agonouveau: bind the 3D engine to subchannel 7 and add RING_3D
Luca Barbieri [Tue, 23 Feb 2010 10:06:31 +0000 (11:06 +0100)]
nouveau: bind the 3D engine to subchannel 7 and add RING_3D

RING_3D creates a method start for subchannel 7.

Bind the 3D engine to a fixed subchannel to make it work

This is much faster than the old BEGIN_RING, since we don't need
to waste cycles trying to "autobind" stuff, when a fast static binding
is perfectly good.

Subchannel 7 is chosen because the kernel takes up the lowest ones.

14 years agonvfx: avoid flushes in primitives
Luca Barbieri [Mon, 12 Apr 2010 07:36:28 +0000 (09:36 +0200)]
nvfx: avoid flushes in primitives

Currently we miscalculate the space needed to push vertices, causing
flushes where they should not happen.

Use a much more conservative estimate to fix it.

It will be done better in the future (e.g. using the nv50 primitive
splitter).

14 years agor300/compiler: Comment code, add much better mirror maths.
Corbin Simpson [Mon, 12 Apr 2010 09:40:40 +0000 (02:40 -0700)]
r300/compiler: Comment code, add much better mirror maths.

14 years agonvfx: fix bind flags
Luca Barbieri [Mon, 12 Apr 2010 09:45:50 +0000 (11:45 +0200)]
nvfx: fix bind flags

14 years agor300/compiler: Implement texcoord repeat and mirror for NPOT.
Corbin Simpson [Sun, 11 Apr 2010 23:13:45 +0000 (16:13 -0700)]
r300/compiler: Implement texcoord repeat and mirror for NPOT.

14 years agor300g: Setup external state for wrap modes.
Corbin Simpson [Sun, 11 Apr 2010 20:55:00 +0000 (13:55 -0700)]
r300g: Setup external state for wrap modes.

14 years agor300g: Cleanup fragment program external state setup.
Corbin Simpson [Sun, 11 Apr 2010 20:52:01 +0000 (13:52 -0700)]
r300g: Cleanup fragment program external state setup.

14 years agor300/compiler: Add NPOT compatibility fields to external state.
Corbin Simpson [Sun, 11 Apr 2010 20:31:54 +0000 (13:31 -0700)]
r300/compiler: Add NPOT compatibility fields to external state.

Completely unused for now.

14 years agollvmpipe: Respect pipe_sampler_view::format.
José Fonseca [Mon, 12 Apr 2010 06:16:01 +0000 (15:16 +0900)]
llvmpipe: Respect pipe_sampler_view::format.

14 years agoprogs/gallium/raw: Update symbols.
José Fonseca [Mon, 12 Apr 2010 06:09:18 +0000 (15:09 +0900)]
progs/gallium/raw: Update symbols.

Untested -- just the same changes done to progs/gallium/python.

14 years agoprogs/gallium/python: Try to fix most regressions.
José Fonseca [Mon, 12 Apr 2010 06:08:05 +0000 (15:08 +0900)]
progs/gallium/python: Try to fix most regressions.

Not enough for retrace to work again though.

14 years agost/python: Fix regressions.
José Fonseca [Mon, 12 Apr 2010 06:04:16 +0000 (15:04 +0900)]
st/python: Fix regressions.

14 years agotrace: Fix several regressions introduced by recent interface changes.
José Fonseca [Mon, 12 Apr 2010 06:03:25 +0000 (15:03 +0900)]
trace: Fix several regressions introduced by recent interface changes.

14 years agollvmpipe: pipe_target needs now 3 bits to be represented.
José Fonseca [Mon, 12 Apr 2010 06:02:22 +0000 (15:02 +0900)]
llvmpipe: pipe_target needs now 3 bits to be represented.

14 years agostw: Update for pipe_resource interface changes.
José Fonseca [Sun, 11 Apr 2010 09:16:39 +0000 (18:16 +0900)]
stw: Update for pipe_resource interface changes.

14 years agostw: Fix minor st_api migration glitches.
José Fonseca [Sun, 11 Apr 2010 08:58:17 +0000 (17:58 +0900)]
stw: Fix minor st_api migration glitches.

14 years agost/wgl: Switch from st_public.h to st_api.h. [V2]
Chia-I Wu [Wed, 17 Mar 2010 02:11:22 +0000 (10:11 +0800)]
st/wgl: Switch from st_public.h to st_api.h. [V2]

This is only compile tested with crossmingw.

V2:
 - reference count stw_framebuffer

14 years agoFix build with --enable-32-bit.
Török Edwin [Fri, 9 Apr 2010 17:05:47 +0000 (20:05 +0300)]
Fix build with --enable-32-bit.

CFLAGS needs to be passed, as you already know.
Commit 3e17a5b047124c46ee45dbd1848127c67e0d62f3 broke this by adding a new link
command without CFLAGS.

Signed-off-by: Török Edwin <edwintorok@gmail.com>
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
14 years agoRevert "dri/drivers: fix 32bit builds on 64bit systems"
Dan Nicholson [Mon, 12 Apr 2010 03:56:22 +0000 (20:56 -0700)]
Revert "dri/drivers: fix 32bit builds on 64bit systems"

This reverts commit bd09fce27119548cb91cc2aa9ced6a7347aefc3a. Török
Edwin sent the correct fix to the list a couple days ago in
<1270832747-15611-1-git-send-email-edwintorok@gmail.com>.

14 years agonvfx: make NOUVEAU_NO_TRANSFER default off
Luca Barbieri [Mon, 12 Apr 2010 02:55:05 +0000 (04:55 +0200)]
nvfx: make NOUVEAU_NO_TRANSFER default off

Otherwise, we read from VRAM...

Yes, again, it should be fixed to tell whether the buffer is in
VRAM or not and behave appropriately.

But this should be in pipebuffer/a generic layer; revisit this later
too.

14 years agonvfx: always use M2MF instead of the blitter
Luca Barbieri [Mon, 12 Apr 2010 02:49:02 +0000 (04:49 +0200)]
nvfx: always use M2MF instead of the blitter

Currently we are relocating transfers to VRAM to use the blitter,
which is terrible.

Maybe for ->VRAM the blitter could be better, but we can't be
perfectly sure of that due to relocations.

In other words, just do the simple thing, and defer fine-tuning the
transfer hardware method to a later stage, while making it work
decently now.

14 years agost/egl: Request the front buffer as needed.
Chia-I Wu [Mon, 12 Apr 2010 03:08:31 +0000 (11:08 +0800)]
st/egl: Request the front buffer as needed.

The front buffer is added to support old X servers.  Check the version
of the server so that it can be added as needed.

14 years agonvfx: add missing vtbl for shared textures
Luca Barbieri [Mon, 12 Apr 2010 02:38:53 +0000 (04:38 +0200)]
nvfx: add missing vtbl for shared textures

14 years agor300g: atomize FS constant buffer
Marek Olšák [Mon, 12 Apr 2010 02:12:27 +0000 (04:12 +0200)]
r300g: atomize FS constant buffer

14 years agor300g: atomize compiler's state variables for fragment shader
Marek Olšák [Mon, 12 Apr 2010 01:46:03 +0000 (03:46 +0200)]
r300g: atomize compiler's state variables for fragment shader

14 years agor300g: atomize fragment shader
Marek Olšák [Mon, 12 Apr 2010 01:08:38 +0000 (03:08 +0200)]
r300g: atomize fragment shader

14 years agor300g: remove a false comment
Marek Olšák [Mon, 12 Apr 2010 00:26:47 +0000 (02:26 +0200)]
r300g: remove a false comment

14 years agor300g: emit FS depth output config with FS code
Marek Olšák [Mon, 12 Apr 2010 00:17:35 +0000 (02:17 +0200)]
r300g: emit FS depth output config with FS code

14 years agor300g: FS constants emission rework
Marek Olšák [Sun, 11 Apr 2010 21:00:16 +0000 (23:00 +0200)]
r300g: FS constants emission rework

* The constant buffer emission is separated from RC state variables emission.
* The immediates are emitted with FS code.

14 years agor300g: Remove unnecessary headers.
Vinson Lee [Mon, 12 Apr 2010 01:27:04 +0000 (18:27 -0700)]
r300g: Remove unnecessary headers.

14 years agor300g: Initialize base.bind member variable.
Vinson Lee [Mon, 12 Apr 2010 01:19:24 +0000 (18:19 -0700)]
r300g: Initialize base.bind member variable.

The base.bind member variable was never initialized.

14 years agoi915g: Fix possible null pointer deference in debug builds.
Vinson Lee [Mon, 12 Apr 2010 01:07:41 +0000 (18:07 -0700)]
i915g: Fix possible null pointer deference in debug builds.

i915_buffer deferences buf in debug builds. Move declaration and
assignment to inside NULL check of buf.

14 years agoprogs/trivial: Update .gitignore.
Vinson Lee [Mon, 12 Apr 2010 00:30:44 +0000 (17:30 -0700)]
progs/trivial: Update .gitignore.

14 years agoprogs/egl: Add lib directories to OpenVG demos
Jakob Bornecrantz [Sat, 10 Apr 2010 12:32:12 +0000 (14:32 +0200)]
progs/egl: Add lib directories to OpenVG demos

14 years agost/egl: Fix DRI2 on old X servers
Jakob Bornecrantz [Sun, 11 Apr 2010 22:28:49 +0000 (00:28 +0200)]
st/egl: Fix DRI2 on old X servers

14 years agowinsys/sw: Fix error paths
Jakob Bornecrantz [Sat, 10 Apr 2010 11:41:22 +0000 (13:41 +0200)]
winsys/sw: Fix error paths

14 years agollvmpipe: Fix transfers after resource change
Jakob Bornecrantz [Sun, 11 Apr 2010 23:47:28 +0000 (01:47 +0200)]
llvmpipe: Fix transfers after resource change

14 years agoutil: Remove unnecessary header.
Vinson Lee [Sun, 11 Apr 2010 22:06:07 +0000 (15:06 -0700)]
util: Remove unnecessary header.

14 years agoi965g: Remove unnecessary header.
Vinson Lee [Sun, 11 Apr 2010 21:59:09 +0000 (14:59 -0700)]
i965g: Remove unnecessary header.

14 years agor300g: Add r300_resource.c to SCons build.
Vinson Lee [Sun, 11 Apr 2010 21:51:14 +0000 (14:51 -0700)]
r300g: Add r300_resource.c to SCons build.

This was missed in commit 287c94ea4987033f9c99a2f91c5750c9083504ca,
the gallium-resources branch merge.

14 years agosvga: Remove unnecessary headers.
Vinson Lee [Sun, 11 Apr 2010 21:27:16 +0000 (14:27 -0700)]
svga: Remove unnecessary headers.

14 years agotrace: Remove unnecessary header.
Vinson Lee [Sun, 11 Apr 2010 21:03:57 +0000 (14:03 -0700)]
trace: Remove unnecessary header.

14 years agor300g: a fix for piglit/texrect-many
Marek Olšák [Sun, 11 Apr 2010 17:28:01 +0000 (19:28 +0200)]
r300g: a fix for piglit/texrect-many

Broken since 146879284c6b844f35afe3a3ef3330726afbe8ac.

14 years agor300g: use a dummy replacement vertex shader if the shader compilation fails
Marek Olšák [Sun, 11 Apr 2010 08:15:12 +0000 (10:15 +0200)]
r300g: use a dummy replacement vertex shader if the shader compilation fails

14 years agor300g: use a dummy replacement fragment shader if the shader compilation fails
Marek Olšák [Sun, 11 Apr 2010 08:15:12 +0000 (10:15 +0200)]
r300g: use a dummy replacement fragment shader if the shader compilation fails

Better than killing an application.

14 years agodri/drivers: fix 32bit builds on 64bit systems
Maciej Cencora [Sun, 11 Apr 2010 14:33:55 +0000 (16:33 +0200)]
dri/drivers: fix 32bit builds on 64bit systems

14 years agoMerge commit 'origin/7.8'
Maciej Cencora [Sun, 11 Apr 2010 12:12:13 +0000 (14:12 +0200)]
Merge commit 'origin/7.8'

14 years agor300: respect radeon common code fallbacks
Maciej Cencora [Sun, 11 Apr 2010 10:39:54 +0000 (12:39 +0200)]
r300: respect radeon common code fallbacks

Fixes progs/demos/shadowtex under KMS

14 years agor300: set proper vertex index limits also in non indexed mode
Maciej Cencora [Fri, 9 Apr 2010 19:14:15 +0000 (21:14 +0200)]
r300: set proper vertex index limits also in non indexed mode

Fixes #27521, broken menus in UT2004 and broken water refraction in Sauerbraten.

14 years agonv50: fix texture relocs
Christoph Bumiller [Sun, 11 Apr 2010 09:36:34 +0000 (11:36 +0200)]
nv50: fix texture relocs

The new address should go to TIC entries 1, 2 instead of entry 0.
Also, using PIPE_SHADER_* for the program type was wrong, they're
ordered like the tesla method now, sorry for the confusion.

14 years agost/egl: Follow the portability guide.
Chia-I Wu [Sun, 11 Apr 2010 07:09:24 +0000 (15:09 +0800)]
st/egl: Follow the portability guide.

Avoid including standard library headers and use MALLOC/FREE if
possible.

14 years agost/egl: Factor driver callbacks to a new file.
Chia-I Wu [Sun, 11 Apr 2010 06:42:07 +0000 (14:42 +0800)]
st/egl: Factor driver callbacks to a new file.

Factor all callbacks other than Initialize, Terminate, and GetProcAddress
to egl_g3d_api.c.

14 years agoscons: Always build softpipe and llvmpipe (when llvm available).
José Fonseca [Sat, 10 Apr 2010 02:01:30 +0000 (03:01 +0100)]
scons: Always build softpipe and llvmpipe (when llvm available).

These are our reference software rasterizers. They can build everywhere
and are a precious debugging tool.

Making them always present immensily simplifies the scons logic.

If people want to avoid building it is still possible to pass
direcotries and target names to scons to narrow the build.

14 years agoscons: Make debug build default.
José Fonseca [Sat, 10 Apr 2010 01:44:52 +0000 (02:44 +0100)]
scons: Make debug build default.

I've been back and forth on this, but I believe it's worth to have debug
by default.

Most humans (developers, testers) will want to use the debug version  by
default.  Many build bots want release but they are bots, and humans >
bots, so I don't care that much.

This is part of my initiative of minimizing the scons option mess many
complain about.

14 years agoscons: Make LLVM a black-white dependency.
José Fonseca [Sat, 10 Apr 2010 01:41:39 +0000 (02:41 +0100)]
scons: Make LLVM a black-white dependency.

Now that draw depends on llvm it is very difficult to correctly handle
broken llvm installations. Either the user requests LLVM and it needs to
supply a working installation. Or it doesn't, and it gets no LLVM
accelerate pipe drivers.

14 years agoscons: Use libdrm options only where needed.
José Fonseca [Sat, 10 Apr 2010 01:00:33 +0000 (02:00 +0100)]
scons: Use libdrm options only where needed.

Prevents needless recompiles when switching dri=yes to no.

14 years agoscons: Build glapi regardless of the dri option.
José Fonseca [Sat, 10 Apr 2010 00:53:12 +0000 (01:53 +0100)]
scons: Build glapi regardless of the dri option.

14 years agor300g: revisit some assertions and fix potential failures
Marek Olšák [Sun, 11 Apr 2010 06:28:39 +0000 (08:28 +0200)]
r300g: revisit some assertions and fix potential failures

* Turn some assertions to error messages.
* At most 16 vertex elements can be set, others are ignored.
* Rasterize at most 8 vertex-shader generic outputs, others are ignored.
  This includes fog and WPOS.
* Unknown shader semantic names are ignored.

14 years agor300g: use cliprects for scissoring
Marek Olšák [Sun, 11 Apr 2010 06:27:33 +0000 (08:27 +0200)]
r300g: use cliprects for scissoring

Cliprects can be disabled, scissors can't. It maps nicely to hardware.

14 years agost/egl: Remove unnecessary header.
Vinson Lee [Sun, 11 Apr 2010 05:20:10 +0000 (22:20 -0700)]
st/egl: Remove unnecessary header.

14 years agoi965: Remove unnecessary header.
Vinson Lee [Sun, 11 Apr 2010 05:14:06 +0000 (22:14 -0700)]
i965: Remove unnecessary header.

14 years agor300: Remove unnecessary header.
Vinson Lee [Sun, 11 Apr 2010 05:03:29 +0000 (22:03 -0700)]
r300: Remove unnecessary header.

14 years agomach64: Remove unnecessary header.
Vinson Lee [Sun, 11 Apr 2010 04:51:24 +0000 (21:51 -0700)]
mach64: Remove unnecessary header.