Commit Graph

13319 Commits

Author SHA1 Message Date
Ian Romanick 77a1488620 Real-time assembler for Cell SPE. 2008-02-14 10:08:48 -08:00
Ian Romanick dd07e154d2 Fetch routines convert and transpose all 4 vertices at once. 2008-02-14 10:08:48 -08:00
Ian Romanick 125451b9f0 Remove open-coded fetch functions 2008-02-14 10:08:48 -08:00
Ian Romanick ca1a2da645 Initial pass at vertex cache, more vertex fetch changes
This is just another step towards dynamic generate of vertex fetch code.
2008-02-14 10:08:48 -08:00
Ian Romanick c290367985 Vectorize a couple fetch functions
These C-coded vectorized functions are expected to be short lived.
They're basically a proof-of-concept for dynamically generated fetch
routines.
2008-02-14 10:08:48 -08:00
Michel Dänzer 0230c56ed0 intel_winsys: Call st_notify_swapbuffers_complete() after buffer swap. 2008-02-14 17:42:52 +00:00
Keith Whitwell cf5ef20f43 gallium: Cleanups related to clears. 2008-02-14 16:53:51 +00:00
Zack Rusin 2e75f39bc4 make swizzling on incoming arguments work 2008-02-13 09:26:56 -05:00
Zack Rusin 12d5b078e8 get rid of the terrible auto-generated entry point
it's not used anymore.
2008-02-13 08:46:05 -05:00
Zack Rusin 7e51d2a998 implement immediates and make them work 2008-02-13 08:33:16 -05:00
Zack Rusin c107d57210 try to load the consts correctly 2008-02-13 08:33:16 -05:00
Keith Whitwell 66640c4b58 x86: remove debug 2008-02-13 12:37:42 +00:00
Keith Whitwell 8162d317d2 x86: emit absolute calls, as reallocating exec mem breaks relative ones 2008-02-13 12:36:32 +00:00
Keith Whitwell a3534a27bf tgsi: fail gracefully when sse code can't emit shader 2008-02-13 12:36:32 +00:00
Keith Whitwell 6046c54cc4 x86: reallocate exec mem when we run out 2008-02-13 12:36:32 +00:00
Keith Whitwell 7f342a20d2 tgsi: include more of the register info in debug dumps 2008-02-13 12:36:32 +00:00
Michel Dänzer e922adbe1d gallium: pipe->surface_copy can flip the contents vertically when necessary.
Fixes gears being upside down on the box in demos/gearbox.
2008-02-13 11:39:58 +00:00
Zack Rusin 4bb1a14d90 handle temporaries in llvm code generated paths 2008-02-13 04:38:10 -05:00
Zack Rusin e179d5bdd1 implement add 2008-02-13 04:37:40 -05:00
Zack Rusin 135d2329de implement mul 2008-02-13 03:18:37 -05:00
Zack Rusin 4c8456264c get mov working 2008-02-13 00:48:08 -05:00
Zack Rusin 53c2963b84 fix fetching input elements and generate a ret on end 2008-02-13 00:36:31 -05:00
Zack Rusin 9b6532f01b add functiontype for the llvm native vs entry point 2008-02-13 00:21:24 -05:00
Zack Rusin 8b054cd6eb disable llvm code in fs 2008-02-13 00:21:03 -05:00
Zack Rusin 3c3c1ff5cd stop generate llvm entry points
entrypoints are useless because we use the same paths as all other
code. also simplify llvm swizzling code
2008-02-12 23:11:05 -05:00
Zack Rusin cad7bc74d6 llvm ir code to fetch the elements 2008-02-12 23:11:05 -05:00
Brian e20e89e482 gallium: initial code for wide/AA line drawing 2008-02-12 19:14:58 -07:00
Brian 9af687c530 gallium: fix/finish glReadPixels(GL_DEPTH_COMPONENT).
This fixes demos/reflect ('d' key) and tests/zreaddraw.c
2008-02-12 17:44:57 -07:00
Brian 48e223a0db gallium: clamp min_lod so it's never negative 2008-02-12 17:07:27 -07:00
Brian be54b492d9 Fix broken test.
As-is, if the texture was too large for the target, an assertion would fail.
Now check proxy texture first and if it works, then test non-proxy target.
2008-02-12 16:57:00 -07:00
Brian 508b73289d gallium: remove dead code 2008-02-12 16:38:56 -07:00
Brian a34b43b3f4 gallium: added null ptr check 2008-02-12 16:37:49 -07:00
Brian 9677336845 gallium: rename st_fragment_program's fs field to cso to match st_vertex_program 2008-02-12 16:10:11 -07:00
Brian 6d53b8f423 gallium: move gen-mipmap global/static vars into st_context
This fixes potential problems with multi-context programs.
2008-02-12 16:06:51 -07:00
Brian cf94941122 Set Min/MaxLod with glTexParameterf, not glTexParameteri 2008-02-12 15:54:15 -07:00
Brian 4697cee78b press 0,1,2,etc keys for specific bias values 2008-02-12 15:01:44 -07:00
Brian 74c32ee6aa tweak incr/decrements amounts for keyboard options 2008-02-12 15:01:32 -07:00
Brian 1d62a057bc gallium: remove unused first_level param from st_texture_create() 2008-02-12 14:55:51 -07:00
Brian 4da1cdf78f gallium: clean-up, simplification of mipmapped textures
Remove pipe_texture->first_level (always implicitly zero).  This means there's
never any unused mipmap levels at the top.
In the state tracker, we no longer re-layout mipmapped textures if the
MinLod/MaxLod texture parameters change.  It's up to the driver to obey the
pipe_sampler->min/max_lod clamps.
2008-02-12 14:53:25 -07:00
Brian b61b1a295b gallium: take pitch/stride into account in mipmap generation 2008-02-11 10:59:40 -07:00
Brian 3d0fd8a6cf gallium: comments about mipmap gen 2008-02-11 09:50:21 -07:00
Brian c22d9152e3 code refactoring, new next_mipmap_level_size() function 2008-02-11 09:46:50 -07:00
Brian e4026167d7 gallium: implement software fallback for mipmap generation
This is used when we can't render to the surface type of the texture (such
as luminance/alpha).
2008-02-11 09:46:50 -07:00
Brian 212b27d33f gallium: strip borders from textures passed to st_TexImage.
Manipulate the unpack params to skip the border.  Gallium drivers won't support
texture borders.
2008-02-11 09:46:50 -07:00
Brian cfe9e66f2b gallium: use _mesa_tex_target_to_face() 2008-02-11 09:46:50 -07:00
Brian b52ce6341f added _mesa_tex_target_to_face() 2008-02-11 09:46:49 -07:00
Brian 789f2f15e8 gallium: update comment about buffer map flags 2008-02-11 09:46:49 -07:00
Brian 2e4077db16 gallium: fix fragment/vertex typo 2008-02-11 09:46:49 -07:00
Brian 3bae27fcc5 refactor code, export _mesa_generate_mipmap_level() 2008-02-11 09:46:49 -07:00
Brian 42eac65da4 move _mesa_format_to_type_and_comps() to texformat.c 2008-02-11 09:46:49 -07:00