Commit graph

13455 commits

Author SHA1 Message Date
Brian
ca1d2fc5f6 Cell: improved bilinear filtering
avoid calling get_tex_tile() if all texels are in same tile
2008-02-04 13:16:10 -07:00
Brian
0a45f75948 Cell: implement basic bilinear texture sampler 2008-02-04 12:50:42 -07:00
Brian
9a5074217f Cell: added spu_unpack_color(), spu_pack_R8G8B8A8() 2008-02-04 12:50:16 -07:00
Brian
703a869155 Cell: SIMD-ize more of texture sampling 2008-02-04 11:02:47 -07:00
Brian
18105195a8 Cell: checkpoint: start to SIMD-ize texture sampling 2008-02-04 09:54:21 -07:00
Brian
e967a5c746 Cell: move tile clear code to flush_spans() 2008-02-04 08:53:18 -07:00
Brian
6023311c7c Cell: clamp txmax, tymax in tile_bounding_box()
Also, added some debug printfs
2008-02-04 08:46:44 -07:00
Brian
69cc19751d Cell: insert some draw_flush() calls 2008-02-04 08:45:33 -07:00
Brian
aa761b1605 Cell: comment about emit_quad() mask 2008-02-01 16:54:46 -07:00
Brian
44d3269356 Cell: move some tile get/clear code
Also, we weren't marking the ztile as dirty after ztesting, fixes gears glitches.
2008-02-01 16:42:09 -07:00
Brian
8bd566a9cb Cell: use global color_shuffle to remove a switch stmnt 2008-02-01 16:25:42 -07:00
Brian
d7c2eb0df4 Cell: New color packing functions (A8R8G8B8 and B8G8R8A8) 2008-02-01 15:45:02 -07:00
Brian
42201d7574 Cell: rename/move global vars
Put tile-related globals into spu_global struct.
Rename c/ztile fields to be more consistant.
2008-02-01 15:33:53 -07:00
Brian
17305489f0 Cell: deprecate some use of struct cell_command - it should go away completely
Also, remove ALIGN16_ATTRIB from structs that no longer need it.
2008-02-01 15:24:00 -07:00
Brian
b1a472bfb7 Cell: remove commands from top-level while loop which should only appear in batch buffers 2008-02-01 15:20:07 -07:00
Brian
0e9a370ae2 Cell: move ztest before color interp/packing 2008-02-01 14:04:56 -07:00
Brian
c392cc8f1b Cell: rename fields of the tile_t union 2008-02-01 14:04:55 -07:00
Brian
59be082909 Cell: implement Z16 and Z32 testing with SIMD instructions. 2008-02-01 14:04:55 -07:00
Brian
b108bea6b4 Cell: store current tile status in cur_tile_status_c/z, add TILE_STATUS_GETTING 2008-02-01 14:04:55 -07:00
Ian Romanick
20df285b14 Fix using "ccache ppu-gcc" for CC and fix parallel builds
CC wasn't quoted in a couple places in src/mesa/Makefile.  Also, the
OSMesa link was missing a dependency.
2008-01-31 17:22:07 -08:00
Brian
635341ec5b fix typo 2008-01-31 17:05:43 -07:00
Brian
633e1133ae gallium: fix problem in which texcoords and varying vars got mapped to the same slot
This fixes the glsl/bump.c and glsl/texdemo1.c programs
2008-01-31 14:35:25 -07:00
Brian
86787043fa Fix problem in mapping vertex program outputs (found with "spring" game engine)
If the vertex program writes to an output that's not consumed by the
fragment program, map the vp output to an unused slot.
2008-01-31 14:05:04 -07:00
Brian
acb81374c1 gallium: comments about fragment Z computation 2008-01-31 13:41:14 -07:00
Brian
9536314a6c gallium: Fix z clear bug when TILE_CLEAR_OPTIMIZATION==0 2008-01-31 13:41:14 -07:00
Brian
c36cdc6156 gallium: fix get/put typo regression
This came from commit f3aa4de034 on 1/22/08.
Fixes strange Z buffer glitches seen in progs/glsl/texdemo1.c
2008-01-31 13:41:14 -07:00
Brian
cd53eb0db1 Cell: SIMD-ize const_coeff() 2008-01-31 08:21:38 -07:00
Brian
256486829f Cell: set GALLIUM_CELL_VS env var to enable SPU-based vertex transformation 2008-01-31 08:12:47 -07:00
Keith Whitwell
e82c9b867c tgsi: Use ESI instead of EBX as temp reg on non-win32 2008-01-31 11:57:49 +00:00
José Fonseca
50d5f304ad gallium: Portability fixes. 2008-01-31 18:25:05 +09:00
José Fonseca
f4192cb4ca gallium: Make the build output dir depend on the configuration.
The build output dirs mimics the old config names:

  build/linux
  build/linux-dri
  build/linux-dri-x86
  build/linux-dri-x86-debug
  ...
2008-01-31 14:22:21 +09:00
José Fonseca
c42e6254cf gallium: Add SCons as alternative build system for Gallium. 2008-01-31 14:22:21 +09:00
Ian Romanick
62d11b98c4 I don't know why using uint64_t for "base" doesn't work. Ugh. 2008-01-30 20:14:52 -08:00
Ian Romanick
5a6fd93930 Use SPUs for vertex shader processing 2008-01-30 20:14:52 -08:00
Ian Romanick
a89ee8a96d Add driver_private field for drivers that hook shader_queue_flush. 2008-01-30 20:14:52 -08:00
Ian Romanick
9ad986b887 Numerous small fixed to PPU-SPU vertex shader protocol 2008-01-30 20:14:52 -08:00
Ian Romanick
de949a471e cell_array_info should not be 16-byte aligned
Forcing cell_array_info to be 16-byte aligned makes it more difficult
to stuff that state in batch commands.
2008-01-30 20:14:52 -08:00
Ian Romanick
10270fbe2d Correctly read / write vertex header from / to main memory 2008-01-30 20:14:52 -08:00
Ian Romanick
193491cbd3 Handle CELL_CMD_VS_EXECUTE *only* outside batch commands. 2008-01-30 20:14:52 -08:00
Ian Romanick
fb348c2cb1 Set machine->Processor
The default value is 0, which is TGSI_PROCESSOR_FRAGMENT...not correct
for a vertex shader!
2008-01-30 20:14:52 -08:00
Ian Romanick
137cb72284 Elts are always ints, pass vOut pointers in-line in command 2008-01-30 20:14:51 -08:00
Ian Romanick
3349861146 Implement micro_pow and micro_sqrt
Unimplemented micro ops get assertions for now.
2008-01-30 20:14:51 -08:00
Ian Romanick
7b27d9fd66 Fix size calculation in attribute fetch. 2008-01-30 20:14:51 -08:00
Ian Romanick
708d699e0c Fetch uniforms from main memory. 2008-01-30 20:14:51 -08:00
Ian Romanick
a0a707342a Missing amperstand in previous commit. Oops. 2008-01-30 20:14:51 -08:00
Ian Romanick
fcf9441773 Pass ptr to local memory copy instead of main memory to exec_instruction
This was essentially a cut-and-paste bug when the instruction fetcher
was added.  Also, the test for TGSI_PROCESSOR_FRAGMENT was moved
outside the loop for exec_declaration.
2008-01-30 20:14:51 -08:00
Ian Romanick
3d13605ee5 Provide mechanism to hook in custom vertex shader cache flush function 2008-01-30 20:14:51 -08:00
Ian Romanick
13eec10688 Implement vertex fetch / vertex shader output write-back 2008-01-30 20:14:51 -08:00
Ian Romanick
33cac48241 Initial pass at instruction / declaration fetch 2008-01-30 20:14:51 -08:00
Ian Romanick
524bba17a7 Initial pass at vertex shader on SPU using TGSI VM
All of the code is wired in on the SPU side, but it is not called from
the PPU yet.  Instruction / declaration fetch still needs to be
implemented in spu_exec.c.
2008-01-30 20:14:51 -08:00