Commit graph

27608 commits

Author SHA1 Message Date
José Fonseca
cafb545721 d3d: Windows miniport driver portability fixes. 2008-05-01 02:25:23 +09:00
Brian Paul
15318c8d8e gallium: new pipe_buffer alloc/map/unmap/ref wrappers 2008-04-30 10:43:09 -06:00
Ben Skeggs
1e6191e0af Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1 2008-04-30 21:42:23 +10:00
Brian Paul
42fb48492e gallium: init hw_key with memset() to silence valgrind warnings
We shouldn't be hashing with keys that have uninitialized memory.
2008-04-29 18:35:30 -06:00
Brian Paul
d0b2561c57 gallium: updated comment in xm_flush_frontbuffer() 2008-04-29 18:35:30 -06:00
Brian Paul
62a29412b9 gallium: test for new PIPE_ARCH_X86 2008-04-29 18:35:30 -06:00
Zack Rusin
0d80f407f1 silence p_debug.h:63: warning: ISO C forbids forward references to ‘enum’ types 2008-04-29 17:21:10 -04:00
Brian Paul
fce5951b56 gallium: declare pipe_format enum to silence warnings 2008-04-29 14:39:42 -06:00
Keith Whitwell
1e97ab6856 gallium: add pack for _FLOAT formats to pack_ub 2008-04-29 21:30:31 +01:00
Keith Whitwell
bbafa8aa2f gallium: fix pack for A1R5B5G5 2008-04-29 21:30:04 +01:00
Keith Whitwell
fbddc8097c gallium: add pack for A4R4G4B4 2008-04-29 21:05:48 +01:00
Keith Whitwell
7441f2e3ea gallium: add pack for A1R5B5G5 2008-04-29 20:48:15 +01:00
Keith Whitwell
9bfe1a3d50 gallium: add debug_print_format() make it easier to print format error messages 2008-04-29 20:48:14 +01:00
Brian Paul
733bc4df1a gallium: added some assertions to be sure the blit's surface formats are suitable 2008-04-29 12:55:41 -06:00
Brian Paul
1cff4992b3 gallium: add \n to error strings 2008-04-29 11:11:47 -06:00
Brian Paul
5e8d7899a8 gallium: fix error msg typo 2008-04-29 11:11:47 -06:00
Ben Skeggs
95295081a8 Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1 2008-04-29 09:00:48 +10:00
Ben Skeggs
480ab1b789 nv40: enable DXTn formats
GL state tracker capable enough for progs/tests/texcompress2 at least.
2008-04-29 08:56:41 +10:00
Keith Whitwell
c4917c6231 tgsi: make loop structure clearer, use x86_lea for increments 2008-04-28 18:50:31 +01:00
Keith Whitwell
9fb444f191 tsgi: add a makefile 2008-04-28 18:43:27 +01:00
Keith Whitwell
546ab045d8 translate: squash warnings 2008-04-28 18:11:55 +01:00
Keith Whitwell
a41b78d107 pb: remove unused variable, squash warning 2008-04-28 18:11:55 +01:00
Michal Krol
b6d9666a42 gallium: Set SSE_SWIZZLES to 0 by default. 2008-04-28 19:03:20 +02:00
Michal Krol
58d3dff0d3 gallium: Generate SSE code to swizzle and unswizzle vs inputs and outputs.
Change SSE_SWIZZLES #define to 0 to disable it.
2008-04-28 18:50:58 +02:00
Brian Paul
0d179ffe97 gallium: add cases for PIPE_FORMAT_X8Z24_UNORM 2008-04-28 09:33:20 -06:00
Ben Skeggs
58b1bcaa09 nv40: do full swtnl fallback when edge flags present.
This isn't necessary, with some effort we can do this on the hw.  However,
until I encounter something "real" that uses them there's not a lot of
point.
2008-04-28 19:25:40 +10:00
José Fonseca
083008d808 pipebuffer: Be extra cautious with the incoming buffers.
A common mistake is trying to fence user or malloc buffers. So don't let
the crash happen inside pipebuffer lib.
2008-04-27 21:19:34 +09:00
José Fonseca
e3c4159957 rtasm: Implement x86_retw. 2008-04-27 21:09:45 +09:00
Ben Skeggs
2193578851 nouveau: stub set_edgeflags for all nv pipe drivers 2008-04-27 18:12:14 +10:00
Ben Skeggs
0cca90cea1 Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1 2008-04-27 18:04:50 +10:00
Brian
a8e39b6f5a gallium: fix broken SGT, SLE 2008-04-25 19:25:26 -06:00
Brian
a94aad297d use PIPE_ARCH_X86 2008-04-25 18:46:29 -06:00
Brian Paul
aad9dd14d8 gallium: tweak comments, minor var renaming 2008-04-25 16:27:52 -06:00
Brian Paul
5e3b0d227c gallium: tweak comments, minor var renaming 2008-04-25 16:27:52 -06:00
Keith Whitwell
1aedbf9efe draw: emit extra flags whenever pipeline is active
The assert was in fact over-sensitive, but emitting the extra flags
is pretty trivial & we may as well just do it whenever we know the
pipeline is running.
2008-04-25 16:16:14 +01:00
Michel Dänzer
96cfd804f6 gallium: Add draw_pt_varray.c to scons build. 2008-04-25 14:57:50 +01:00
Keith Whitwell
2325d19597 tgsi: fix compile when HIGH_PRECISION not defined 2008-04-25 14:20:26 +01:00
Keith Whitwell
14cfcb1820 draw: no need to special-case elts/get_elts for varray frontend 2008-04-25 14:20:25 +01:00
Keith Whitwell
4e46e6f52b draw: remove unused vars 2008-04-25 14:20:25 +01:00
Zack Rusin
992d0b997f frontend for rendering without elts 2008-04-25 14:20:25 +01:00
José Fonseca
b06cd4debf gallium: Windows user mode portability fixes. 2008-04-25 18:19:51 +09:00
José Fonseca
dacfef1589 gallium: New configuration header.
To abstract all those weird #ifdef (__???__) checks.

It should typically be the first included header.
2008-04-25 18:18:48 +09:00
Keith Whitwell
2926e59e4a draw: remove old assignment of edgeflag value 2008-04-24 23:31:35 +01:00
Brian Paul
9816531862 gallium: plug in softpipe_set_edgeflags() function 2008-04-24 15:59:08 -06:00
Brian Paul
909894e34c gallium: comments 2008-04-24 15:58:46 -06:00
Keith Whitwell
da8312a1cf draw: default edgeflag should be one 2008-04-24 21:14:23 +01:00
Brian Paul
386102c62a gallium: make cso_release_all() public 2008-04-24 12:15:05 -06:00
Brian Paul
a41804909d gallium: minor clean-ups, comments 2008-04-24 12:15:05 -06:00
Brian Paul
ac79532a15 gallium: tweak the new shader delete funcs 2008-04-24 12:15:05 -06:00
Brian Paul
f2c3125716 gallium: added cso_delete_vertex_fragment_shader() functions
The state tracker now uses these functions to free shaders, rather than
the pipe->delete_vs/fs-state() functions.  Before, we could get in a situation
where we free() a shader and happen to alloc() a new one at the same address.
The cso_set_vertex/fragment_shader() function would no-op the state change
since the pointers were the same.  This led to problems elsewhere, of course.

The new delete functions null-out the CSO's current shader pointers.
2008-04-24 12:15:05 -06:00