Commit graph

18607 commits

Author SHA1 Message Date
Brian Paul
aca74a4d92 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.
2008-09-19 17:56:45 -06:00
Brian Paul
bef3444f41 gallium: added ALIGN32_ATTRIB 2008-09-19 17:56:45 -06:00
Brian Paul
7af5f944e5 gallium: added spe_code_size() 2008-09-19 17:56:45 -06:00
Adam Jackson
dc8058c337 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.
2008-09-19 17:16:53 -04:00
Jonathan White
33bef5866c cell: Added FRC instruction 2008-09-19 15:10:25 -06:00
Jonathan White
1031638c2d 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 2008-09-19 14:18:39 -06:00
Jonathan White
e9c05c5b82 cell: Fixed bugs with DP3 and DP4, they match softpipe results now. 2008-09-19 13:00:28 -06:00
Brian Paul
7abf2358d7 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.
2008-09-19 12:52:41 -06:00
Michal Krol
8701e5f702 mesa: Fix compiler error. 2008-09-19 19:11:37 +02:00
Brian Paul
0500ae574f cell: issue warning to stderr when using fallback fragment ops 2008-09-19 10:50:46 -06:00
Brian Paul
3c6bb15b7a cell: fix a comment 2008-09-19 10:43:04 -06:00
Brian Paul
de0a6dc04a cell: the test for CELL_DEBUG_FRAGMENT_OP_FALLBACK in cmd_state_fragment_ops() was inverted 2008-09-19 10:42:21 -06:00
Brian Paul
44d5e607c7 cell: disable XShmPutImage for tiled surface for now
Multiple displays of same surface data causes pixels to get scrambled.
2008-09-19 10:41:03 -06:00
Brian Paul
0838b70275 cell: change spe_complement() to take a src and dst reg, like other instructions 2008-09-19 09:36:29 -06:00
José Fonseca
d310c52c7f Merge branch 'gallium-0.2' of ssh+git://git.freedesktop.org/git/mesa/mesa into gallium-0.2 2008-09-19 23:49:33 +09:00
José Fonseca
dda5c0c611 util: Use OpenGL rasterization rules in blits and mipmap generation. 2008-09-19 23:25:29 +09:00
Alan Hourihane
13e7e4b634 mesa: add missing FEATURE_attrib_stack around
call to _mesa_free_attrib_data()
2008-09-19 14:55:49 +01:00
Jakob Bornecrantz
89f47d1645 i915simple: Use defined MSAA array 2008-09-19 15:29:08 +02:00
Alan Hourihane
256592807c bug fix to MSAA visuals 2008-09-19 14:19:38 +01:00
Alan Hourihane
d3172cddbf fix for MSAA 2008-09-19 14:13:57 +01:00
Alan Hourihane
f7d80aa006 re-add MSAA support 2008-09-19 13:58:45 +01:00
Jakob Bornecrantz
82623bf2e5 i915simple: Front flushing does work 2008-09-19 14:46:24 +02:00
Jakob Bornecrantz
c6dc1bf6e0 i915simple: Fix extentions being loaded 2008-09-19 14:16:37 +02:00
Brian Paul
0576e837f1 mesa: Fix arb parse constants 2008-09-19 13:04:52 +02:00
Jakob Bornecrantz
866a2c3ccb mesa: Update ignores a bit 2008-09-19 12:43:47 +02:00
Robert Ellison
a57fbe53dc 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.
2008-09-19 01:55:00 -06:00
Brian
19d9c81b8c glx: re-add glapi/ path 2008-09-18 21:22:08 -06:00
Brian
cfc4b4c989 mesa: remove unneeded s_drawpix.h header 2008-09-18 20:31:05 -06:00
Brian
4eb95ce807 glx: added "glapi/" prefix to include 2008-09-18 20:27:16 -06:00
José Fonseca
984a7c4e9c gallium: Fix doxygen comments. 2008-09-19 10:40:42 +09:00
José Fonseca
5f88d871ea softpipe: Obey const qualifier. 2008-09-19 10:21:52 +09:00
Chris Rankin
8d41e4536d mesa: fix asst path/include mistakes in prev commits 2008-09-18 16:48:11 -06:00
Robert Ellison
4485ac87c2 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.
2008-09-18 16:36:37 -06:00
Brian Paul
a9004cc79c destroy window on exit 2008-09-18 15:37:13 -06:00
Brian Paul
8d249ca620 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.
2008-09-18 15:37:13 -06:00
Brian Paul
58dce864e6 mesa: fix null ptr deref bug in _tnl_InvalidateState(), bug 15834 2008-09-18 15:29:57 -06:00
Brian Paul
ecadb51bbc mesa: added "main/" prefix to includes, remove some -I paths from Makefile.template 2008-09-18 15:17:05 -06:00
Jonathan White
698bffb884 cell: Added CMP instruction 2008-09-18 14:49:34 -06:00
Brian Paul
374e7fd6cc mesa: prefix more #includes with "main/" 2008-09-18 13:46:47 -06:00
Brian Paul
06370a91b3 mesa: remove a bunch of -I paths from INCLUDE_DIRS 2008-09-18 13:34:57 -06:00
Brian Paul
a25e1aa0aa 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.
2008-09-18 13:26:30 -06:00
Brian Paul
3537da87de 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.
2008-09-18 13:23:06 -06:00
Brian Paul
bbd287103d 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...
2008-09-18 12:26:54 -06:00
Keith Whitwell
a8d1521f30 Merge commit 'origin/gallium-0.1' into gallium-0.2
Conflicts:

	src/mesa/shader/slang/slang_link.c
2008-09-18 19:07:33 +01:00
Keith Whitwell
89ab66448e Merge commit 'origin/master' into gallium-0.2
Conflicts:

	progs/trivial/Makefile
	src/mesa/glapi/glthread.c
2008-09-18 19:03:02 +01:00
Keith Whitwell
1074e8e4e4 mesa: bring sources into line with sources.mak, but omit gallium code 2008-09-18 18:52:14 +01:00
George Sapountzis
841205e365 dri/swrast: fix swapBuffers after dri2 2008-09-18 18:52:14 +01:00
Xiang, Haihao
3bb8646829 i965: Add support for G41 chipset which is another 4 series. 2008-09-18 18:52:13 +01:00
Jonathan White
15fceac040 cell: Fix bug with complement logic for SGE and SLE 2008-09-18 11:11:49 -06:00
Jonathan White
3d2449247a cell: Added SGE and SLE instructions to dispatch function 2008-09-18 10:37:45 -06:00