Younes Manton
0b03cd4ea7
nouveau: Update nv30 swizzling.
2009-01-10 14:09:59 -05:00
Younes Manton
8ee238be75
nouveau: Factor out common winsys bits into libnouveaudrm.a
2009-01-10 13:52:07 -05:00
Younes Manton
734b3cb182
g3dvl: Use Gallium thread wrappers.
2009-01-10 13:52:07 -05:00
Younes Manton
1e9c3efcc7
g3dvl: Use Gallium MALLOC wrappers.
2009-01-10 13:52:07 -05:00
Younes Manton
db1021a37c
g3dvl: Get rid of old unbuffered motion compensation code.
2009-01-10 13:52:06 -05:00
Younes Manton
3c1b790c31
g3dvl: Map vertex bufs once per frame/flush.
2009-01-10 13:52:06 -05:00
Younes Manton
9beb004885
nouveau: Catch some more leaks.
2009-01-10 13:52:06 -05:00
Younes Manton
87e39466dc
g3dvl: Allocate one set of bufs, let winsys rename them as necessary.
2009-01-10 13:52:06 -05:00
Younes Manton
af2a856caa
nouveau: Add busy() query, determines if BOs can be mapped immediately.
2009-01-10 13:52:05 -05:00
Younes Manton
7289c388f4
nouveau: Use PIPE_BUFFER_USAGE_CPU_* instead of custom.
2009-01-10 13:52:05 -05:00
Younes Manton
0e1301ec8f
g3dvl: Expand YCbCr to full RGB range by default.
2009-01-10 13:52:05 -05:00
Younes Manton
ebd38dd0d6
g3dvl: Flag textures holding incoming data as dynamic.
2009-01-10 13:52:05 -05:00
Younes Manton
34c0281879
nouveau: Put dynamic textures in GART for CPU access and don't swizzle.
...
Also flag shadows as dynamic since they're for CPU access as well.
2009-01-10 13:52:05 -05:00
Younes Manton
fbf418d9dc
gallium: Define PIPE_TEXTURE_USAGE_DYNAMIC.
...
Knowing how the client intends to use the texture will give the
driver the opportunity to optimize for such cases.
2009-01-10 13:52:04 -05:00
Younes Manton
72aa42e594
nouveau: Swizzle textures larger than nv04 SIFM limit in parts.
...
Limit of SIFM on nv40 is 1024x1024, not sure about others.
2009-01-10 13:52:04 -05:00
José Fonseca
7844b4e730
draw: Add missing include.
2009-01-09 21:35:09 +00:00
José Fonseca
500e05d437
gdi: Add newline at end of file.
2009-01-08 12:42:00 +00:00
José Fonseca
ab3a9f1eed
gallium: Replace uint64 by standard uint64_t.
...
uint64 is not (so?) standard, and often redefined by third parties,
causing name clashes.
2009-01-08 12:41:45 +00:00
José Fonseca
395edbc515
draw: Predeclare struct.
2009-01-08 12:31:36 +00:00
José Fonseca
a3ee0aa1bb
Merge commit 'origin/gallium-0.1' into gallium-0.2
...
Conflicts:
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/drivers/cell/spu/spu_command.h
src/gallium/include/pipe/p_shader_tokens.h
src/mesa/main/config.h
src/mesa/main/mtypes.h
src/mesa/shader/prog_execute.c
src/mesa/shader/slang/slang_emit.c
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/wgl/stw_wgl.h
src/mesa/state_tracker/wgl/stw_wgl_pixelformat.h
2009-01-08 12:31:14 +00:00
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
José Fonseca
5da0401398
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-06 18:23:17 +00:00
José Fonseca
a40ad7ded4
gdi: Fix warning.
2009-01-06 18:23:16 +00:00
Brian Paul
b8cf2f0076
gallium: added centroid/invarient fields to declarations
...
(cherry picked from commit 4de360e67d )
2009-01-06 09:01:18 -07:00
Brian Paul
dc48ae97dc
tgsi: add tgsi_declaration fields for centroid sampling, invariant optimization
...
(cherry picked from commit 434e255eae )
2009-01-06 08:57:28 -07:00
Brian Paul
62bf6cf6c7
gallium: Fix typeo in mipmap filter for GL_UNSIGNED_SHORT_1_5_5_5_REV
...
This is copied from Ian's commit a330933bb7
2009-01-06 08:08:26 -07: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