Commit graph

27608 commits

Author SHA1 Message Date
José Fonseca
e8b52b3f56 gallium: Drop deprecated __MSC__ macro. 2008-06-24 13:56:41 +09:00
José Fonseca
b750b5326d gdi: Update for surface_alloc_storage changes. 2008-06-24 11:40:25 +09:00
Brian Paul
89e9d6b6db gallium: added support for fixed-point formats, drawing 2008-06-23 17:13:14 -06:00
Jonathan White
dc73d15a9a gallium: code for PIPE_SUBSYSTEM_WINDOWS_USER 2008-06-23 16:25:26 -06:00
Patrice Mandin
95fe122f67 nv30: add state zsa, based on nv40 one 2008-06-23 21:46:51 +02:00
Patrice Mandin
0e1b36b0b2 nv30: add state viewport, based on nv40 one 2008-06-23 21:37:41 +02:00
Patrice Mandin
d4bc56ca49 nv30: add state stipple, based on nv40 one 2008-06-23 21:13:27 +02:00
Patrice Mandin
e5bbb18441 nv30: add state scissor, based on nv40 one 2008-06-23 20:43:22 +02:00
Patrice Mandin
8b72737a0b nv30: add state rasterizer, based on nv40 one 2008-06-23 20:37:27 +02:00
José Fonseca
d9f38a2ad1 gallium: Use the more portable PIPE_ARCH_* PIPE_CC_* macros instead of ad-hoc ones. 2008-06-24 02:39:17 +09:00
José Fonseca
72b6fddefb gallium: WinCE does not have cosf, sinf, etc. 2008-06-24 02:39:16 +09:00
Brian Paul
25da42a650 gallium: in softpipe_get_tex_surface() use the pitch specified in the softpipe_texture object.
Fixes a pitch/width mix-up.
2008-06-23 11:28:38 -06:00
Jakob Bornecrantz
f52ab4cc22 i915: Add render and texture support for tiled texture and buffers
This is step towards tiled textures and buffer support for
	i915. But the tiled attribute is never set.
2008-06-23 18:36:36 +02:00
Brian Paul
f738c3acac gallium: fix Y-inverted copies
Don't require the caller to pass a non-intuitive negative src_y coord anymore
when doing a src-inverted copy.
2008-06-23 09:47:12 -06:00
Brian Paul
e14126ec81 gallium: change surface_copy()'s do_flip to boolean 2008-06-23 08:54:16 -06:00
Brian Paul
f1601c2b75 gallium: fix bad srcy coord if do_flip 2008-06-23 08:51:00 -06:00
Brian Paul
92d48a4cb9 gallium: fix bad srcy coord if do_flip 2008-06-23 08:44:30 -06:00
Brian Paul
016dbb0cf3 gallium: added some assertions 2008-06-23 08:35:41 -06:00
Jakob Bornecrantz
708bb35194 util: Blit can now copy from texture to surface 2008-06-23 16:09:38 +02:00
Jakob Bornecrantz
f08da6b821 gallium: Fix warning in u_draw_quad.h 2008-06-23 12:31:46 +02:00
Jakob Bornecrantz
d40ff29451 i915: Removed level_offset from i915_texture
All offsets are now on image_offset.
2008-06-23 11:57:34 +02:00
Ben Skeggs
5a01060eb9 nouveau: update for interface changes + hack around gallium x86_64 bustage 2008-06-23 00:14:21 +10:00
Ben Skeggs
aa3ab377e6 Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Conflicts:

	configs/default
2008-06-23 00:01:17 +10:00
Keith Whitwell
e2c3f06e96 draw: fix non-i386 builds 2008-06-22 13:17:01 +01:00
Patrice Mandin
8c26a521ee Update for extra vertex attributes 2008-06-21 22:59:05 +02:00
Patrice Mandin
5fea663b5f nv30: Add state for blend 2008-06-21 12:03:05 +02:00
Patrice Mandin
582b39ebb9 nv30: Update nouveau_class.h to get its proper defines instead of using nv40 ones 2008-06-21 10:11:37 +02:00
Brian Paul
be4259b06c gallium: fix invalid call to draw_set_mapped_constant_buffer()
We were indexing sp_constants[i] outside the loop so i was 2.
Replace i with PIPE_SHADER_VERTEX.
Also, replace magic '2' with PIPE_SHADER_TYPES in a few places.
2008-06-20 17:28:42 -06:00
Brian Paul
f38bb10969 gallium: fix some surface usage bugs
When a surface is created with GPU_WRITE that really means "GPU render"
and that can involve reads (blending).  Set surface usage to
PIPE_BUFFER_USAGE_CPU_READ + WRITE.  Fixes progs/demos/lodbias demo.

Also, mark texture as 'modified' when mapped for writing so that the tile
cache can know when to freshen a cached tile.  Fixes glTexSubImage2D().
2008-06-20 15:58:19 -06:00
Brian Paul
78791d1065 egl: added cpp assertions/sanity checks 2008-06-20 14:30:21 -06:00
Patrice Mandin
5e1d657d50 nv30: Add separate nv30 state stuff for fb, based on nv40 one, need to use it now 2008-06-20 22:19:22 +02:00
Brian Paul
a87e717d0d egl: added null ptr checks 2008-06-20 10:20:47 -06:00
Brian Paul
064001dbe7 egl: use dlsym() to try to identify APIs 2008-06-19 16:26:21 -06:00
Jakob Bornecrantz
8d0329fb6a i915: Fixed cubemap layouts
Apprently we shouldn't do all the advanced layout
	operation for none compressed formats.

	The compressed code was also broken, its currently
	disabled, but should be fixed once i915simple starts
	to support compressed formats.
2008-06-19 17:11:06 +02:00
José Fonseca
6fbfcf9222 gallium: Handle malloc failure. 2008-06-19 23:05:09 +09:00
Jakob Bornecrantz
6cbc2734d1 i915: Refractored and clean up i915_texture.c 2008-06-19 14:43:54 +02:00
José Fonseca
c5bf215b1b gallium: Add extra parenthesis as advised by gcc. 2008-06-19 21:17:33 +09:00
Michal Krol
b440cea343 util: Add missing format names. 2008-06-19 14:08:06 +02:00
José Fonseca
aa816d114e draw: Fix MSVC integer size conversion warning. 2008-06-19 10:47:54 +09:00
Brian Paul
f140138558 gallium: additional fixes to ensure even number of vertices per buffer 2008-06-18 15:08:19 -06:00
Brian Paul
7d7f3e2c94 gallium: split long prims into chunks with an even number of vertices
This fixes culling "parity" errors when splitting long tri strips.  Splitting
strips into chunks with an odd number of vertices causes front/back-face
orientation to get reversed and upsets culling.
2008-06-18 14:55:12 -06:00
Brian Paul
0cf79316d0 egl: omit libmesa.a glapi.c from library 2008-06-18 09:22:01 -06:00
Brian Paul
51f24ef5ba gallium: remove duplicated u_mm.c in file list 2008-06-18 09:22:01 -06:00
Brian Paul
1496bba429 egl: call st_get_proc_address() 2008-06-18 09:22:01 -06:00
Michal Krol
28ac7d37fe gallium: Remove PIPE_FORMAT_A8UB8UG8SR8S_NORM definition. 2008-06-18 08:51:38 +02:00
Jakob Bornecrantz
081c05605f i915: Fix for s8_z24 textures not being shown 2008-06-18 01:48:24 +02:00
Michal Krol
4539410d71 gallium: Add facilities for mixed pipe formats. 2008-06-17 21:48:39 +02:00
Jakob Bornecrantz
5805a9e328 i915: Made region pool a slabpool 2008-06-17 17:46:45 +02:00
Jakob Bornecrantz
d9d1e39d95 i915: Max and Min lod now works 2008-06-17 15:47:01 +02:00
Michal Krol
64d854ebf7 util: Use pf_get_size(). 2008-06-14 09:34:02 +02:00