Brian
0ee512aaf0
code re-org in softpipe_clear()
2007-12-09 12:05:28 +11:00
Brian
92e7a02e5a
clean-ups
2007-12-09 12:05:27 +11:00
Brian
7c8cc71a28
Tile clearing optimizations.
...
Clear using int values rather than floats when possible. Better performance now.
2007-12-09 12:05:27 +11:00
Brian
77c7fd3cec
Disable, remove tnl module from the Gallium build since no longer used.
2007-12-09 12:05:27 +11:00
Brian
5e46b252b9
New vbo_set_draw_func() to keep vbo context opaque to state tracker and tnl module.
2007-12-09 12:05:27 +11:00
Brian
75ec482001
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-09 12:05:27 +11:00
Brian
2636ea5758
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-09 12:05:27 +11:00
Brian
61d1972dd0
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-09 12:05:27 +11:00
Brian
144b70b0b5
include tgsi_dump.h
2007-12-09 12:05:27 +11:00
Brian
cfe0ebe1c0
Replace "duplicate" formats
2007-12-09 12:05:27 +11:00
Brian
2edf1b8e71
Get rid of "duplicate" formats.
...
For example, replace PIPE_FORMAT_U_A8_R8_G8_B8 with PIPE_FORMAT_A8R8G8B8_UNORM
2007-12-09 12:05:27 +11:00
Brian
382ced1600
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-09 12:05:27 +11:00
Brian
7bbc3ef7ec
Make sp_tile_cache_flush_clear() static.
...
Also, misc clean-ups, comments.
2007-12-09 12:05:27 +11:00
Brian
7655486c88
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-09 12:05:27 +11:00
Brian
dfc21b2efb
Some tile cache improvements, clean-ups.
...
Code for optimized clears (per-tile flag indicating clear status) in place
but not enabled yet.
2007-12-09 12:05:27 +11:00
Brian
f36258d7e1
don't dereference pt after realloc - fixes valgrind error
2007-12-09 12:05:27 +11:00
Brian
1eb78225c4
add some whitespace
2007-12-09 12:05:26 +11:00
Brian
0d74d51790
Move struct softpipe_texture definition into sp_texture.h
...
Also, added softpipe_texture() cast wrapper.
2007-12-09 12:05:26 +11:00
Brian
99823680a5
minor code movement
2007-12-09 12:05:26 +11:00
Brian
03dcde4caa
Add PIPE_FORMAT_U_B8_G8_R8_A8 in default_rgba_format().
...
Also, rewrite/simplify default_rgba_format() and default_depth_format().
2007-12-09 12:05:26 +11:00
Brian
f1285f238a
byteswapping fixes in choose_pixel_format()
2007-12-09 12:05:26 +11:00
Brian
5002d1eb88
remove stray ;
2007-12-09 12:05:26 +11:00
Brian
5f512d9423
Remove obsolete xlib driver files
2007-12-09 12:05:26 +11:00
Brian
2a9c33f9fe
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-09 12:05:26 +11:00
Brian
6397bef076
added ST_SURFACE_DEPTH
2007-12-09 12:05:26 +11:00
Brian
a09224258a
move surface pitch calculation so it always gets updated
2007-12-09 12:05:26 +11:00
Brian
6cb181dc15
fix void pointer arithmetic warnings
2007-12-09 12:05:26 +11:00
Brian
a775689036
silence void ptr arithmetic warning
2007-12-09 12:05:26 +11:00
Michel Dänzer
0a44a3fa2f
Eliminate struct pipe_region.
...
Directly use struct pipe_buffer_handle for storage and struct pipe_surface for
(un)mapping.
2007-12-09 12:05:26 +11:00
Michel Dänzer
7f984e1d2a
Remove remnants of 'intel' from active state tracker code.
2007-12-09 12:05:26 +11:00
Michel Dänzer
b57632f04e
st_mesa_format_to_pipe_format: Handle MESA_FORMAT_ARGB4444.
2007-12-09 12:05:25 +11:00
Michel Dänzer
274603c5c9
Hide texture layout details from the state tracker.
...
pipe->get_tex_surface() has to be used for access to texture image data.
2007-12-09 12:05:25 +11:00
Brian
6f44a21348
Add dependency checking for Cell driver sources.
2007-12-09 12:05:25 +11:00
Brian
5cb7186730
silence warning
2007-12-09 12:05:25 +11:00
Brian
dc76fe436c
added PIPE_FORMAT_U_B8_G8_R8_A8 case in color_value()
2007-12-09 12:05:25 +11:00
Brian
64a1d5cbd1
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-09 12:05:25 +11:00
Brian
ecd0853a09
added B8G8R8A8 support and improved pixel format selection when doing remote display to X server of different endianness.
2007-12-09 12:05:25 +11:00
Brian
4f25c76735
added tile funcs for B8G8R8A8 format
2007-12-09 12:05:25 +11:00
Brian
7f9a64e247
added B8G8R8A8 format
2007-12-09 12:05:25 +11:00
Brian
264f64fd89
added -fPIC
2007-12-09 12:05:24 +11:00
Brian
0d2ba87b54
don't build libglw
2007-12-09 12:05:24 +11:00
Brian
1698cbde30
Initial Cell driver infrastructure.
...
No real code yet. Just stand-ins and make/build infrastructure.
2007-12-09 12:05:24 +11:00
Brian
e5d8ee205a
glut doesn't need -lXt
2007-12-09 12:04:36 +11:00
José Fonseca
c989209b6a
Cover state tracker and winsys driver. Tweak parameters.
2007-12-09 12:04:36 +11:00
Michel Dänzer
72513ae3a7
Move dimensions from struct pipe_region to struct pipe_surface.
2007-12-09 12:04:36 +11: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