Commit graph

115447 commits

Author SHA1 Message Date
Ben Skeggs
e282d22d51 nv40: insanely stupid bug.. 2007-12-11 19:06:00 +11:00
Ben Skeggs
c23d0f4c50 nv40: allow reading from fragprog result regs 2007-12-11 16:02:14 +11:00
Ben Skeggs
b34952c758 nv40: depth textures 2007-12-11 14:53:37 +11:00
Ben Skeggs
ce0e274c7c nv40: some forgotten adaptions 2007-12-11 14:08:42 +11:00
José Fonseca
12363674e5 Add surface storage allocation function to winsys interface. 2007-12-11 01:14:38 +00:00
José Fonseca
609538f57c Add inline funtion to comput format size based on code in st_format.c.
Including state_tracker/st_format.h from pipe drivers is not an option
since it uses GL* types and pipe/p_util.h will clash with main/imports.h.
2007-12-11 00:51:12 +00:00
Brian
7d1894c655 Cell: first triangle.
This is a feeble first step, but it works.
The cell_clear_surface() function has been hijacked to set up a "draw triangle"
command and send it to all the SPUs.
The Gallium softpipe triangle code was copied to the SPU module and modified.
Only the progs/trivial/clear.c program runs.
2007-12-10 17:32:43 -07:00
Brian
aef25b1994 set window size to 256x256 2007-12-10 17:32:43 -07:00
Brian
c9f9c50980 XXX comments about some hard-coded values that need to be fixed 2007-12-10 17:32:43 -07:00
Brian
5d41a71392 minor clean-ups, comments 2007-12-10 17:32:43 -07:00
Ben Skeggs
4bc3cfaaf0 nouveau: fix build 2007-12-11 10:04:39 +11:00
Ben Skeggs
fe9f4f49ef Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1
Conflicts:

	src/mesa/drivers/dri/Makefile.template
2007-12-11 10:01:59 +11:00
Eric Anholt
ffee86f697 [965] Hook up DEBUG_BUFMGR output for bufmgr_fake. 2007-12-10 14:58:53 -08:00
Keith Whitwell
0a79c65073 gallium: use hardcoded cliptest code for fixed planes 2007-12-10 22:38:44 +00:00
Keith Whitwell
f2feb2e4c7 gallium: disable assert(0) in xmesa_surface() 2007-12-10 22:27:04 +00:00
Keith Whitwell
7c306afdaa gallium: remove unnecessary guards on qs->next 2007-12-10 22:02:10 +00:00
Brian
e53303ba3b Cell driver state-setter functions, basic tile get/put, glClear.
The state setting code was mostly just copied from the softpipe driver.
The SPUs can now get/put framebuffer tiles from/to main memory and clear
them to a given color.  Lots of debug code in effect.
Tiled framebuffer is displayed in X window via the xmwinsys layer.
To enable Cell driver, export GALLIUM_CELL=1
2007-12-10 14:25:30 -07:00
Brian
e248f94050 remove ~ backup files 2007-12-10 14:19:35 -07:00
Brian
36ef54deae remove -Wall, add -DGALLIUM_CELL 2007-12-10 14:10:29 -07:00
Brian
4f58d9af9a Add 'type' parameter to is_format_supported() to specify texture vs. drawing surface, etc.
Additional types may be added in the future.
2007-12-10 13:48:09 -07:00
Brian
f26936b352 disable assertion in sp_tile_cache_set_surface() for now 2007-12-10 13:45:24 -07:00
Brian
4ccd3124f6 implement i915_put_tile_rgba() - temporary code though 2007-12-10 13:42:34 -07:00
Brian
1b20b2d53b don't use get/put_tile_rgba() for accum buffer accesses 2007-12-10 13:41:19 -07:00
Michel Dänzer
37484a3874 Fix up some confusion wrt winsys->buffer_create alignment / flags parameters.
intel_winsys works again.
2007-12-10 17:36:59 +01:00
Michel Dänzer
41ce1f8fb3 Link fewer common objects into Gallium winsys layers.
These are useless or even harmful due to referencing symbols no longer
available in the Gallium build.
2007-12-10 17:36:59 +01:00
Ben Skeggs
18fe9776b4 Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1 2007-12-10 21:09:52 +11:00
Ben Skeggs
f7195b3232 Correct user VBO size. 2007-12-10 21:08:42 +11:00
Michel Dänzer
913703d4b8 Remove stray references to struct pipe_region. 2007-12-10 09:31:43 +01:00
Ben Skeggs
aab6f8f948 nv40: more flexible vbo format translation 2007-12-10 16:47:47 +11:00
Ben Skeggs
9d651164d8 Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1 2007-12-10 16:30:24 +11:00
Brian
63e2ab83f6 use quadColor local var 2007-12-09 21:44:26 -07:00
Ben Skeggs
3b2598c70b nouveau: fix elusive dma bug
In some situations WAIT_RING would get called while the GPU was processing
data from outside the "master" ring, which caused dma.free to be updated
incorrectly and much fun was had.

WAIT_RING will now wait until it reads GET values from within the main ring
buffer before calculating free space.
2007-12-10 15:17:20 +11:00
Brian
9884838273 Fix looping for multi-color buffer writing. 2007-12-09 21:10:39 -07:00
Brian
04e88f469c added null ptr check in draw_destroy() for rasterizer stage 2007-12-09 20:45:20 -07:00
Ben Skeggs
7d8368790f nouveau: add callbacks for signalled fences 2007-12-10 13:19:47 +11:00
Ben Skeggs
9ba3890c6f nouveau: fix build 2007-12-10 12:13:00 +11:00
Ben Skeggs
5c1a5b5047 Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1
Conflicts:

	src/mesa/drivers/dri/intel_winsys/intel_winsys_pipe.c
	src/mesa/pipe/Makefile
	src/mesa/pipe/draw/draw_vertex_fetch.c
	src/mesa/pipe/i915simple/i915_texture.c
	src/mesa/pipe/softpipe/sp_texture.c
	src/mesa/pipe/xlib/xm_winsys.c
	src/mesa/state_tracker/st_cb_fbo.c
2007-12-10 12:06:59 +11:00
José Fonseca
f8f9580a2a Adapt for winsys interface changes. 2007-12-09 18:26:26 +00:00
Ben Skeggs
1a3987240a nouveau: give resources a start property 2007-12-10 02:10:42 +11:00
José Fonseca
de7e51ff98 gallium: use SSE by default 2007-12-09 14:06:01 +00:00
Michal
6cdcebe801 Allow tgsi_dump print-out to stderr or a string buffer.
Handle source register complement modifier in exec and dump.
2007-12-09 14:06:01 +00:00
José Fonseca
273f6e7698 gallium: Remove buffer_unfence and buffer_finish.
These interfaces have been deemed useless by Keith.
2007-12-09 14:06:00 +00:00
Keith Whitwell
b1399a5dd2 gallium: more trivial tests 2007-12-09 14:06:00 +00:00
José Fonseca
b478362251 gallium: Reusable pipe buffer library.
This is an optional library that winsys drivers can use to simplify memory
management, and help meet the winsys interface requirements.
2007-12-09 14:06:00 +00:00
Keith Whitwell
708582f6d5 gallium: fix ordering of arguments to pack_ui32_float4 2007-12-09 14:05:12 +00:00
Keith Whitwell
56bc8d9199 gallium: remove unneeded depth buffer 2007-12-09 14:05:12 +00:00
Keith Whitwell
bbecce52f8 gallium: initialized draw element buffer to NULL 2007-12-09 14:05:12 +00:00
Keith Whitwell
da47ad07ef gallium: add support for aliased 4ub format 2007-12-09 14:05:12 +00:00
Keith Whitwell
73a0594276 gallium: support the full range of possible vertex types 2007-12-09 14:03:34 +00:00
Michal
d754548406 gallium: add draw_stage::destroy(). 2007-12-09 14:03:34 +00:00