mesa.git
14 years agotnl: add check for conditional rendering
Brian Paul [Thu, 31 Dec 2009 04:40:03 +0000 (21:40 -0700)]
tnl: add check for conditional rendering

14 years agomesa: plug in API functions for conditional rendering
Brian Paul [Thu, 31 Dec 2009 04:39:46 +0000 (21:39 -0700)]
mesa: plug in API functions for conditional rendering

14 years agomesa: added dispatch for GL_NV_conditional_render extension
Brian Paul [Thu, 31 Dec 2009 04:38:58 +0000 (21:38 -0700)]
mesa: added dispatch for GL_NV_conditional_render extension

14 years agomesa: added FLUSH_VERTICES(), more comments
Brian Paul [Thu, 31 Dec 2009 04:37:54 +0000 (21:37 -0700)]
mesa: added FLUSH_VERTICES(), more comments

14 years agomesa: add flag for GL_NV_conditional_render extension
Brian Paul [Wed, 30 Dec 2009 21:49:49 +0000 (14:49 -0700)]
mesa: add flag for GL_NV_conditional_render extension

14 years agomesa: _mesa_Begin/EndConditionalRender() functions
Brian Paul [Wed, 30 Dec 2009 21:47:06 +0000 (14:47 -0700)]
mesa: _mesa_Begin/EndConditionalRender() functions

For GL_NV_conditional_render and GL3.

The drawing functions don't check the query object yet.
No API dispatch yet.

14 years agomesa: make _mesa_lookup_query_object() an non-private inline function
Brian Paul [Wed, 30 Dec 2009 21:42:14 +0000 (14:42 -0700)]
mesa: make _mesa_lookup_query_object() an non-private inline function

14 years agonv50: fix TEXLOD sequence and use it only in FPs
Christoph Bumiller [Thu, 31 Dec 2009 12:38:53 +0000 (13:38 +0100)]
nv50: fix TEXLOD sequence and use it only in FPs

14 years agonv50: cannot kill branch if immediate is used
Christoph Bumiller [Wed, 30 Dec 2009 20:25:13 +0000 (21:25 +0100)]
nv50: cannot kill branch if immediate is used

The immediate's bits eat the condition bits.

14 years agonv50: make assimilate_temp safe
Christoph Bumiller [Wed, 30 Dec 2009 20:17:31 +0000 (21:17 +0100)]
nv50: make assimilate_temp safe

Cannot change hw reg assigned to a TGSI TEMP on the fly if
we are in a loop, conditional, or can jump around wildly.

14 years agonv50: handle TGSI_OPCODE_EXP,LOG
Christoph Bumiller [Wed, 30 Dec 2009 19:54:58 +0000 (20:54 +0100)]
nv50: handle TGSI_OPCODE_EXP,LOG

Not that they make much sense on nv50, but we also do LIT ...

14 years agonv50: add support for subroutines
Christoph Bumiller [Thu, 31 Dec 2009 11:26:14 +0000 (12:26 +0100)]
nv50: add support for subroutines

14 years agonv50: alloc_reg on reg_instance
Christoph Bumiller [Wed, 30 Dec 2009 23:37:47 +0000 (00:37 +0100)]
nv50: alloc_reg on reg_instance

If we create multiple instances of an nv50_reg referencing
them same resource, register allocation from alloc_reg has
to be done with the original nv50_reg.

14 years agonv50: multiply polygon offset units by 2
Christoph Bumiller [Tue, 29 Dec 2009 11:04:34 +0000 (12:04 +0100)]
nv50: multiply polygon offset units by 2

14 years agonv50: neg and abs modifiers for flops
Christoph Bumiller [Mon, 28 Dec 2009 23:02:45 +0000 (00:02 +0100)]
nv50: neg and abs modifiers for flops

Also fixes RSQ of negative sources.

14 years agonv50: don't negate immediates in set_immd
Christoph Bumiller [Mon, 28 Dec 2009 22:17:26 +0000 (23:17 +0100)]
nv50: don't negate immediates in set_immd

This negation would only be triggered in situations
where it's incorrect.
The caller of set_immd should negate the immediate value
in the instruction itself if desired, and will also know
if it's a float or an int.

ADD TEMP[0], CONST[0], -IMMD[0] would load the immediate
into extra TEMP, negated, and set the negate flag in add
as well - double negation.

14 years agodocs: added GL 3.x feature checklist to track what's done in Mesa
Brian Paul [Wed, 30 Dec 2009 17:39:20 +0000 (10:39 -0700)]
docs: added GL 3.x feature checklist to track what's done in Mesa

14 years agomesa: implement _mesa_GetStringi() for GL3
Brian Paul [Wed, 30 Dec 2009 17:30:16 +0000 (10:30 -0700)]
mesa: implement _mesa_GetStringi() for GL3

Note: not plugged into the dispatch table yet.

14 years agomesa: _mesa_get_enabled_extension() function
Brian Paul [Wed, 30 Dec 2009 17:29:53 +0000 (10:29 -0700)]
mesa: _mesa_get_enabled_extension() function

14 years agomesa: implement GL3 GL_NUM_EXTENSIONS query
Brian Paul [Wed, 30 Dec 2009 17:16:01 +0000 (10:16 -0700)]
mesa: implement GL3 GL_NUM_EXTENSIONS query

14 years agomesa: simplify some extension testing code
Brian Paul [Wed, 30 Dec 2009 17:13:31 +0000 (10:13 -0700)]
mesa: simplify some extension testing code

14 years agomesa: display list support for glClearBuffer functions
Brian Paul [Wed, 30 Dec 2009 16:45:58 +0000 (09:45 -0700)]
mesa: display list support for glClearBuffer functions

Note: some code disabled until dispatch table supports GL3 entrypoints.

14 years agomesa: implement GL3 glClearBuffer() functions
Brian Paul [Wed, 30 Dec 2009 16:25:24 +0000 (09:25 -0700)]
mesa: implement GL3 glClearBuffer() functions

These functions clear color/depth/stencil buffers with a value that's
passed to the function, rather than the context clear values.

For now these functions are implemented in terms of the existing
ctx->Driver.Clear() hook.  In the future when we have non-normalized
integer and unsigned integer color buffer formats we'll need new
driver hook(s) to pass int and uint clear values to the driver.

Note: these functions are not hooked into the dispatch table at this time.

14 years agomklib: use a wrapper for ar
Brian Paul [Mon, 28 Dec 2009 22:12:14 +0000 (15:12 -0700)]
mklib: use a wrapper for ar

14 years agonouveau: Fix glTexSubImage on swizzled surfaces on <=NV40
Luca Barbieri [Wed, 30 Dec 2009 01:54:39 +0000 (02:54 +0100)]
nouveau: Fix glTexSubImage on swizzled surfaces on <=NV40

Currently in nvXX_transfer_new a temporary as large as the surface is created.
If the subrectangle is not the whole texture we would need to read
back the whole texture, but we aren't.
Thus, everything but the subrectangle specified is loaded as garbage.
This can be seen in progs/demos/ray.

This patch fixes the problem by creating a temporary that covers only
the desired subrectangle.

That makes us hit an alignment assert in nv04_surface_2d.c. Fix it
using the point registers instead of manipulating the swizzled surface
offset to account for the destination coordinates (which do not seem
to have a 1024 limit).

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
14 years agomesa: fix-up blend enable/disable code in _mesa_PopAttrib()
Brian Paul [Wed, 30 Dec 2009 06:04:27 +0000 (23:04 -0700)]
mesa: fix-up blend enable/disable code in _mesa_PopAttrib()

14 years agomesa: finish-up indexed color mask code in _mesa_PopAttrib()
Brian Paul [Wed, 30 Dec 2009 05:58:44 +0000 (22:58 -0700)]
mesa: finish-up indexed color mask code in _mesa_PopAttrib()

14 years agomesa: plug in GL_EXT_draw_buffers2 functions
Brian Paul [Wed, 30 Dec 2009 05:56:32 +0000 (22:56 -0700)]
mesa: plug in GL_EXT_draw_buffers2 functions

14 years agomesa: regenerate API files related to GL_EXT_draw_buffers2
Brian Paul [Wed, 30 Dec 2009 05:55:57 +0000 (22:55 -0700)]
mesa: regenerate API files related to GL_EXT_draw_buffers2

14 years agoglapi: extension info for GL_EXT_draw_buffers2
Brian Paul [Wed, 30 Dec 2009 05:54:30 +0000 (22:54 -0700)]
glapi: extension info for GL_EXT_draw_buffers2

14 years agomesa: added infrastructure for GL_EXT_draw_buffers2
Brian Paul [Tue, 29 Dec 2009 23:30:54 +0000 (16:30 -0700)]
mesa: added infrastructure for GL_EXT_draw_buffers2

14 years agomesa: add dlist support for indexed colormask and indexed enables/disables
Brian Paul [Tue, 29 Dec 2009 23:30:04 +0000 (16:30 -0700)]
mesa: add dlist support for indexed colormask and indexed enables/disables

Not plugged into dispatch table yet...

14 years agomesa: implement per-buffer color masking
Brian Paul [Tue, 29 Dec 2009 23:17:14 +0000 (16:17 -0700)]
mesa: implement per-buffer color masking

This is part of the GL_EXT_draw_buffers2 extension and part of GL 3.0.

The ctx->Color.ColorMask field is now a 2-D array.  Until drivers are
modified to support per-buffer color masking, they can just look at
the 0th color mask.

The new _mesa_ColorMaskIndexed() function will be called by
glColorMaskIndexedEXT() or glColorMaski().

14 years agomesa: implement indexed glGet functions
Brian Paul [Tue, 29 Dec 2009 22:09:16 +0000 (15:09 -0700)]
mesa: implement indexed glGet functions

The functions are _mesa_GetBooleanIndexedv(), _mesa_GetIntegerIndexedv(), and
_mesa_GetInteger64Indexedv().  These will be called from API functions such as
glGetBooleanIndexedvEXT() and glGetBooleani_v().

Only the GL_BLEND query is supported at this time.

14 years agomesa: per-buffer blend enabled flags
Brian Paul [Tue, 29 Dec 2009 22:04:03 +0000 (15:04 -0700)]
mesa: per-buffer blend enabled flags

ctx->Color.BlendEnabled is now a GLbitfield instead of a GLboolean to
indicate blend on/off status for each color/draw buffer.

This is infrastructure for GL_EXT_draw_buffers2 and OpenGL 3.x

New functions include _mesa_EnableIndexed(), _mesa_DisableIndexed(), and
_mesa_IsEnabledIndexed().  The enable function corresponds to
glEnableIndexedEXT() for GL_EXT_draw_buffers2 or glEnablei() for GL3.

Note that there's quite a few tests for ctx->Color.BlendEnabled != 0 in
drivers, etc.  Those tests can remain as-is since the mask will be 0 or ~0
unless GL_EXT_draw_buffers2 is enabled.

14 years agoglsl: added default case in _fetch_token() to silence warnings
Brian Paul [Tue, 29 Dec 2009 15:47:40 +0000 (08:47 -0700)]
glsl: added default case in _fetch_token() to silence warnings

14 years agointel: Fix false positives in checking for non-packed depth/stencil RB.
Eric Anholt [Tue, 29 Dec 2009 03:09:01 +0000 (19:09 -0800)]
intel: Fix false positives in checking for non-packed depth/stencil RB.

The wine d3d9 visual.c testcase was tripping over this and failing.
Presumably it's binding a packed depth/stencil texture to both
stencil and depth attachment points, and we make a new renderbuffer
wrapper for each in that case.

14 years agointel: Allow binding a stencil but not a depth buffer.
Eric Anholt [Tue, 29 Dec 2009 02:15:06 +0000 (18:15 -0800)]
intel: Allow binding a stencil but not a depth buffer.

Wine's d3d9 visual.c testcase tries this a lot, so I've added some
piglit tests (fbo-nodepth-test, fbo-nostencil-test, fbo-stencil-only)
and enabled it.

14 years agointel: Improve INTEL_DEBUG=fbo output.
Eric Anholt [Mon, 28 Dec 2009 22:38:43 +0000 (14:38 -0800)]
intel: Improve INTEL_DEBUG=fbo output.

14 years agointel: Remove dead fthrottle_mode option. We only do IRQ waits.
Eric Anholt [Sun, 27 Dec 2009 02:43:20 +0000 (18:43 -0800)]
intel: Remove dead fthrottle_mode option.  We only do IRQ waits.

Noticed by clang.

14 years agomesa: remove gratuitous stores I added in remove_instructions.
Eric Anholt [Tue, 22 Dec 2009 22:43:11 +0000 (14:43 -0800)]
mesa: remove gratuitous stores I added in remove_instructions.

14 years agonouveau: Unreference state/buffer objects on context/screen destruction.
Younes Manton [Mon, 28 Dec 2009 22:33:34 +0000 (17:33 -0500)]
nouveau: Unreference state/buffer objects on context/screen destruction.

- unreference state objects so that buffer objects are unreferenced and
eventually destroyed
- free channel at screen's destruction

Based on Krzysztof Smiechowicz's patch.

14 years agonouveau: Fix swizzling for copies to rectangular textures
Luca Barbieri [Sat, 26 Dec 2009 06:35:17 +0000 (07:35 +0100)]
nouveau: Fix swizzling for copies to rectangular textures

nVidia hardware seems to swizzle rectangular texture (with width !=
height) coordinates by swizzling the lower bits and then adding the
higher bits from the larger dimension.
However, nv04_swizzle_bits ignores width and height and just
interleaves everything.
This causes problems with rectangular POT textures with height or
width 2048 or 4096 (but not 2048x1024 where it works by chance) since
the driver swizzles them in 1024x1024 chunks and gets the start
position for the non-first chunks wrong.
The following patch seems to fix those problems.

14 years agonouveau: Fix nv20-40 swizzled miptree RTs
Luca Barbieri [Sun, 27 Dec 2009 03:04:46 +0000 (04:04 +0100)]
nouveau: Fix nv20-40 swizzled miptree RTs

I just coded a patch that does this and seems to work fine. It must be
fixed since it breaks OpenGL (or the state tracker can be changed, but
it seems better to do it in the driver).

The patch also fixes NV20 and NV30 in the same way. They compile but
are untested.

I would guess that using the 3D engine is faster for the larger
levels, but the 2D engine is faster for the smaller ones (and lacks
this issue).

14 years agoNV30/NV40 CMP and SCS src == dst handling
Luca Barbieri [Sat, 26 Dec 2009 07:12:15 +0000 (08:12 +0100)]
NV30/NV40 CMP and SCS src == dst handling

CMP and SCS can produce incorrect results if the source and
destination are the same.
This patch should fix the issues.
CMP is fixed by predicating both moves.
SCS by changing the order if the source component is X.

14 years agollvmpipe: Unmapping vertex/index buffers does NOT flush draw module anymore.
José Fonseca [Mon, 28 Dec 2009 22:52:41 +0000 (22:52 +0000)]
llvmpipe: Unmapping vertex/index buffers does NOT flush draw module anymore.

Not since 6094e79f4e3350d123c7532b1c73faa60834a62d.

Drivers now need to flush draw module explicitely (which explains why
all those previous commits adding draw_flushes calls were necessary).

This is a good thing, but it's tricky to get this right in face of user buffers
(it's not even clear who has the responsibility to flush when a user buffer
is seen -- statetracker or pipe driver), so just force flush (temporarily)
since it's not a bottleneck now.

14 years agopython/retrace: Dump only the specified image rectangles.
José Fonseca [Mon, 28 Dec 2009 16:39:30 +0000 (16:39 +0000)]
python/retrace: Dump only the specified image rectangles.

14 years agoxlib: Integrate the trace driver with all pipe drivers.
José Fonseca [Mon, 28 Dec 2009 16:25:48 +0000 (16:25 +0000)]
xlib: Integrate the trace driver with all pipe drivers.

And not just softpipe.

It is particularly convenient to use llvmpipe instead, since it is much
faster. It also allows to use rbug with all xlib drivers.

14 years agoscons: Fix xlib build.
José Fonseca [Mon, 28 Dec 2009 15:22:17 +0000 (15:22 +0000)]
scons: Fix xlib build.

After glsl rework merge.

14 years agonv04: Fix build after the latest nouveau_class.h changes.
Francisco Jerez [Sat, 26 Dec 2009 16:26:49 +0000 (17:26 +0100)]
nv04: Fix build after the latest nouveau_class.h changes.

14 years agonv50: Dehexify and bring up to date with new method defines.
Marcin Kościelnicki [Mon, 28 Dec 2009 16:23:40 +0000 (16:23 +0000)]
nv50: Dehexify and bring up to date with new method defines.

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
14 years agoMerge branch 'mesa_7_7_branch'
Brian Paul [Sun, 27 Dec 2009 17:24:21 +0000 (10:24 -0700)]
Merge branch 'mesa_7_7_branch'

14 years agocell: add glsl to SRC_DIRS
Brian Paul [Sun, 27 Dec 2009 17:24:12 +0000 (10:24 -0700)]
cell: add glsl to SRC_DIRS

14 years agost/mesa: add missing case for PIPE_FORMAT_B8G8R8A8_UNORM
Brian Paul [Sun, 27 Dec 2009 17:09:24 +0000 (10:09 -0700)]
st/mesa: add missing case for PIPE_FORMAT_B8G8R8A8_UNORM

14 years agor300g: fix use of uninitialised variables.
Dave Airlie [Sun, 27 Dec 2009 06:13:41 +0000 (16:13 +1000)]
r300g: fix use of uninitialised variables.

These buffers were getting dereferenced later.

14 years agor300g: rename modesetting_drv.so to radeong_drv.so
Dave Airlie [Sun, 27 Dec 2009 05:23:13 +0000 (15:23 +1000)]
r300g: rename modesetting_drv.so to radeong_drv.so

14 years agosoftpipe: Flush draw module when fragment pipeline state changes.
José Fonseca [Sat, 26 Dec 2009 21:05:31 +0000 (21:05 +0000)]
softpipe: Flush draw module when fragment pipeline state changes.

14 years agollvmpipe: Treat state changes systematically.
José Fonseca [Sat, 26 Dec 2009 15:21:16 +0000 (15:21 +0000)]
llvmpipe: Treat state changes systematically.

That is:
- check for no op
- update/flush draw module
- update bound state and mark it as dirty

In particular flushing the draw module is important since it may contain
unflushed primitives which would otherwise be draw with wrong state.

14 years agoi965: Extra asserts on flow control instructions to clarify for clang.
Eric Anholt [Wed, 23 Dec 2009 01:30:13 +0000 (17:30 -0800)]
i965: Extra asserts on flow control instructions to clarify for clang.

14 years agoi965: Clean up double initialization of dst_flags from a rebase resolve.
Eric Anholt [Wed, 23 Dec 2009 01:18:03 +0000 (17:18 -0800)]
i965: Clean up double initialization of dst_flags from a rebase resolve.

Caught by clang.

14 years agoi965: Fix setup of immediate types for gen4 disasm.
Eric Anholt [Wed, 23 Dec 2009 01:05:10 +0000 (17:05 -0800)]
i965: Fix setup of immediate types for gen4 disasm.

Caught by clang.

14 years agollvmpipe: Use comments and more code from softpipe's is_texture_referenced implementa...
José Fonseca [Sat, 26 Dec 2009 11:02:02 +0000 (11:02 +0000)]
llvmpipe: Use comments and more code from softpipe's is_texture_referenced implementation.

14 years agosoftpipe: Flush draw module before switching framebuffer.
José Fonseca [Sat, 26 Dec 2009 11:01:05 +0000 (11:01 +0000)]
softpipe: Flush draw module before switching framebuffer.

Otherwise geometry might end up in the wrong rendertarget.

14 years agollvmpipe: Flush draw module before switching framebuffer.
José Fonseca [Sat, 26 Dec 2009 11:00:42 +0000 (11:00 +0000)]
llvmpipe: Flush draw module before switching framebuffer.

Otherwise geometry will end up in the wrong rendertarget.

14 years agotgsi: Don't dump parenthesis for negation.
José Fonseca [Sat, 26 Dec 2009 10:59:46 +0000 (10:59 +0000)]
tgsi: Don't dump parenthesis for negation.

It doesn't seem necessary, and more importantly, tgsi_parse doesn't know
how to read them.

14 years agopython: Update python state tracker and samples for recent interface changes.
José Fonseca [Sat, 26 Dec 2009 01:14:59 +0000 (01:14 +0000)]
python: Update python state tracker and samples for recent interface changes.

14 years agotrace: Fix transfer size computation.
José Fonseca [Fri, 25 Dec 2009 17:40:08 +0000 (17:40 +0000)]
trace: Fix transfer size computation.

14 years agoscons: Put the configuration info in the build directory too.
José Fonseca [Fri, 25 Dec 2009 17:39:47 +0000 (17:39 +0000)]
scons: Put the configuration info in the build directory too.

It fixes cached configuration results from one platform being erroneously
used in other platforms.

14 years agosvga: Allow to dump an individual command.
José Fonseca [Thu, 24 Dec 2009 15:53:45 +0000 (15:53 +0000)]
svga: Allow to dump an individual command.

14 years agor300g: fixup for GS additions
Dave Airlie [Fri, 25 Dec 2009 21:28:21 +0000 (07:28 +1000)]
r300g: fixup for GS additions

draw_set_mapped_constant_buffer changed API

14 years agogallium: remove TGSI_SEMANTIC_VERTICES
Zack Rusin [Thu, 24 Dec 2009 18:08:36 +0000 (13:08 -0500)]
gallium: remove TGSI_SEMANTIC_VERTICES

it's a leftover from an early version of geometry shading support.
geometry shaders now encode the primitive size in the PROPERTY token
and don't need special input with their size.

14 years agodraw: disable some debugging output coming from the geometry shaders
Zack Rusin [Thu, 24 Dec 2009 14:34:07 +0000 (09:34 -0500)]
draw: disable some debugging output coming from the geometry shaders

14 years agogallium: geometry shader can be always enabled and we don't need a cap for that
Zack Rusin [Thu, 24 Dec 2009 14:30:00 +0000 (09:30 -0500)]
gallium: geometry shader can be always enabled and we don't need a cap for that

using the draw module allows us to enable geometry shading even on hardware
that doesn't support it.

14 years agoutil: put vertices_per_primitive function in its proper location
Zack Rusin [Thu, 24 Dec 2009 14:20:45 +0000 (09:20 -0500)]
util: put vertices_per_primitive function in its proper location

14 years agodraw/tgsi: fix geometry shader input/output swizzling
Zack Rusin [Thu, 24 Dec 2009 13:15:29 +0000 (08:15 -0500)]
draw/tgsi: fix geometry shader input/output swizzling

14 years agotgsi: dump the indices correctly when dealing with 2d arrays
Zack Rusin [Wed, 23 Dec 2009 20:41:47 +0000 (15:41 -0500)]
tgsi: dump the indices correctly when dealing with 2d arrays

14 years agotgsi: fix property parsing/building
Zack Rusin [Wed, 23 Dec 2009 19:39:16 +0000 (14:39 -0500)]
tgsi: fix property parsing/building

14 years agopython: fix python state tracker after some latest changes
Zack Rusin [Wed, 23 Dec 2009 18:43:30 +0000 (13:43 -0500)]
python: fix python state tracker after some latest changes

14 years agosoftpipe: make it possible to dump geometry shader from the softpipe
Zack Rusin [Wed, 23 Dec 2009 18:30:12 +0000 (13:30 -0500)]
softpipe: make it possible to dump geometry shader from the softpipe

14 years agotgsi: add missing support for two dimensional arrays in various places
Zack Rusin [Wed, 23 Dec 2009 17:40:39 +0000 (12:40 -0500)]
tgsi: add missing support for two dimensional arrays in various places

in particular asm text parsing and sanity checking were missing code
to handle multi-dimensional arrays/geometry shaders

14 years agopython/gs: fix the example
Zack Rusin [Wed, 23 Dec 2009 17:40:19 +0000 (12:40 -0500)]
python/gs: fix the example

14 years agogallium: add an inline that returns number of vertices per primitive
Zack Rusin [Wed, 23 Dec 2009 17:39:21 +0000 (12:39 -0500)]
gallium: add an inline that returns number of vertices per primitive

14 years agosoftpipe/gs: don't crash with null shader
Zack Rusin [Wed, 23 Dec 2009 17:34:34 +0000 (12:34 -0500)]
softpipe/gs: don't crash with null shader

14 years agogs: fix drivers so they work with geometry shaders
Zack Rusin [Sat, 19 Dec 2009 18:54:53 +0000 (13:54 -0500)]
gs: fix drivers so they work with geometry shaders

14 years agotgsi: make the tgsi assembly parser report line/column on error
Zack Rusin [Tue, 15 Dec 2009 14:26:51 +0000 (09:26 -0500)]
tgsi: make the tgsi assembly parser report line/column on error

14 years agogallium: add geometry shader support to gallium
Zack Rusin [Mon, 14 Dec 2009 22:11:46 +0000 (17:11 -0500)]
gallium: add geometry shader support to gallium

14 years agomklib: put usage info into usage() function
Brian Paul [Wed, 23 Dec 2009 23:55:37 +0000 (16:55 -0700)]
mklib: put usage info into usage() function

14 years agomklib: expand .a into .o files on FreeBSD, put common code into subroutines
Brian Paul [Wed, 23 Dec 2009 23:50:06 +0000 (16:50 -0700)]
mklib: expand .a into .o files on FreeBSD, put common code into subroutines

14 years agoi965g: get trivial/tri working again after edgeflag changes
Keith Whitwell [Thu, 24 Dec 2009 12:52:43 +0000 (12:52 +0000)]
i965g: get trivial/tri working again after edgeflag changes

14 years agoi965g: strict aliasing changes
Keith Whitwell [Thu, 24 Dec 2009 12:45:42 +0000 (12:45 +0000)]
i965g: strict aliasing changes

14 years agogallium/util: quieten compiler
Keith Whitwell [Thu, 24 Dec 2009 12:44:12 +0000 (12:44 +0000)]
gallium/util: quieten compiler

14 years agoi965g: calculate depth min/max
Keith Whitwell [Tue, 22 Dec 2009 10:14:59 +0000 (10:14 +0000)]
i965g: calculate depth min/max

Previously hard-wired to 0..1

14 years agonv50: support TGSI_OPCODE_CONT
Christoph Bumiller [Thu, 24 Dec 2009 12:35:55 +0000 (13:35 +0100)]
nv50: support TGSI_OPCODE_CONT

14 years agonv50: make edgeflags work
Christoph Bumiller [Thu, 24 Dec 2009 11:39:42 +0000 (12:39 +0100)]
nv50: make edgeflags work

It doesn't seem to be possible to set the egdeflag in the
vertex shader, so we need to fallback to pushing vertices
through the FIFO and use method 0x15e4 if they are used.

This only works if VP does MOV OUT[X] IN[Y] where X is the
edgeflag output, and Y is saved so we can tell the correct
input later.

The VP still writes the useless values to wasted outputs
as punishment.

14 years agoRegenerate gl_mangle.h.
Tom Fogal [Wed, 23 Dec 2009 18:24:52 +0000 (11:24 -0700)]
Regenerate gl_mangle.h.

Signed-off-by: Brian Paul <brianp@vmware.com>
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 agogallium: only create pipe buffer when size is nonzero
Maarten Maathuis [Sun, 20 Dec 2009 13:03:03 +0000 (05:03 -0800)]
gallium: only create pipe buffer when size is nonzero

- This fixes a crash upon starting spring (a rts engine/game).

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
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