Commit graph

12693 commits

Author SHA1 Message Date
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
José Fonseca
74fe189b2e gallium: Comment on winsys's fence functions. Fix comment layout for doxygen. 2007-12-09 14:03:34 +00:00
keithw
6e876d1d32 temporary _mesa_printf symbol 2007-12-09 14:03:34 +00:00
keithw
e87efe7407 [pipe]: add Offset() util macro 2007-12-09 14:03:33 +00:00
José Fonseca
79ad82477a Document return types. 2007-12-09 14:03:33 +00:00
keithw
cd1eefee84 add fence interfaces and buffer create flags to pipe_winsys 2007-12-09 14:03:33 +00:00
Brian
f83d4e7bde Try to reduce the frequency of calls to pipe->get_tex_surface()
Save the surface info in the tile cache and re-use whenever possible.
2007-12-07 21:21:58 -07:00
Brian
a110789f3e shorten loops over color bufs 2007-12-07 20:58:01 -07:00
Brian
5d4b53b3af code re-org in softpipe_clear() 2007-12-07 20:31:26 -07:00
Brian
d1d9156831 clean-ups 2007-12-07 20:24:24 -07:00
Brian
127a493fe2 Tile clearing optimizations.
Clear using int values rather than floats when possible.  Better performance now.
2007-12-07 20:13:10 -07:00
Brian
51537e0b6e Disable, remove tnl module from the Gallium build since no longer used. 2007-12-07 17:26:06 -07:00
Brian
c885775cae New vbo_set_draw_func() to keep vbo context opaque to state tracker and tnl module. 2007-12-07 17:24:42 -07:00
Brian
40e9c57d31 Disable swrast, swrast_setup and driverfuncs in the build.
The gallium/state tracker no longer uses them and this speeds up the build a bit.
2007-12-07 17:14:02 -07:00
Brian
2d2bb35f96 Move _mesa_init_glsl_driver_functions() into shader_api.c
This allows making a bunch of functions static, and removes a state
tracker dependency on driverfuncs.c
2007-12-07 17:11:30 -07:00
Brian
54fc80ab31 Define PIPE_FORMAT_ tokens as an enum set, rather than #defines.
This makes debugging a _lot_ easier.
In gdb, "print format" used to display 613570600, now you see PIPE_FORMAT_A8R8G8B8_UNORM.
2007-12-07 16:46:30 -07:00
Brian
6070a0eb2b include tgsi_dump.h 2007-12-07 16:22:39 -07:00
Brian
d3e05111c8 Replace "duplicate" formats 2007-12-07 16:15:14 -07:00
Brian
2067eed9d3 Get rid of "duplicate" formats.
For example, replace PIPE_FORMAT_U_A8_R8_G8_B8 with PIPE_FORMAT_A8R8G8B8_UNORM
2007-12-07 16:01:31 -07:00
Brian
099bf3ffe9 Enable the tile clear "optimization"
Not really faster yet because we're using the float-valued put/get_tile()
functions so we're doing quite a bit of float/int conversion.  That can
be fixed though...
2007-12-07 15:47:39 -07:00
Brian
872caf6089 Make sp_tile_cache_flush_clear() static.
Also, misc clean-ups, comments.
2007-12-07 15:46:10 -07:00
Brian
c69c7a6054 Convert the clearValue back to floats for sp_tile_cache_clear()
It might be nice if sp->clear() took the color/value as floats...
2007-12-07 15:44:58 -07:00
Brian
57df347bb8 Some tile cache improvements, clean-ups.
Code for optimized clears (per-tile flag indicating clear status) in place
but not enabled yet.
2007-12-07 15:32:13 -07:00
Brian
dd87c43a44 don't dereference pt after realloc - fixes valgrind error 2007-12-07 13:19:00 -07:00
Brian
e6b5cf342e add some whitespace 2007-12-07 13:08:28 -07:00
Brian
4c90dc7027 Move struct softpipe_texture definition into sp_texture.h
Also, added softpipe_texture() cast wrapper.
2007-12-07 10:21:56 -07:00
Brian
94a3cb078d minor code movement 2007-12-07 10:18:34 -07:00
Brian
da3dfe58b2 Add PIPE_FORMAT_U_B8_G8_R8_A8 in default_rgba_format().
Also, rewrite/simplify default_rgba_format() and default_depth_format().
2007-12-07 08:28:59 -07:00
Brian
0d1669f530 byteswapping fixes in choose_pixel_format() 2007-12-07 08:24:56 -07:00
Brian
9772bb7f71 remove stray ; 2007-12-07 08:24:33 -07:00
Brian
e920f367ed Remove obsolete xlib driver files 2007-12-07 07:58:31 -07:00
Brian
749d723287 Overhaul the Xlib winsys layer.
Front/back color buffers are now allocated with ordinary malloc() via the
winsys buffer functions.
To display surfaces in SwapBuffers() or flush_frontbuffer() we create an
XImage that wraps the surface, then use XPutImage to copy to the window.
Shared memory transport disabled for now.
2007-12-07 07:57:54 -07:00
Brian
f77ce9e4fa added ST_SURFACE_DEPTH 2007-12-07 07:53:21 -07:00
Brian
ee6b39cfe6 move surface pitch calculation so it always gets updated 2007-12-07 07:53:06 -07:00
Brian
5823f99d0f fix void pointer arithmetic warnings 2007-12-07 07:52:35 -07:00
Brian
b9300f16c4 silence void ptr arithmetic warning 2007-12-07 07:48:33 -07:00
Michel Dänzer
b859cdf6f1 Eliminate struct pipe_region.
Directly use struct pipe_buffer_handle for storage and struct pipe_surface for
(un)mapping.
2007-12-07 12:30:35 +01:00
Michel Dänzer
987d59bb83 Remove remnants of 'intel' from active state tracker code. 2007-12-06 11:30:34 +01:00
Michel Dänzer
d492b388c9 st_mesa_format_to_pipe_format: Handle MESA_FORMAT_ARGB4444. 2007-12-06 11:25:40 +01:00
Michel Dänzer
753db0d840 Hide texture layout details from the state tracker.
pipe->get_tex_surface() has to be used for access to texture image data.
2007-12-06 11:18:11 +01:00