mesa.git
15 years agoMerge commit 'origin/gallium-0.1' into gallium-0.2
Keith Whitwell [Sun, 21 Sep 2008 19:22:21 +0000 (12:22 -0700)]
Merge commit 'origin/gallium-0.1' into gallium-0.2

15 years agoswrast: remove merge droppings
Keith Whitwell [Sun, 21 Sep 2008 19:09:12 +0000 (12:09 -0700)]
swrast: remove merge droppings

15 years agoswrast: remove dead file not present in master
Keith Whitwell [Sun, 21 Sep 2008 19:00:37 +0000 (12:00 -0700)]
swrast: remove dead file not present in master

15 years agodrivers/x11: remove early gallium support
Keith Whitwell [Sun, 21 Sep 2008 18:56:45 +0000 (11:56 -0700)]
drivers/x11: remove early gallium support

We originally piggy-backed gallium development in the X11/swrast driver,
but the necessary code has since been moved to its own location in
gallium/winsys/xlib.

Remove the old code from here as we don't want it propogated back to master
in any future merge.

15 years agostate_tracker: remove dead file
Keith Whitwell [Sun, 21 Sep 2008 18:50:46 +0000 (11:50 -0700)]
state_tracker: remove dead file

15 years agogallium: remove files not in master
Keith Whitwell [Sat, 20 Sep 2008 14:56:03 +0000 (07:56 -0700)]
gallium: remove files not in master

Remove git droppings we've accumulated somehow.

15 years agogallium: remove remnants of an nouveau driver
Keith Whitwell [Sat, 20 Sep 2008 14:50:22 +0000 (07:50 -0700)]
gallium: remove remnants of an nouveau driver

This isn't present on master, so probably shouldn't be here either.

15 years agoswrast: remove merge droppings
Keith Whitwell [Sun, 21 Sep 2008 18:46:36 +0000 (11:46 -0700)]
swrast: remove merge droppings

15 years agoMerge branch 'master' into gallium-0.2
Keith Whitwell [Sun, 21 Sep 2008 18:01:22 +0000 (11:01 -0700)]
Merge branch 'master' into gallium-0.2

15 years agoRemove CVS keywords.
Keith Whitwell [Sun, 21 Sep 2008 18:00:44 +0000 (11:00 -0700)]
Remove CVS keywords.

Cherry-picked from gallium-0.1

Conflicts:

src/glu/sgi/libnurbs/interface/bezierEval.h
src/glu/sgi/libnurbs/interface/bezierPatch.h
src/glu/sgi/libnurbs/interface/bezierPatchMesh.h
src/glu/sgi/libnurbs/internals/dataTransform.h
src/glu/sgi/libnurbs/internals/displaymode.h
src/glu/sgi/libnurbs/internals/sorter.h
src/glu/sgi/libnurbs/nurbtess/definitions.h
src/glu/sgi/libnurbs/nurbtess/directedLine.h
src/glu/sgi/libnurbs/nurbtess/gridWrap.h
src/glu/sgi/libnurbs/nurbtess/monoChain.h
src/glu/sgi/libnurbs/nurbtess/monoPolyPart.h
src/glu/sgi/libnurbs/nurbtess/monoTriangulation.h
src/glu/sgi/libnurbs/nurbtess/partitionX.h
src/glu/sgi/libnurbs/nurbtess/partitionY.h
src/glu/sgi/libnurbs/nurbtess/polyDBG.h
src/glu/sgi/libnurbs/nurbtess/polyUtil.h
src/glu/sgi/libnurbs/nurbtess/primitiveStream.h
src/glu/sgi/libnurbs/nurbtess/quicksort.h
src/glu/sgi/libnurbs/nurbtess/rectBlock.h
src/glu/sgi/libnurbs/nurbtess/sampleComp.h
src/glu/sgi/libnurbs/nurbtess/sampleCompBot.h
src/glu/sgi/libnurbs/nurbtess/sampleCompRight.h
src/glu/sgi/libnurbs/nurbtess/sampleCompTop.h
src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.h
src/glu/sgi/libnurbs/nurbtess/sampledLine.h
src/glu/sgi/libnurbs/nurbtess/searchTree.h
src/glu/sgi/libnurbs/nurbtess/zlassert.h
src/glu/sgi/libutil/error.c
src/glu/sgi/libutil/glue.c
src/glu/sgi/libutil/gluint.h
src/glu/sgi/libutil/project.c
src/glu/sgi/libutil/registry.c
src/glx/x11/glxclient.h
src/glx/x11/glxext.c
src/mesa/drivers/dri/ffb/ffb_dd.h
src/mesa/drivers/dri/ffb/ffb_points.h
src/mesa/drivers/dri/gamma/gamma_context.h
src/mesa/drivers/dri/gamma/gamma_macros.h
src/mesa/drivers/dri/i810/i810context.h
src/mesa/drivers/dri/r128/r128_dd.h
src/mesa/drivers/dri/tdfx/tdfx_dd.h

15 years agoMerge branch 'master' into gallium-0.2
Keith Whitwell [Sun, 21 Sep 2008 17:49:38 +0000 (10:49 -0700)]
Merge branch 'master' into gallium-0.2

15 years agomesa: Prefix main includes with dir to avoid conflicts.
José Fonseca [Wed, 23 Jul 2008 12:06:01 +0000 (21:06 +0900)]
mesa: Prefix main includes with dir to avoid conflicts.

Eliminate a couple of differences with gallium-0.2

15 years agoMerge branch 'master' into gallium-0.2
Keith Whitwell [Sun, 21 Sep 2008 17:34:25 +0000 (10:34 -0700)]
Merge branch 'master' into gallium-0.2

15 years agomesa: remove dead file
Keith Whitwell [Fri, 12 Sep 2008 14:03:19 +0000 (15:03 +0100)]
mesa: remove dead file

15 years agomesa: add explict float casts
Keith Whitwell [Fri, 12 Sep 2008 14:02:50 +0000 (15:02 +0100)]
mesa: add explict float casts

15 years agoMerge branch 'master' into gallium-0.2
Keith Whitwell [Sun, 21 Sep 2008 17:28:06 +0000 (10:28 -0700)]
Merge branch 'master' into gallium-0.2

Conflicts:

include/GLES/egl.h
include/GLES/egltypes.h
src/egl/main/eglconfig.c
src/egl/main/eglconfig.h
src/glu/sgi/libnurbs/interface/bezierEval.h
src/glu/sgi/libnurbs/interface/bezierPatch.h
src/glu/sgi/libnurbs/interface/bezierPatchMesh.h
src/glu/sgi/libnurbs/internals/dataTransform.h
src/glu/sgi/libnurbs/internals/displaymode.h
src/glu/sgi/libnurbs/internals/sorter.h
src/glu/sgi/libnurbs/nurbtess/definitions.h
src/glu/sgi/libnurbs/nurbtess/directedLine.h
src/glu/sgi/libnurbs/nurbtess/gridWrap.h
src/glu/sgi/libnurbs/nurbtess/monoChain.h
src/glu/sgi/libnurbs/nurbtess/monoPolyPart.h
src/glu/sgi/libnurbs/nurbtess/monoTriangulation.h
src/glu/sgi/libnurbs/nurbtess/partitionX.h
src/glu/sgi/libnurbs/nurbtess/partitionY.h
src/glu/sgi/libnurbs/nurbtess/polyDBG.h
src/glu/sgi/libnurbs/nurbtess/polyUtil.h
src/glu/sgi/libnurbs/nurbtess/primitiveStream.h
src/glu/sgi/libnurbs/nurbtess/quicksort.h
src/glu/sgi/libnurbs/nurbtess/rectBlock.h
src/glu/sgi/libnurbs/nurbtess/sampleComp.h
src/glu/sgi/libnurbs/nurbtess/sampleCompBot.h
src/glu/sgi/libnurbs/nurbtess/sampleCompRight.h
src/glu/sgi/libnurbs/nurbtess/sampleCompTop.h
src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.h
src/glu/sgi/libnurbs/nurbtess/sampledLine.h
src/glu/sgi/libnurbs/nurbtess/searchTree.h
src/glu/sgi/libnurbs/nurbtess/zlassert.h
src/glu/sgi/libutil/error.c
src/glu/sgi/libutil/glue.c
src/glu/sgi/libutil/gluint.h
src/glu/sgi/libutil/project.c
src/glu/sgi/libutil/registry.c
src/glx/x11/Makefile
src/glx/x11/glxclient.h
src/glx/x11/glxext.c
src/mesa/drivers/dri/ffb/ffb_dd.h
src/mesa/drivers/dri/ffb/ffb_points.h
src/mesa/drivers/dri/gamma/gamma_context.h
src/mesa/drivers/dri/gamma/gamma_macros.h
src/mesa/drivers/dri/i810/i810context.h
src/mesa/drivers/dri/r128/r128_dd.h
src/mesa/drivers/dri/r128/r128_tex.h
src/mesa/drivers/dri/tdfx/tdfx_dd.h
src/mesa/drivers/x11/xm_buffer.c
src/mesa/glapi/glapi.c
src/mesa/main/dispatch.c
src/mesa/main/state.c
src/mesa/main/texstate.c
src/mesa/shader/arbprogparse.c
src/mesa/shader/arbprogram.c
src/mesa/shader/nvfragparse.c
src/mesa/shader/nvprogram.c
src/mesa/shader/shader_api.c
src/mesa/sources
src/mesa/swrast/s_aaline.c
src/mesa/swrast/s_aaline.h
src/mesa/swrast/s_aatriangle.h
src/mesa/swrast/s_accum.c
src/mesa/swrast/s_alpha.h
src/mesa/swrast/s_bitmap.c
src/mesa/swrast/s_blend.h
src/mesa/swrast/s_context.c
src/mesa/swrast/s_copypix.c
src/mesa/swrast/s_depth.c
src/mesa/swrast/s_depth.h
src/mesa/swrast/s_drawpix.c
src/mesa/swrast/s_drawpix.h
src/mesa/swrast/s_feedback.c
src/mesa/swrast/s_feedback.h
src/mesa/swrast/s_fog.h
src/mesa/swrast/s_lines.h
src/mesa/swrast/s_logic.h
src/mesa/swrast/s_masking.h
src/mesa/swrast/s_points.c
src/mesa/swrast/s_points.h
src/mesa/swrast/s_readpix.c
src/mesa/swrast/s_span.c
src/mesa/swrast/s_span.h
src/mesa/swrast/s_stencil.h
src/mesa/swrast/s_texcombine.c
src/mesa/swrast/s_texcombine.h
src/mesa/swrast/s_texfilter.c
src/mesa/swrast/s_texfilter.h
src/mesa/swrast/s_texstore.c
src/mesa/swrast/s_triangle.c
src/mesa/swrast/s_triangle.h
src/mesa/swrast/s_zoom.h
src/mesa/swrast_setup/ss_context.c
src/mesa/swrast_setup/ss_triangle.h
src/mesa/tnl/t_draw.c
src/mesa/tnl/t_vb_light.c
src/mesa/tnl/t_vertex_generic.c
src/mesa/tnl/t_vertex_sse.c
src/mesa/tnl/t_vp_build.h
src/mesa/tnl/tnl.h
src/mesa/x86/common_x86.c

15 years agomesa: move fixed function vertex program builder from tnl to core mesa
Keith Whitwell [Sat, 20 Sep 2008 15:26:11 +0000 (08:26 -0700)]
mesa: move fixed function vertex program builder from tnl to core mesa

Also unify caching of fragment and vertex programs in shader/prog_cache.c`

Brought across from gallium-0.2

15 years agomesa: add parenthesis
Brian Paul [Tue, 17 Jun 2008 17:29:59 +0000 (11:29 -0600)]
mesa: add parenthesis

(cherry picked from commit c366fd83b617db6c8c064802ff4bf120d654507d)

15 years agomesa: standardize on C99's uint*_t instead of u_int*_t
Keith Whitwell [Sat, 20 Sep 2008 14:32:30 +0000 (07:32 -0700)]
mesa: standardize on C99's uint*_t instead of u_int*_t

15 years agomesa: Remove assyntax.h include from generated matypes.h.
José Fonseca [Wed, 4 Jun 2008 14:55:55 +0000 (23:55 +0900)]
mesa: Remove assyntax.h include from generated matypes.h.

matypes.h doesn't really depend on assyntax.h; assyntax.h is only present
on x86; and this way we remove the need of grep being available (which is
relevant for scons and non-unix platforms).
(cherry picked from commit fc286ff3ba089af5f1aca2d35b93b53a9383b1cf)

15 years agomesa: move rastpos helper to tnl
Keith Whitwell [Sat, 20 Sep 2008 13:43:24 +0000 (06:43 -0700)]
mesa: move rastpos helper to tnl

15 years agomesa: improved driver query interface
Keith Whitwell [Sat, 20 Sep 2008 13:34:23 +0000 (06:34 -0700)]
mesa: improved driver query interface

Brought over from gallium-0.2 branch.

15 years agocell: use different opcodes for spe_move() depending on even/odd address
Brian Paul [Fri, 19 Sep 2008 23:55:54 +0000 (17:55 -0600)]
cell: use different opcodes for spe_move() depending on even/odd address

15 years agocell: make sure the fragment ops and fragment shader code buffer is at a 32-byte...
Brian Paul [Fri, 19 Sep 2008 23:55:10 +0000 (17:55 -0600)]
cell: make sure the fragment ops and fragment shader code buffer is at a 32-byte boundary

To make sure even/odd instructions hit the right pipes.

15 years agogallium: added ALIGN32_ATTRIB
Brian Paul [Fri, 19 Sep 2008 23:53:56 +0000 (17:53 -0600)]
gallium: added ALIGN32_ATTRIB

15 years agogallium: added spe_code_size()
Brian Paul [Fri, 19 Sep 2008 23:45:51 +0000 (17:45 -0600)]
gallium: added spe_code_size()

15 years agoUpdate to SGI FreeB 2.0.
Adam Jackson [Fri, 19 Sep 2008 21:16:53 +0000 (17:16 -0400)]
Update to SGI FreeB 2.0.

Under the terms of version 1.1, "once Covered Code has been published
under a particular version of the License, Recipient may, for the
duration of the License, continue to use it under the terms of that
version, or choose to use such Covered Code under the terms of any
subsequent version published by SGI."

FreeB 2.0 license refers to "dates of first publication".  They are here
taken to be 1991-2000, as noted in the original license text:

 ** Original Code. The Original Code is: OpenGL Sample Implementation,
 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
 ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
 ** Copyright in any portions created by third parties is as indicated
 ** elsewhere herein. All Rights Reserved.

Official FreeB 2.0 text:

http://oss.sgi.com/projects/FreeB/SGIFreeSWLicB.2.0.pdf

As always, this code has not been tested for conformance with the OpenGL
specification.  OpenGL conformance testing is available from
http://khronos.org/ and is required for use of the OpenGL logo in
product advertising and promotion.

15 years agocell: Added FRC instruction
Jonathan White [Fri, 19 Sep 2008 21:10:25 +0000 (15:10 -0600)]
cell: Added FRC instruction

15 years agocell: Added FLR instruction. Verified the following instructions match softpipe...
Jonathan White [Fri, 19 Sep 2008 20:18:39 +0000 (14:18 -0600)]
cell: Added FLR instruction.  Verified the following instructions match softpipe:  MOV, ADD, MUL, SGE, SUB, MAD, ABS, SLT, MIN, MAX, LRP, DP3, DP4, CMP, FLR

15 years agocell: Fixed bugs with DP3 and DP4, they match softpipe results now.
Jonathan White [Fri, 19 Sep 2008 18:59:36 +0000 (12:59 -0600)]
cell:  Fixed bugs with DP3 and DP4, they match softpipe results now.

15 years agocell: flesh out support for other Z/stencil format
Brian Paul [Fri, 19 Sep 2008 18:52:41 +0000 (12:52 -0600)]
cell: flesh out support for other Z/stencil format

Also: improve float/int Z conversion.
Use clgt instead of cgt in depth test since we're comparing unsigned values.

15 years agomesa: Fix compiler error.
Michal Krol [Fri, 19 Sep 2008 17:11:37 +0000 (19:11 +0200)]
mesa: Fix compiler error.

15 years agocell: issue warning to stderr when using fallback fragment ops
Brian Paul [Fri, 19 Sep 2008 16:50:46 +0000 (10:50 -0600)]
cell: issue warning to stderr when using fallback fragment ops

15 years agocell: fix a comment
Brian Paul [Fri, 19 Sep 2008 16:43:04 +0000 (10:43 -0600)]
cell: fix a comment

15 years agocell: the test for CELL_DEBUG_FRAGMENT_OP_FALLBACK in cmd_state_fragment_ops() was...
Brian Paul [Fri, 19 Sep 2008 16:42:21 +0000 (10:42 -0600)]
cell: the test for CELL_DEBUG_FRAGMENT_OP_FALLBACK in cmd_state_fragment_ops() was inverted

15 years agocell: disable XShmPutImage for tiled surface for now
Brian Paul [Fri, 19 Sep 2008 16:41:03 +0000 (10:41 -0600)]
cell: disable XShmPutImage for tiled surface for now

Multiple displays of same surface data causes pixels to get scrambled.

15 years agocell: change spe_complement() to take a src and dst reg, like other instructions
Brian Paul [Fri, 19 Sep 2008 15:36:29 +0000 (09:36 -0600)]
cell: change spe_complement() to take a src and dst reg, like other instructions

15 years agoMerge branch 'gallium-0.2' of ssh+git://git.freedesktop.org/git/mesa/mesa into galliu...
José Fonseca [Fri, 19 Sep 2008 14:49:33 +0000 (23:49 +0900)]
Merge branch 'gallium-0.2' of ssh+git://git.freedesktop.org/git/mesa/mesa into gallium-0.2

15 years agoutil: Use OpenGL rasterization rules in blits and mipmap generation.
José Fonseca [Fri, 19 Sep 2008 14:25:29 +0000 (23:25 +0900)]
util: Use OpenGL rasterization rules in blits and mipmap generation.

15 years agomesa: add missing FEATURE_attrib_stack around
Alan Hourihane [Fri, 19 Sep 2008 13:55:49 +0000 (14:55 +0100)]
mesa: add missing FEATURE_attrib_stack around
      call to _mesa_free_attrib_data()

15 years agoi915simple: Use defined MSAA array
Jakob Bornecrantz [Fri, 19 Sep 2008 13:25:29 +0000 (15:25 +0200)]
i915simple: Use defined MSAA array

15 years agobug fix to MSAA visuals
Alan Hourihane [Fri, 19 Sep 2008 13:19:38 +0000 (14:19 +0100)]
bug fix to MSAA visuals

15 years agofix for MSAA
Alan Hourihane [Fri, 19 Sep 2008 13:13:57 +0000 (14:13 +0100)]
fix for MSAA

15 years agore-add MSAA support
Alan Hourihane [Fri, 19 Sep 2008 12:55:34 +0000 (13:55 +0100)]
re-add MSAA support

15 years agoi915simple: Front flushing does work
Jakob Bornecrantz [Fri, 19 Sep 2008 12:46:24 +0000 (14:46 +0200)]
i915simple: Front flushing does work

15 years agoi915simple: Fix extentions being loaded
Jakob Bornecrantz [Fri, 19 Sep 2008 12:16:19 +0000 (14:16 +0200)]
i915simple: Fix extentions being loaded

15 years agomesa: Fix arb parse constants
Brian Paul [Fri, 19 Sep 2008 11:04:52 +0000 (13:04 +0200)]
mesa: Fix arb parse constants

15 years agomesa: Update ignores a bit
Jakob Bornecrantz [Fri, 19 Sep 2008 10:43:02 +0000 (12:43 +0200)]
mesa: Update ignores a bit

15 years agoCELL: add codegen for logic op, color mask
Robert Ellison [Fri, 19 Sep 2008 07:55:00 +0000 (01:55 -0600)]
CELL: add codegen for logic op, color mask

- rtasm_ppc_spe.c, rtasm_ppc_spe.h: added a new macro function
  "spe_load_uint" for loading and splatting unsigned integers
  in a register; it will use "ila" for values 18 bits or less,
  "ilh" for word values that are symmetric across halfwords,
  "ilhu" for values that have zeroes in their bottom halfwords,
  or "ilhu" followed by "iohl" for general 32-bit values.

  Of the 15 color masks of interest, 4 are 18 bits or less,
  2 are symmetric across halfwords, 3 are zero in the bottom
  halfword, and 6 require two instructions to load.

- cell_gen_fragment.c: added full codegen for logic op and
  color mask.

15 years agoglx: re-add glapi/ path
Brian [Fri, 19 Sep 2008 03:22:08 +0000 (21:22 -0600)]
glx: re-add glapi/ path

15 years agomesa: remove unneeded s_drawpix.h header
Brian [Fri, 19 Sep 2008 02:31:05 +0000 (20:31 -0600)]
mesa: remove unneeded s_drawpix.h header

15 years agoglx: added "glapi/" prefix to include
Brian [Fri, 19 Sep 2008 02:27:16 +0000 (20:27 -0600)]
glx: added "glapi/" prefix to include

15 years agogallium: Fix doxygen comments.
José Fonseca [Fri, 19 Sep 2008 01:40:42 +0000 (10:40 +0900)]
gallium: Fix doxygen comments.

15 years agosoftpipe: Obey const qualifier.
José Fonseca [Fri, 19 Sep 2008 01:20:10 +0000 (10:20 +0900)]
softpipe: Obey const qualifier.

15 years agomesa: fix asst path/include mistakes in prev commits
Chris Rankin [Thu, 18 Sep 2008 22:48:11 +0000 (16:48 -0600)]
mesa: fix asst path/include mistakes in prev commits

15 years agoCELL: mark several transient files as .gitignore
Robert Ellison [Thu, 18 Sep 2008 22:36:37 +0000 (16:36 -0600)]
CELL: mark several transient files as .gitignore

progs/demos: added new demo "fbo_firecube"

progs/glsl: added new demo "pointcoord"

src/gallium/drivers/cell/spu: added the g3d_spu executable, a Cell SPU
executable file, which seems to be occasionally built as part of the
cell driver

src/glu/sgi: added "exptmp", a byproduct of the "mklib" process that
sometimes gets deleted and sometimes not.

15 years agodestroy window on exit
Brian Paul [Thu, 18 Sep 2008 21:36:17 +0000 (15:36 -0600)]
destroy window on exit

15 years agogallium: if we run out of memory in st_TexImage, flush and try again.
Brian Paul [Thu, 18 Sep 2008 21:35:56 +0000 (15:35 -0600)]
gallium: if we run out of memory in st_TexImage, flush and try again.

If the driver buffers a scene flushing should release old textures and
make space for new ones.  Fixes problem with texdown.c test.

15 years agomesa: fix null ptr deref bug in _tnl_InvalidateState(), bug 15834
Brian Paul [Thu, 18 Sep 2008 21:29:57 +0000 (15:29 -0600)]
mesa: fix null ptr deref bug in _tnl_InvalidateState(), bug 15834

15 years agomesa: added "main/" prefix to includes, remove some -I paths from Makefile.template
Brian Paul [Thu, 18 Sep 2008 21:17:05 +0000 (15:17 -0600)]
mesa: added "main/" prefix to includes, remove some -I paths from Makefile.template

15 years agocell: Added CMP instruction
Jonathan White [Thu, 18 Sep 2008 20:49:00 +0000 (14:49 -0600)]
cell: Added CMP instruction

15 years agomesa: prefix more #includes with "main/"
Brian Paul [Thu, 18 Sep 2008 19:46:47 +0000 (13:46 -0600)]
mesa: prefix more #includes with "main/"

15 years agomesa: remove a bunch of -I paths from INCLUDE_DIRS
Brian Paul [Thu, 18 Sep 2008 19:34:57 +0000 (13:34 -0600)]
mesa: remove a bunch of -I paths from INCLUDE_DIRS

15 years agoglx: remove #include "glheader.h" lines
Brian Paul [Thu, 18 Sep 2008 19:26:30 +0000 (13:26 -0600)]
glx: remove #include "glheader.h" lines

Was only used to get the PUBLIC/USED macros.
Also, replace "GL_FALSE" with "False" in a couple places.

15 years agoglx: remove depency on glheader.h and GLboolean type in XF86DRI code
Brian Paul [Thu, 18 Sep 2008 19:23:06 +0000 (13:23 -0600)]
glx: remove depency on glheader.h and GLboolean type in XF86DRI code

Return Bool instead of GLboolean to match other functions.
Define PUBLIC/USED macros locally.

15 years agomesa: prefix a bunch of #include lines with "main/".
Brian Paul [Thu, 18 Sep 2008 18:26:54 +0000 (12:26 -0600)]
mesa: prefix a bunch of #include lines with "main/".

This is another step toward removing a whole bunch of -I flags from
the cc commands.  Still need to address driver code...

15 years agoMerge commit 'origin/gallium-0.1' into gallium-0.2
Keith Whitwell [Thu, 18 Sep 2008 18:06:20 +0000 (19:06 +0100)]
Merge commit 'origin/gallium-0.1' into gallium-0.2

Conflicts:

src/mesa/shader/slang/slang_link.c

15 years agoMerge commit 'origin/master' into gallium-0.2
Keith Whitwell [Thu, 18 Sep 2008 17:57:46 +0000 (18:57 +0100)]
Merge commit 'origin/master' into gallium-0.2

Conflicts:

progs/trivial/Makefile
src/mesa/glapi/glthread.c

15 years agomesa: bring sources into line with sources.mak, but omit gallium code
Keith Whitwell [Fri, 12 Sep 2008 14:10:50 +0000 (15:10 +0100)]
mesa: bring sources into line with sources.mak, but omit gallium code

15 years agodri/swrast: fix swapBuffers after dri2
George Sapountzis [Fri, 12 Sep 2008 09:43:10 +0000 (12:43 +0300)]
dri/swrast: fix swapBuffers after dri2

15 years agoi965: Add support for G41 chipset which is another 4 series.
Xiang, Haihao [Fri, 12 Sep 2008 01:25:34 +0000 (09:25 +0800)]
i965: Add support for G41 chipset which is another 4 series.

15 years agocell: Fix bug with complement logic for SGE and SLE
Jonathan White [Thu, 18 Sep 2008 17:11:49 +0000 (11:11 -0600)]
cell: Fix bug with complement logic for SGE and SLE

15 years agocell: Added SGE and SLE instructions to dispatch function
Jonathan White [Thu, 18 Sep 2008 16:37:45 +0000 (10:37 -0600)]
cell:  Added SGE and SLE instructions to dispatch function

15 years agocell: Added SGE and SLE instructions
Jonathan White [Thu, 18 Sep 2008 16:36:09 +0000 (10:36 -0600)]
cell: Added SGE and SLE instructions

15 years agotgsi: Build tgsi_text with make
Jakob Bornecrantz [Thu, 18 Sep 2008 14:28:16 +0000 (16:28 +0200)]
tgsi: Build tgsi_text with make

15 years agoutil: A few more memory debugging checks.
José Fonseca [Thu, 18 Sep 2008 14:00:18 +0000 (23:00 +0900)]
util: A few more memory debugging checks.

15 years agoutil: Add missing p_debug.h include.
José Fonseca [Thu, 18 Sep 2008 13:24:45 +0000 (22:24 +0900)]
util: Add missing p_debug.h include.

15 years agogallium: fix surface object memory leak in cso module
Brian Paul [Thu, 18 Sep 2008 14:10:34 +0000 (08:10 -0600)]
gallium: fix surface object memory leak in cso module

15 years agotgsi: Make tgsi dumps look more like mesa shader dumps.
Jakob Bornecrantz [Thu, 18 Sep 2008 12:48:45 +0000 (14:48 +0200)]
tgsi: Make tgsi dumps look more like mesa shader dumps.

15 years agoprogs/fp: Add a bit of local variable testing to fp-tri
Jakob Bornecrantz [Thu, 18 Sep 2008 12:14:56 +0000 (14:14 +0200)]
progs/fp: Add a bit of local variable testing to fp-tri

15 years agoCELL: finish fragment ops blending (except for unusual D3D modes)
Robert Ellison [Thu, 18 Sep 2008 07:29:41 +0000 (01:29 -0600)]
CELL: finish fragment ops blending (except for unusual D3D modes)

- Added new "macro" functions spe_float_min() and spe_float_max()
  to rtasm_ppc_spe.{ch}.  These emit instructions that cause
  the minimum or maximum of each element in a vector of floats
  to be saved in the destination register.

- Major changes to cell_gen_fragment.c to implement all the blending
  modes (except for the mysterious D3D-based PIPE_BLENDFACTOR_SRC1_COLOR,
  PIPE_BLENDFACTOR_SRC1_ALPHA, PIPE_BLENDFACTOR_INV_SRC1_COLOR, and
  PIPE_BLENDFACTOR_INV_SRC1_ALPHA).

- Some revamping of code in cell_gen_fragment.c: use the new spe_float_min()
  and spe_float_max() functions (instead of expanding these calculations
  inline via macros); create and use an inline utility function for handling
  "optional" register allocation (for the {1,1,1,1} vector, and the
  blend color vectors) instead of expanding with macros; use the Float
  Multiply and Subtract (fnms) instruction to simplify and optimize many
  blending calculations.

15 years agopipebuffer: New callback to flush all temporary-held buffers.
José Fonseca [Thu, 18 Sep 2008 02:10:09 +0000 (11:10 +0900)]
pipebuffer: New callback to flush all temporary-held buffers.

Used mostly to aid debugging memory issues or to clean up resources when
the drivers are long lived.

15 years agogallium: fix wide point / point coord semantic info (generic, not fog)
Brian Paul [Wed, 17 Sep 2008 22:51:53 +0000 (16:51 -0600)]
gallium: fix wide point / point coord semantic info (generic, not fog)

15 years agogallium: fix fog vs. pointcoord attribute handling in mesa->TGSI conversion
Brian Paul [Wed, 17 Sep 2008 22:49:26 +0000 (16:49 -0600)]
gallium: fix fog vs. pointcoord attribute handling in mesa->TGSI conversion

15 years agomesa: new gl_fragment_program fields indicating use of fog, front-facing, point coord
Brian Paul [Wed, 17 Sep 2008 22:48:13 +0000 (16:48 -0600)]
mesa: new gl_fragment_program fields indicating use of fog, front-facing, point coord

15 years agoegl: print multisample info
Brian Paul [Wed, 17 Sep 2008 21:29:59 +0000 (15:29 -0600)]
egl: print multisample info

15 years agogallium: clean-up/fix msaa override in state tracker
Brian Paul [Wed, 17 Sep 2008 20:32:33 +0000 (14:32 -0600)]
gallium: clean-up/fix msaa override in state tracker

15 years agogallium: fix tgsi sanity checker with respect to END.
Brian Paul [Wed, 17 Sep 2008 19:14:57 +0000 (13:14 -0600)]
gallium: fix tgsi sanity checker with respect to END.

Subroutine code may be found after the END instruction so it's not always
the last instruction.
At least check for presence of exactly one END instruction though.

15 years agomesa: update program->NumAddressRegs field in _slang_update_inputs_outputs()
Brian Paul [Wed, 17 Sep 2008 19:13:02 +0000 (13:13 -0600)]
mesa: update program->NumAddressRegs field in _slang_update_inputs_outputs()

15 years agogallium: include prog_print.h to silence warning
Brian Paul [Wed, 17 Sep 2008 16:25:18 +0000 (10:25 -0600)]
gallium: include prog_print.h to silence warning

15 years agogallium: need to finish, not flush, in st_copy_texsubimage()
Brian Paul [Wed, 17 Sep 2008 16:22:38 +0000 (10:22 -0600)]
gallium: need to finish, not flush, in st_copy_texsubimage()

15 years agogallium: new assertion on surface->texture
Brian Paul [Wed, 17 Sep 2008 16:20:49 +0000 (10:20 -0600)]
gallium: new assertion on surface->texture

15 years agotgsi: Add a ugly fix for CONSTANT problems
Jakob Bornecrantz [Wed, 17 Sep 2008 16:11:35 +0000 (18:11 +0200)]
tgsi: Add a ugly fix for CONSTANT problems

15 years agotgsi: More debug printing on sanity check error
Jakob Bornecrantz [Wed, 17 Sep 2008 16:08:03 +0000 (18:08 +0200)]
tgsi: More debug printing on sanity check error

15 years agogallium: fix lack of surface reference counting in cso_set/save/restore_framebuffer()
Brian Paul [Wed, 17 Sep 2008 15:47:51 +0000 (09:47 -0600)]
gallium: fix lack of surface reference counting in cso_set/save/restore_framebuffer()

Fixes asst problems with FBO / render to texture.

15 years agomesa: fix bug in previous changes to _slang_resolve_attributes()
Brian Paul [Wed, 17 Sep 2008 15:05:04 +0000 (09:05 -0600)]
mesa: fix bug in previous changes to _slang_resolve_attributes()

15 years agomesa: fix bug in previous changes to _slang_resolve_attributes()
Brian Paul [Wed, 17 Sep 2008 15:05:04 +0000 (09:05 -0600)]
mesa: fix bug in previous changes to _slang_resolve_attributes()

15 years agocell: example of doing fs/fm sequence with fnms in blending
Brian Paul [Wed, 17 Sep 2008 14:17:02 +0000 (08:17 -0600)]
cell: example of doing fs/fm sequence with fnms in blending

15 years agocell: dump generated code if CELL_DEBUG=asm
Brian Paul [Wed, 17 Sep 2008 14:11:42 +0000 (08:11 -0600)]
cell: dump generated code if CELL_DEBUG=asm

15 years agoCELL: fleshing out the blending fragment ops
Robert Ellison [Wed, 17 Sep 2008 08:30:20 +0000 (02:30 -0600)]
CELL: fleshing out the blending fragment ops

- Added two new debug flags (to be used with the CELL_DEBUG environment
  variable).  The first, "CELL_DEBUG=fragops", activates SPE fragment
  ops debug messages.  The second, "CELL_DEBUG=fragopfallback", will
  eventually be used to disable the use of generated SPE code for
  fragment ops in favor of the default fallback reference routine.
  (During development, though, the parity of this flag is reversed:
  all users will get the reference code *unless* CELL_DEBUG=fragopfallback
  is set.  This will prevent hiccups in code generation from affecting
  the other developers.)

- Formalized debug message usage and macros in spu/spu_main.c.

- Added lots of new code to ppu/cell_gen_fragment.c to extend the
  number of supported source RGB factors from 4 to 15, and to
  complete the list of supported blend equations.

More coming, to complete the source and destination RGB and alpha
factors, and to complete the rest of the fragment operations...