mesa.git
14 years agoMerge remote branch 'origin/master' into lp-binning
José Fonseca [Fri, 8 Jan 2010 15:42:57 +0000 (15:42 +0000)]
Merge remote branch 'origin/master' into lp-binning

Conflicts:
src/gallium/auxiliary/util/u_surface.c
src/gallium/drivers/llvmpipe/Makefile
src/gallium/drivers/llvmpipe/SConscript
src/gallium/drivers/llvmpipe/lp_bld_arit.c
src/gallium/drivers/llvmpipe/lp_bld_flow.c
src/gallium/drivers/llvmpipe/lp_bld_interp.c
src/gallium/drivers/llvmpipe/lp_clear.c
src/gallium/drivers/llvmpipe/lp_context.c
src/gallium/drivers/llvmpipe/lp_context.h
src/gallium/drivers/llvmpipe/lp_draw_arrays.c
src/gallium/drivers/llvmpipe/lp_jit.c
src/gallium/drivers/llvmpipe/lp_jit.h
src/gallium/drivers/llvmpipe/lp_prim_vbuf.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_setup_point.c
src/gallium/drivers/llvmpipe/lp_state.h
src/gallium/drivers/llvmpipe/lp_state_blend.c
src/gallium/drivers/llvmpipe/lp_state_derived.c
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/llvmpipe/lp_state_sampler.c
src/gallium/drivers/llvmpipe/lp_state_surface.c
src/gallium/drivers/llvmpipe/lp_tex_cache.c
src/gallium/drivers/llvmpipe/lp_tex_cache.h
src/gallium/drivers/llvmpipe/lp_tex_sample.h
src/gallium/drivers/llvmpipe/lp_tile_cache.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 agomklib: Extract archives into temporary directories
Dan Nicholson [Fri, 8 Jan 2010 01:11:37 +0000 (17:11 -0800)]
mklib: Extract archives into temporary directories

When static libraries are created from other archives, objects are
extracted and then deleted when the static library is done. This can
race when there are multiple static libraries being created from the
same archives as with libmesa.a and libmesagallium.a.

Should fix this issue with parallel jobs:

make[5]: *** No rule to make target
> `../../../../../../src/mesa/libmesagallium.a', needed by
> `radeon_dri.so'. Stop

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Reported-and-Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
14 years agotgsi: Cleanup dot-product opcodes in interpreter.
Michal Krol [Fri, 8 Jan 2010 11:02:41 +0000 (12:02 +0100)]
tgsi: Cleanup dot-product opcodes in interpreter.

14 years agonv20: Fix build for the latest nouveau_class.h changes.
Francisco Jerez [Fri, 8 Jan 2010 03:42:28 +0000 (04:42 +0100)]
nv20: Fix build for the latest nouveau_class.h changes.

14 years agoscons: Don't build xlib when dri is enabled.
José Fonseca [Fri, 8 Jan 2010 01:25:27 +0000 (01:25 +0000)]
scons: Don't build xlib when dri is enabled.

Hopefully adddresses fdo 25828.

14 years agolvmpipe: Initialize all coordinates.
José Fonseca [Fri, 8 Jan 2010 01:15:17 +0000 (01:15 +0000)]
lvmpipe: Initialize all coordinates.

Fixes assertion failure with fp-incomplete-tex (fdo 24298).

14 years agoscons: Output a meaningful message when xlib libGL.so can't be built.
José Fonseca [Fri, 8 Jan 2010 00:50:09 +0000 (00:50 +0000)]
scons: Output a meaningful message when xlib libGL.so can't be built.

14 years agoscons: Use static glew library on Unices to avoid binary compatability issues
José Fonseca [Fri, 8 Jan 2010 00:33:58 +0000 (00:33 +0000)]
scons: Use static glew library on Unices to avoid binary compatability issues

Fixes bug 25926.

14 years agost/xorg: remove unused xorg_exa_get_pixmap_handle function
Keith Whitwell [Thu, 26 Nov 2009 23:56:48 +0000 (23:56 +0000)]
st/xorg: remove unused xorg_exa_get_pixmap_handle function

14 years agonv50: preallocate TEMPs written first time in a subroutine
Christoph Bumiller [Thu, 7 Jan 2010 20:17:13 +0000 (21:17 +0100)]
nv50: preallocate TEMPs written first time in a subroutine

Otherwise we risk overwriting them with temporary GPRs if
they're not used immediately after the CALL.

14 years agonv50: handle TGSI_OPCODE_SAD,UADD
Christoph Bumiller [Thu, 7 Jan 2010 17:23:04 +0000 (18:23 +0100)]
nv50: handle TGSI_OPCODE_SAD,UADD

14 years agonv50: handle TGSI_OPCODE_IMAX,IMIN,UMAX,UMIN
Christoph Bumiller [Thu, 7 Jan 2010 16:59:58 +0000 (17:59 +0100)]
nv50: handle TGSI_OPCODE_IMAX,IMIN,UMAX,UMIN

14 years agonv50: handle integer SET operations
Christoph Bumiller [Thu, 7 Jan 2010 18:48:50 +0000 (19:48 +0100)]
nv50: handle integer SET operations

14 years agonv50: handle TGSI_OPCODE_SHL,ISHR,USHR
Christoph Bumiller [Thu, 7 Jan 2010 16:48:41 +0000 (17:48 +0100)]
nv50: handle TGSI_OPCODE_SHL,ISHR,USHR

14 years agonv50: handle TGSI_OPCODE_F2I,F2U,I2F,U2F plus src mods
Christoph Bumiller [Thu, 7 Jan 2010 18:45:44 +0000 (19:45 +0100)]
nv50: handle TGSI_OPCODE_F2I,F2U,I2F,U2F plus src mods

14 years agointel: Remove leftover symlinks from DRI1 removal.
Eric Anholt [Tue, 5 Jan 2010 20:01:13 +0000 (12:01 -0800)]
intel: Remove leftover symlinks from DRI1 removal.

14 years agotgsi: add assertion to verify legal register file
Brian Paul [Thu, 7 Jan 2010 18:18:04 +0000 (11:18 -0700)]
tgsi: add assertion to verify legal register file

This assertion fails with piglit glsl-vs-mov-after-deref test
because we're double freeing the memory.  It seems there's some
confusion between what's placed in the hash table and what isn't.

14 years agotgsi: fix incorrectly placed braces, add more braces to be clear
Brian Paul [Thu, 7 Jan 2010 17:57:33 +0000 (10:57 -0700)]
tgsi: fix incorrectly placed braces, add more braces to be clear

14 years agotgsi: move register checking code before check_register_usage()
Brian Paul [Thu, 7 Jan 2010 17:54:56 +0000 (10:54 -0700)]
tgsi: move register checking code before check_register_usage()

check_register_usage() frees the scan_register *reg data so we were
reading from freed memory.  This fixes a valgrind error found with
piglit's glsl-vs-mov-after-deref test.

14 years agoswrast: fix color masking for glAccum(GL_RETURN)
Brian Paul [Thu, 7 Jan 2010 16:43:08 +0000 (09:43 -0700)]
swrast: fix color masking for glAccum(GL_RETURN)

Should fix fdo bug 25837.

14 years agoi810: use ColorMask[0]
Brian Paul [Thu, 7 Jan 2010 16:40:08 +0000 (09:40 -0700)]
i810: use ColorMask[0]

14 years agoprogs/fp: increase buffer size to read larger shaders
Brian Paul [Thu, 7 Jan 2010 16:10:53 +0000 (09:10 -0700)]
progs/fp: increase buffer size to read larger shaders

14 years agogallium/util: remove useless assertions
Brian Paul [Thu, 7 Jan 2010 15:49:33 +0000 (08:49 -0700)]
gallium/util: remove useless assertions

14 years agogallium/util: update comment: s/src_pitch/src_stride
Brian Paul [Thu, 7 Jan 2010 15:49:05 +0000 (08:49 -0700)]
gallium/util: update comment: s/src_pitch/src_stride

14 years agogallium/util: make src_y unsigned like the other x/y params
Brian Paul [Thu, 7 Jan 2010 15:48:25 +0000 (08:48 -0700)]
gallium/util: make src_y unsigned like the other x/y params

14 years agollvmpipe: Remove TGSI sampler pointers from JIT context too.
José Fonseca [Thu, 7 Jan 2010 16:16:45 +0000 (16:16 +0000)]
llvmpipe: Remove TGSI sampler pointers from JIT context too.

14 years agollvmpipe: Remove more loose ends of TGSI exec sampling.
José Fonseca [Thu, 7 Jan 2010 15:59:41 +0000 (15:59 +0000)]
llvmpipe: Remove more loose ends of TGSI exec sampling.

14 years agoconfigure: Fix matching for dri driver to actually work
Kristian Høgsberg [Thu, 7 Jan 2010 15:29:29 +0000 (10:29 -0500)]
configure: Fix matching for dri driver to actually work

The shell case statement obviously only evaluates the first matching
block.  Thanks to Julien Cristau for spotting the bug.

14 years agomakefile: added src/glsl/Makefile.template to tarball list
Brian Paul [Thu, 7 Jan 2010 15:42:43 +0000 (08:42 -0700)]
makefile: added src/glsl/Makefile.template to tarball list

14 years agoi965g: updates for draw retval
Keith Whitwell [Thu, 7 Jan 2010 11:19:38 +0000 (11:19 +0000)]
i965g: updates for draw retval

14 years agollvmpipe: Axe texture sampling code inherited from softpipe.
José Fonseca [Thu, 7 Jan 2010 15:34:52 +0000 (15:34 +0000)]
llvmpipe: Axe texture sampling code inherited from softpipe.

Was used only as a reference, since texture sampling is now code generated.
Already axed in the lp-binning branch too.

This fixes the llvmpipe build after recent sampling changes.

14 years agogallium: Fix texture sampling with explicit LOD in softpipe.
Michal Krol [Thu, 7 Jan 2010 12:48:41 +0000 (13:48 +0100)]
gallium: Fix texture sampling with explicit LOD in softpipe.

14 years agogallium: Pass per-element (not per-quad) LOD bias values down to texture sampler.
Michal Krol [Thu, 7 Jan 2010 11:48:10 +0000 (12:48 +0100)]
gallium: Pass per-element (not per-quad) LOD bias values down to texture sampler.

14 years agotgsi: Cleanup exec_tex().
Michal Krol [Thu, 7 Jan 2010 10:10:24 +0000 (11:10 +0100)]
tgsi: Cleanup exec_tex().

14 years agosvga: Fix fs key size computation and key comparison.
Michal Krol [Wed, 6 Jan 2010 17:36:45 +0000 (18:36 +0100)]
svga: Fix fs key size computation and key comparison.

This also allows us to have texture_target
back as a bitfield and save us a few bytes.

14 years agollvmpipe: checkpoint commit of new if/else/endif flow control
Brian Paul [Thu, 7 Jan 2010 00:53:12 +0000 (17:53 -0700)]
llvmpipe: checkpoint commit of new if/else/endif flow control

Totally untested at this point.  More work to do.

14 years agollvmpipe: more comments in flow builder code
Brian Paul [Wed, 6 Jan 2010 21:11:54 +0000 (14:11 -0700)]
llvmpipe: more comments in flow builder code

14 years agor300g: add back-face color VS outputs
Marek Olšák [Sat, 19 Dec 2009 22:55:34 +0000 (23:55 +0100)]
r300g: add back-face color VS outputs

Required for two-sided lighting. BTW we are approaching softpipe-level
quality. ;)

14 years agor300g: fix SWTCL stream locations of texture coordinates
Marek Olšák [Fri, 25 Dec 2009 16:09:21 +0000 (17:09 +0100)]
r300g: fix SWTCL stream locations of texture coordinates

It might have caused hardlocks when TCL was bypassed, not sure.

14 years agor300g: if no DS buffer is set, disable reading from and writing to it
Marek Olšák [Thu, 24 Dec 2009 13:23:57 +0000 (14:23 +0100)]
r300g: if no DS buffer is set, disable reading from and writing to it

It fixes another "Bad CS" issue.

14 years agor300g: disable the rasterization of WPOS if it's unused by the FS
Marek Olšák [Thu, 24 Dec 2009 15:05:44 +0000 (16:05 +0100)]
r300g: disable the rasterization of WPOS if it's unused by the FS

14 years agor300g: add WPOS
Marek Olšák [Thu, 24 Dec 2009 02:10:33 +0000 (03:10 +0100)]
r300g: add WPOS

14 years agor300/compiler: add full viewport transformation support in WPOS codegen
Marek Olšák [Thu, 24 Dec 2009 12:31:27 +0000 (13:31 +0100)]
r300/compiler: add full viewport transformation support in WPOS codegen

14 years agor300g: consolidate params
Marek Olšák [Mon, 21 Dec 2009 01:10:34 +0000 (02:10 +0100)]
r300g: consolidate params

14 years agor300g: fix outputting depth in the FS
Marek Olšák [Thu, 24 Dec 2009 16:40:53 +0000 (17:40 +0100)]
r300g: fix outputting depth in the FS

14 years agor300g: optimize blending by conditionally disabling reads from the colorbuffer
Marek Olšák [Mon, 21 Dec 2009 00:38:45 +0000 (01:38 +0100)]
r300g: optimize blending by conditionally disabling reads from the colorbuffer

14 years agor300g: optimize blending by discarding pixels that don't change the colorbuffer
Marek Olšák [Sun, 20 Dec 2009 17:19:03 +0000 (18:19 +0100)]
r300g: optimize blending by discarding pixels that don't change the colorbuffer

Let's get some performance out of the blender.

14 years agor300g: fix blending when SRC_ALPHA_SATURATE is used
Marek Olšák [Sun, 20 Dec 2009 03:28:30 +0000 (04:28 +0100)]
r300g: fix blending when SRC_ALPHA_SATURATE is used

14 years agoutil/blitter: allow NULL CSOs to be saved
Marek Olšák [Wed, 23 Dec 2009 08:59:30 +0000 (09:59 +0100)]
util/blitter: allow NULL CSOs to be saved

14 years agosoftpipe: fix draw return value
Keith Whitwell [Wed, 6 Jan 2010 18:05:08 +0000 (18:05 +0000)]
softpipe: fix draw return value

14 years agor300g: add missing is_anistropic param
Brian Paul [Wed, 6 Jan 2010 17:36:51 +0000 (10:36 -0700)]
r300g: add missing is_anistropic param

14 years agollvmpipe: flow-control comments
Brian Paul [Mon, 4 Jan 2010 22:22:58 +0000 (15:22 -0700)]
llvmpipe: flow-control comments

14 years agollvmpipe: fix double free
Keith Whitwell [Wed, 6 Jan 2010 17:13:37 +0000 (17:13 +0000)]
llvmpipe: fix double free

14 years agollvmpipe: rename some functions
Keith Whitwell [Wed, 6 Jan 2010 17:13:28 +0000 (17:13 +0000)]
llvmpipe: rename some functions

14 years agollvmpipe: remove dead code
Keith Whitwell [Wed, 6 Jan 2010 17:00:26 +0000 (17:00 +0000)]
llvmpipe: remove dead code

14 years agollvmpipe: restrict header visibility
Keith Whitwell [Wed, 6 Jan 2010 16:56:28 +0000 (16:56 +0000)]
llvmpipe: restrict header visibility

14 years agosvga: make texture_target a ubyte, not a bitfield
Brian Paul [Wed, 6 Jan 2010 16:54:34 +0000 (09:54 -0700)]
svga: make texture_target a ubyte, not a bitfield

gcc won't let us take the address of a bitfield in the svga_fs_key_size()
function.

14 years agollvmpipe: merge setup and draw vbuf submodules
Keith Whitwell [Wed, 6 Jan 2010 16:44:43 +0000 (16:44 +0000)]
llvmpipe: merge setup and draw vbuf submodules

The setup tiling engine is now plugged directly into the draw module
as a rendering backend.

Removed a couple of layering violations such that the setup code no
longer reaches out into the surrounding llvmpipe state or context.

14 years agogallium/docs: finish up description of pipe_rasterizer_state fields
Brian Paul [Wed, 6 Jan 2010 16:42:53 +0000 (09:42 -0700)]
gallium/docs: finish up description of pipe_rasterizer_state fields

14 years agoconfigs: set INTEL_LIBS, INTEL_CFLAGS, etc
Brian Paul [Wed, 6 Jan 2010 15:13:56 +0000 (08:13 -0700)]
configs: set INTEL_LIBS, INTEL_CFLAGS, etc

14 years agoutil: Fix format descriptor table entries.
Michal Krol [Wed, 6 Jan 2010 15:07:49 +0000 (16:07 +0100)]
util: Fix format descriptor table entries.

14 years agopipe_sampler_state::compare_mode is not a boolean enable flag.
Michal Krol [Wed, 6 Jan 2010 13:12:10 +0000 (14:12 +0100)]
pipe_sampler_state::compare_mode is not a boolean enable flag.

It's a 1-bit enum.

14 years agoutil: Handle the remaining format cases in pipe_tile_raw_to_rgba().
Michal Krol [Wed, 6 Jan 2010 13:07:12 +0000 (14:07 +0100)]
util: Handle the remaining format cases in pipe_tile_raw_to_rgba().

14 years agoMake sure we use only signed/unsigned ints with bitfields.
Michal Krol [Wed, 6 Jan 2010 10:23:43 +0000 (11:23 +0100)]
Make sure we use only signed/unsigned ints with bitfields.

Seems to be the only way to stay fully portable.

14 years agoi965g: fix invalid assertion in emit_xpd(), again
Brian Paul [Wed, 6 Jan 2010 14:17:48 +0000 (07:17 -0700)]
i965g: fix invalid assertion in emit_xpd(), again

14 years agoMerge remote branch 'origin/mesa_7_7_branch'
José Fonseca [Wed, 6 Jan 2010 13:52:22 +0000 (13:52 +0000)]
Merge remote branch 'origin/mesa_7_7_branch'

Conflicts:
configs/default
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
src/mesa/main/version.h

14 years agoglew: Update to version 1.5.2.
José Fonseca [Sun, 3 Jan 2010 21:30:02 +0000 (21:30 +0000)]
glew: Update to version 1.5.2.

14 years agopipebuffer: Multi-threading fixes for fencing.
José Fonseca [Tue, 5 Jan 2010 20:41:29 +0000 (20:41 +0000)]
pipebuffer: Multi-threading fixes for fencing.

I had this patch on my hard drive for long time. It doesn't fully
address SVGA multi-threading issues, but causes no regressions, so decided
to commit while it still applies cleanly.

Attention: merging this into master will cause issues due to recent
changes in reference counting to fix strict aliasing rules violation.

14 years agogallium: remove PIPE_TEX_FILTER_ANISO
Luca Barbieri [Wed, 6 Jan 2010 10:35:47 +0000 (10:35 +0000)]
gallium: remove PIPE_TEX_FILTER_ANISO

This patch removes PIPE_TEX_FILTER_ANISO.

Anisotropic filtering is enabled if and only if max_anisotropy > 1.0.
Values between 0.0 and 1.0, inclusive, of max_anisotropy are to be
considered equivalent, and meaning to turn off anisotropic filtering.

This approach has the small drawback of eliminating the possibility of
enabling anisotropic filter on either minification or magnification
separately, which Radeon hardware seems to support, is currently
support by Gallium but not exposed to OpenGL.  If this is actually
useful it could be handled by splitting max_anisotropy in two values
and adding an appropriate OpenGL extension.

NOTE: some fiddling & reformatting by keithw to get this patch to
apply.  Hopefully nothing broken in the process.

14 years agodocs: added more GL3 items
Brian Paul [Wed, 6 Jan 2010 04:25:56 +0000 (21:25 -0700)]
docs: added more GL3 items

14 years agomesa: added GL_MAJOR_VERSION and GL_MINOR_VERSION queries
Brian Paul [Wed, 6 Jan 2010 04:24:48 +0000 (21:24 -0700)]
mesa: added GL_MAJOR_VERSION and GL_MINOR_VERSION queries

New in GL 3.0.

14 years agomesa: call _mesa_compute_version() to set context's version info
Brian Paul [Wed, 6 Jan 2010 04:23:59 +0000 (21:23 -0700)]
mesa: call _mesa_compute_version() to set context's version info

14 years agomesa: added version.c to build
Brian Paul [Wed, 6 Jan 2010 04:23:16 +0000 (21:23 -0700)]
mesa: added version.c to build

14 years agomesa: added _mesa_compute_version() in new version.c file
Brian Paul [Wed, 6 Jan 2010 04:23:01 +0000 (21:23 -0700)]
mesa: added _mesa_compute_version() in new version.c file

14 years agomesa: added version fields to GLcontext
Brian Paul [Wed, 6 Jan 2010 04:17:55 +0000 (21:17 -0700)]
mesa: added version fields to GLcontext

14 years agogallium/util: replace 8 with PIPE_MAX_COLOR_BUFS
Brian Paul [Wed, 6 Jan 2010 00:07:44 +0000 (17:07 -0700)]
gallium/util: replace 8 with PIPE_MAX_COLOR_BUFS

14 years agogallium/util: comments and whitespace fixes
Brian Paul [Tue, 5 Jan 2010 23:55:35 +0000 (16:55 -0700)]
gallium/util: comments and whitespace fixes

14 years agodocs: added link to wiki page about missing Mesa features
Brian Paul [Tue, 5 Jan 2010 23:03:11 +0000 (16:03 -0700)]
docs: added link to wiki page about missing Mesa features

14 years agoi965g: fix invalid assertion in emit_xpd()
Brian Paul [Tue, 5 Jan 2010 22:53:46 +0000 (15:53 -0700)]
i965g: fix invalid assertion in emit_xpd()

Invalid assertion found by Roel Kluin <roel.kluin@gmail.com>

14 years agoi965: fix invalid assertion in emit_xpd()
Brian Paul [Tue, 5 Jan 2010 22:53:01 +0000 (15:53 -0700)]
i965: fix invalid assertion in emit_xpd()

Invalid assertion found by Roel Kluin <roel.kluin@gmail.com>

14 years agotdfx: condition always evaluates to false in SetupDoubleTexEnvVoodoo3()
Roel Kluin [Tue, 5 Jan 2010 21:40:40 +0000 (13:40 -0800)]
tdfx: condition always evaluates to false in SetupDoubleTexEnvVoodoo3()

This can never be true.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
14 years agoi965: Fix build after blind merge of mesa 7.7 by Brian.
Eric Anholt [Tue, 5 Jan 2010 19:07:54 +0000 (11:07 -0800)]
i965: Fix build after blind merge of mesa 7.7 by Brian.

14 years agost/mesa: fix broken translation of negative register indexes
Brian Paul [Tue, 5 Jan 2010 18:40:24 +0000 (11:40 -0700)]
st/mesa: fix broken translation of negative register indexes

A src register's index can be negative if we're doing indirect
addressing into the constant buffer.  Ex: MOV OUT[1], CONST[ADDR[0].x-3]

This fixes the piglit vp-arl-neg-array.vpfp test.

Before this change we were going out of bounds of the t->constants[]
array and getting garbage that later triggered an assertion.

14 years agoARB prog parser: regenerated parser file
Brian Paul [Tue, 5 Jan 2010 17:56:57 +0000 (10:56 -0700)]
ARB prog parser: regenerated parser file

14 years agoARB prog parser: fix parameter binding type
Brian Paul [Tue, 5 Jan 2010 17:53:44 +0000 (10:53 -0700)]
ARB prog parser: fix parameter binding type

References to program local and enviroment parameters are put into the
unified program parameters list as PROGRAM_STATE_VAR entries which point
into the local or environment arrays.  So the param_binding_type field
should be PROGRAM_STATE_VAR.

This fixes the piglit vpfp-generic vp-arl-env-array.vpfp and
vp-arl-local-array.vpfp test failures.

14 years agoARB prog parser: regenerated parser files
Brian Paul [Tue, 5 Jan 2010 17:03:16 +0000 (10:03 -0700)]
ARB prog parser: regenerated parser files

14 years agoARB prog parser: add allowSwizzle param to initialize_symbol_from_const()
Brian Paul [Tue, 5 Jan 2010 17:01:20 +0000 (10:01 -0700)]
ARB prog parser: add allowSwizzle param to initialize_symbol_from_const()

We need to disable constant consolidation when building an array of
constants which might be indexed indirectly.

Fixes regression in piglit vpfp-generic vp-arl-constant-array.vpfp
test caused by earlier constant consolidation patch.

14 years agomesa: whitespace changes and comments
Brian Paul [Tue, 5 Jan 2010 16:59:39 +0000 (09:59 -0700)]
mesa: whitespace changes and comments

14 years agomesa: change constant search behaviour in _mesa_add_unnamed_constant()
Brian Paul [Tue, 5 Jan 2010 16:57:41 +0000 (09:57 -0700)]
mesa: change constant search behaviour in _mesa_add_unnamed_constant()

Only search for an existing, matching constant if swizzleOut is non-null.
We need to be able to disable constant consolidation when building an
array of constants which will be indexed indirectly.

14 years agonouveau: rewrite nouveau_stateobj to use BEGIN_RING properly
Maarten Maathuis [Tue, 29 Dec 2009 22:59:08 +0000 (23:59 +0100)]
nouveau: rewrite nouveau_stateobj to use BEGIN_RING properly

- The previous solution was hacky and didn't do subchannel autobinding.
- The beheaviour should match what libdrm_nouveau does closely.
- The solution remains statically sized, but when debugging is on it will check
for abuse.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
14 years agonouveau: kill nouveau_push.h and use libdrm versions of BEGIN_RINGs, etc
Marcin Slusarz [Mon, 28 Dec 2009 23:36:17 +0000 (00:36 +0100)]
nouveau: kill nouveau_push.h and use libdrm versions of BEGIN_RINGs, etc

14 years agonv50: remove vtxbuf stateobject after a referenced vtxbuf is mapped
Maarten Maathuis [Sun, 20 Dec 2009 11:19:19 +0000 (12:19 +0100)]
nv50: remove vtxbuf stateobject after a referenced vtxbuf is mapped

- This avoids problematic "reloc'ed while mapped" messages and
some associated corruption as well.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
14 years agosvga: Remove stale references to delete shader results.
José Fonseca [Tue, 5 Jan 2010 17:56:26 +0000 (17:56 +0000)]
svga: Remove stale references to delete shader results.

To ensure that a new result that happens to have the same address
of the old one will be detected as a change.

14 years agosvga: Rebind shaders when tokens change.
José Fonseca [Tue, 5 Jan 2010 17:32:19 +0000 (17:32 +0000)]
svga: Rebind shaders when tokens change.

Even shader ID doesn't change. Otherwise the token change is not
effective.

This reverts regression from commit
cdb445f3a9285e2d8f042a07021ade78b94e0156. Regression could be seen in
Quake3's loading screen -- the upper right corner of the screen would
be black.

14 years agoMerge branch 'gallium-docs'
Corbin Simpson [Tue, 5 Jan 2010 16:37:49 +0000 (08:37 -0800)]
Merge branch 'gallium-docs'

14 years agoegl: Fix breakage from -fvisibility=hidden.
Chia-I Wu [Tue, 5 Jan 2010 13:39:15 +0000 (21:39 +0800)]
egl: Fix breakage from -fvisibility=hidden.

Mark EGL API and driver functions as PUBLIC.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
14 years agodocs: Don't check in generated docs.
Corbin Simpson [Tue, 5 Jan 2010 16:22:52 +0000 (08:22 -0800)]
docs: Don't check in generated docs.

Per ML discussion.

14 years agodocs: Stub out list of modules in core distribution of G3D.
Corbin Simpson [Thu, 24 Dec 2009 09:53:48 +0000 (01:53 -0800)]
docs: Stub out list of modules in core distribution of G3D.

14 years agost/mesa: added PROGRAM_LOCAL_PARAM case in src_register()
Brian Paul [Tue, 5 Jan 2010 16:14:48 +0000 (09:14 -0700)]
st/mesa: added PROGRAM_LOCAL_PARAM case in src_register()

Fixes piglit vpfp-generic arl.vpfp failure when using gallium.