Commit graph

10507 commits

Author SHA1 Message Date
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
Brian
5935626818 Add dependency checking for Cell driver sources. 2007-12-05 14:57:19 -07:00
Brian
ce30f0550f silence warning 2007-12-05 14:54:29 -07:00
Brian
146483d541 added PIPE_FORMAT_U_B8_G8_R8_A8 case in color_value() 2007-12-05 14:54:19 -07:00
Brian
3eadbe64bf Fix endianness bug in _mesa_texstore_argb8888()
On big-endian, storing in _mesa_texformat_argb8888 format produced wrong results.
Also, clean-up nearby code to match.
2007-12-05 14:53:19 -07:00
Brian
9df0a6dd9c added B8G8R8A8 support and improved pixel format selection when doing remote display to X server of different endianness. 2007-12-05 14:51:08 -07:00
Brian
04516cfcaf added tile funcs for B8G8R8A8 format 2007-12-05 14:48:09 -07:00
Brian
fa3fc81f2c added B8G8R8A8 format 2007-12-05 14:47:27 -07:00
Brian
88b715b049 Initial Cell driver infrastructure.
No real code yet.  Just stand-ins and make/build infrastructure.
2007-12-02 15:23:51 -07:00
Michel Dänzer
11a80160fd Move dimensions from struct pipe_region to struct pipe_surface. 2007-11-29 16:41:39 +01:00
Michal Krol
7043db677f Cleanup PIPE_FORMAT names.
Add a function that builds a display name of a given format token.
2007-11-24 16:02:31 +00:00
Michal Krol
b3dee0185e gallium: remove sp_headers.h references. 2007-11-23 13:48:12 +00:00
Michal Krol
abd5e8e41d gallium: reorg tgsi directories. 2007-11-23 13:28:16 +00:00
Michal Krol
44519be0f5 gallium: back out winsys interface changes 2007-11-23 13:27:20 +00:00
José Fonseca
9924f208cf Use the new vertex buffer draw stage. 2007-11-22 11:57:31 +00:00
José Fonseca
1a8daf0627 New vertex buffer stage. 2007-11-22 11:46:32 +00:00
José Fonseca
45f658f172 Fix build. 2007-11-22 11:44:13 +00:00
José Fonseca
369ff9786d The right include was mtypes.h. 2007-11-22 11:44:00 +00:00
José Fonseca
c584142543 Fix build errors. 2007-11-22 11:43:58 +00:00
Michal
0e31e24659 Fix compatibility issues between gcc and msvc. 2007-11-22 11:43:04 +00:00
Michal
5961732c1b Make it compile under Win32. 2007-11-22 11:18:02 +00:00
José Fonseca
4541ee5343 Remove fences from the i915simple winsys interface.
Fences will be part of the pipe winsys interface, so remove this to avoid
merge conflicts later on.

This reverts commit ca7f68a7cf.
This reverts commit dec60d33b2.
This reverts commit 90dd0cb822.
2007-11-22 10:56:09 +00:00
Brian
2112191d45 more simplification, clean-up in draw_set_vertex_info() 2007-11-21 16:03:16 -07:00
Brian
9f0b5bba70 Replace draw_set_vertex_attributes() with simpler draw_set_vertex_info().
Just pass in the vertex_info object and make a copy of it.
2007-11-21 16:00:57 -07:00
Brian
fbe68bf6b2 Simplify draw module's vertex_info.
No longer store the vertex header and clip pos info in the draw module's
vertex_info.  The vertex_info just describes the data[] elements.
This simplifies the code in several places.
2007-11-21 15:40:20 -07:00
Brian
5a6017d496 add PIPE_FORMAT_Z24_S8 support to softpipe patsh 2007-11-20 08:36:06 -07:00
Brian
0191570f02 initial support for PIPE_FORMAT_Z24_S8 2007-11-20 08:30:10 -07:00
Brian
c4f9fbb57f optimize earlyz_quad(), add comments, remove unneeded #includes 2007-11-19 18:16:07 -07:00