José Fonseca
73d02d70b8
wgl: Do not provide DllMain inside the state tracker.
...
MS CRT libraries already provide a default DllMain entrypoint, and
MS Linker will complain if it finds the same symbol in two different
libraries. Therefore the DllMain has to be in (each) winsys.
2009-01-08 12:05:20 +00:00
José Fonseca
e59eb5fc96
gdi: Fix warning.
2009-01-08 12:05:17 +00:00
Jonathan Adamczewski
52d5d25537
cell: replace 0 with -1 in SPE_COUNT_USABLE_SPES query
2009-01-06 08:02:55 -07:00
Brian Paul
b7257890dc
cell: fix code emit for RSQ/RCP when src arg == dst arg
...
Fixes moire-like artifacts seen in fslight demo.
2009-01-05 19:51:17 -07:00
Ben Skeggs
cd5d3fde13
nv50: fill image unit index in TEX varients
2009-01-06 08:05:57 +11:00
Ben Skeggs
00b15c9f40
nv50: fix crash in nv50_program_destroy
2009-01-06 08:05:57 +11:00
Ben Skeggs
17cbe451d2
nv50: working towards 3D textures
2009-01-06 08:05:57 +11:00
Ben Skeggs
108942f22a
nv50: slightly better miptree allocation
...
I swear this didn't work last time I tried it.. Anyhow, still only
suitable for 2D miptrees - more coming once I know the layout.
2009-01-06 08:05:57 +11:00
Ben Skeggs
5696267efd
nv50: add TXP to TEX case.. not correct, but anyway..
2009-01-06 08:05:57 +11:00
Ben Skeggs
0d54770cab
nv50: indentation for TEX is a little overenthusiastic
2009-01-06 08:05:57 +11:00
Ben Skeggs
3f66b72fdb
nv50: ensure we actually get contiguous regs for TEX insn.
...
Still many more horrible things to fix here...
2009-01-06 08:05:57 +11:00
Jonathan Adamczewski
785e90a7dc
cell: SIMDize sorting in setup_sort_vertices()
...
Put setup.v{min,mid,max,provoke} into a union with qword vertex_headers.
Rewrite vertex sorting to more efficiently handle the packed data items.
Reduces spu_tri.o by ~128 bytes.
2009-01-05 07:52:59 -07:00
Jonathan Adamczewski
90167d0ee9
cell: SIMDize some subtractions
...
Put edge.{dx,dy} into a union with a vector and perform subtractions in
setup_sort_vertices() on vectors.
Reduces spu_tri.o by ~300 bytes.
2009-01-05 07:52:59 -07:00
Jonathan Adamczewski
bd2e8888ed
cell: improvements to spu_tri.c
...
Replace int setup.span{left,right}[2] with vec_uint4 setup.span.quad
SIMDize calculate_mask() and inline into into flush_spans()
Set setup.span.quad members using spu_shuffle() or spu_sel().
Reduces spu_tri.o by ~116 bytes.
2009-01-04 18:48:46 -07:00
Jonathan Adamczewski
921ec940f0
cell: new spu_shuffle.h header
...
Facilitates creation of shuffle patterns for use with spu_shuffle()
and si_shufb() intrinsics.
To be used by subsequent patches.
2009-01-04 18:46:44 -07:00
Brian Paul
8f6e2f8620
cell: initial codegen support for fragment shader loops
...
Basic for/while loops work now.
Only one level of loop nesting is supported at this time (same for if/else).
The progs/glsl/mandelbrot demo works, but the colors are too dim.
2009-01-04 18:40:48 -07:00
Brian Paul
38b526999c
cell: add support for PIPE_CAP_TEXTURE_MIRROR_REPEAT query
...
We don't really support this texwrap mode yet, but this enables GL 2.1
2009-01-04 18:38:42 -07:00
Brian Paul
7ba6869308
cell: clean-up, improve SPU code generation
...
Start on ARL and address-relative indexing too.
2009-01-04 10:14:19 -07:00
Brian
9832f92850
cell: fix typo (s/10/0)
2009-01-03 14:44:34 -07:00
Brian Paul
19aed38919
softpipe: increase number of texture samplers/units to PIPE_MAX_SAMPLERS (16)
2009-01-02 16:55:33 -07:00
José Fonseca
1d77835668
python: Pass a zero offset to util_draw_vertex_buffer.
2008-12-31 15:03:35 +00:00
José Fonseca
e96985b026
util: List new file in SConscript.
2008-12-31 13:29:09 +00:00
José Fonseca
e228433823
Merge commit 'origin/gallium-0.1' into gallium-0.2
2008-12-31 13:06:22 +00:00
José Fonseca
43d70a12d4
i915: Avoid ptr->int conversion.
2008-12-31 13:02:06 +00:00
José Fonseca
2f24bc6984
draw: Avoid integer overflow converting pointers on 64bit archs.
...
Not really an error, as we only care for the lower 4 bits.
2008-12-31 13:02:06 +00:00
José Fonseca
369115e4c7
gallium: Initialize var before use.
2008-12-30 19:21:30 +00:00
José Fonseca
72f993b5b1
draw: Do not specify types in bitfields.
...
As advised by gcc -pedantic.
2008-12-30 17:21:15 +00:00
José Fonseca
0e0fb49c45
gallium: Remove unused variables.
2008-12-30 17:15:34 +00:00
José Fonseca
b3b7c757a9
gallium: Don't redefine INLINE.
...
INLINE is commonly used in third-party headers.
2008-12-30 17:14:48 +00:00
José Fonseca
42d0079002
rtasm: Remove spurious semi-colons after function bodies.
2008-12-30 17:06:51 +00:00
José Fonseca
8e63beff56
gdi: Remove accidental keypresses.
2008-12-30 16:35:46 +00:00
José Fonseca
417a78bdad
softpipe: Don't fill surfaces's winsys fields.
...
This is sometimes checked to distinguish between texture views and
(deprecated) standalone surfaces.
2008-12-22 20:23:59 +00:00
José Fonseca
fc16ba8553
softpipe: Call surface_alloc_storage to get the pipebuffer for display targets.
...
Otherwise blitting from display target surfaces to front screen fails in
several platforms.
2008-12-22 20:20:58 +00:00
José Fonseca
9136c9b29e
Merge commit 'origin/gallium-0.1' into gallium-0.2
...
Conflicts:
src/gallium/auxiliary/util/Makefile
2008-12-22 19:31:52 +00:00
José Fonseca
ce8469abeb
gdi: Cleanup sconsfile.
2008-12-22 19:27:36 +00:00
Jerome Glisse
5f36c5b2c5
softpipe: initialize refcount and winsys
2008-12-22 18:56:20 +00:00
Jerome Glisse
85bc49a6f1
softpipe: convert to use texture instead of surface
2008-12-22 18:56:09 +00:00
José Fonseca
ae7e75d610
gallium: const correctness.
2008-12-22 16:55:27 +00:00
José Fonseca
9127a03bcb
gallium: Fix typo in define name.
2008-12-20 12:59:51 +00:00
Brian Paul
9c8db86854
gallium: begin adapting Ian's 3D mipmap gen code to gallium utility lib
...
Unfinished, a big no-op for now.
2008-12-19 16:56:35 -07:00
Brian Paul
e8d8060988
gallium: Fix typeo in mipmap filter for GL_UNSIGNED_SHORT_1_5_5_5_REV
...
This is copied from Ian's commit a330933bb7
2008-12-19 16:56:34 -07:00
José Fonseca
b901e1f212
gallium: Simple and efficient cache.
...
Fixed size hash table. Collisions are handled by simply destroying the
previous entry.
It hasn't received much testing yet.
2008-12-19 20:06:11 +00:00
Brian Paul
93afa77945
cell: fix build breakage
2008-12-19 08:01:53 -07:00
Brian Paul
030a7a320c
gallium: replace #elif with #else
2008-12-19 07:33:17 -07:00
Brian Paul
42f7fd7d81
gallium: replace #elif with #else
2008-12-19 07:32:52 -07:00
Brian Paul
59a168d5c9
tgsi: scan for additional info: uses_fogcoord, uses_frontfacing
2008-12-18 18:08:32 -07:00
Brian Paul
db99ca3bc9
tgsi: scan for additional info: uses_fogcoord, uses_frontfacing
2008-12-18 18:06:38 -07:00
Jerome Glisse
26b5e92c30
softpipe: initialize refcount and winsys
2008-12-18 19:56:45 +01:00
Robert Ellison
36c7bb697d
Gallium: fix for conform test
...
The following construction in util_surface_copy() in
gallium/auxiliary/util/u_rect.c, introduced in commit
d177c9ddda , incorrectly inverts
the Y coordinate in the last parameter to pipe_copy_rect().
/* If do_flip, invert src_y position and pass negative src stride
*/
pipe_copy_rect(dst_map,
&dst->block,
dst->stride,
dst_x, dst_y,
w, h,
src_map,
do_flip ? -(int) src->stride : src->stride,
src_x,
do_flip ? w - src_y : src_y);
The intention is to start at the last Y coordinate line and move
backwards, in the case of a flip; in that case, the correct
calculation is "src_y + h - 1", not "w - src_y".
This fixes a Gallium assertion failure in the conformance tests:
u_rect.c:65:pipe_copy_rect: Assertion `src_y >= 0' failed.
debug_get_bool_option: GALLIUM_ABORT_ON_ASSERT = TRUE
Trace/breakpoint trap
2008-12-18 11:25:27 -07:00
Jerome Glisse
b7c05044ed
softpipe: convert to use texture instead of surface
2008-12-18 18:30:53 +01:00