Commit Graph

29 Commits

Author SHA1 Message Date
Keith Whitwell
c9ed86a964 gallium: tex surface checkpoint 2008-05-01 12:00:45 +01:00
Brian Paul
7f5e9d3f07 gallium: check for PIPE_FORMAT_X8Z24_UNORM format 2008-04-28 09:40:26 -06:00
Brian Paul
7a8ad75c89 gallium: fix readback of z16 values 2008-04-10 10:30:46 -06:00
Brian Paul
311e402684 gallium: more elaborate tracking of front color buffer state
This fixes the case where the app calls SwapBuffers then calls glReadPixels
to read the front color buffer.  We now keep track of when the front buffer
is a _logically_ copy of the back buffer (after SwapBuffers) and read from
the back color buffer instead of the front.
2008-04-09 18:39:51 -06:00
Brian Paul
e8823bb7df gallium: include st_cb_bitmap.h to silence warning 2008-04-03 12:52:55 -06:00
Brian Paul
0bc2e2c9cd gallium: call st_flush_bitmap_cache() 2008-04-03 12:01:53 -06:00
Michel Dänzer
4abe1eb980 gallium: Change pipe->flush() interface to optionally return a fence.
The cell driver still uses an internal CELL_FLUSH_WAIT flag, in the long run
proper fencing should be implemented for it.
2008-03-26 09:36:40 +00:00
Brian
a39091bc5b Refactor PBO validate/map code.
We always need to do PBO validation, so do that in core Mesa before calling driv
er routine.
cherry-picked from Mesa/master.
2008-03-21 14:20:07 -06:00
Brian Paul
f1626f0bfd gallium: implement PBO operations for glDraw/ReadPixels and glBitmap
At this time there are no optimizations for directly blitting between
buffer objects and surfaces (always go through mappings).
glean pbo test passes now
2008-03-21 13:44:27 -06:00
José Fonseca
6acd63a498 Code reorganization: update build.
Update the Makefiles and includes for the new paths.

Note that there hasn't been no separation of the Makefiles yet, and make is
jumping all over the place. That will be taken care shortly. But for now, make
should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm
might require some minor tweaks.
2008-02-15 17:50:12 +09:00
Brian
9af687c530 gallium: fix/finish glReadPixels(GL_DEPTH_COMPONENT).
This fixes demos/reflect ('d' key) and tests/zreaddraw.c
2008-02-12 17:44:57 -07:00
Michel Dänzer
2014e0bacb Remove pipe->get/put_tile_rgba.
pipe_get/put_tile_rgba() now use pipe->get/put_tile internally.

Also simplify the <format>_get/put_tile_rgba() helper functions and clean up
some inconsitencies in them.
2008-01-14 18:12:58 +01:00
Michel Dänzer
c76efb96b4 Remove mapping fields from struct pipe_surface.
It's now the responsibility of surface users to keep track of their mappings.
2008-01-14 18:12:58 +01:00
Keith Whitwell
a85535b7cb gallium: make state tracker explictly ask for rendercache flushes 2007-12-20 13:47:46 +00:00
Brian
d3e05111c8 Replace "duplicate" formats 2007-12-07 16:15:14 -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
11a80160fd Move dimensions from struct pipe_region to struct pipe_surface. 2007-11-29 16:41:39 +01:00
Brian
0191570f02 initial support for PIPE_FORMAT_Z24_S8 2007-11-20 08:30:10 -07:00
Brian
ee80e0b620 Move the get/put_tile() functions to pipe_context.
The _rgba versions are temporary until the state tracker is updated.
2007-10-25 20:32:45 -06:00
Brian
68b88fab88 fix function name 2007-10-18 14:20:38 -06:00
Brian
8f3fb395ff make read_stencil_pixels() non-static 2007-10-18 12:31:05 -06:00
Brian
e48ea92510 fix addressing error in read_stencil_pixels() 2007-10-17 14:56:55 -06:00
Brian
69466c60a5 GL_STENCIL_INDEX support 2007-10-13 12:29:11 -06:00
Brian
eb389aaf72 get_tile() of Z surfaces returns floats now 2007-10-13 09:05:20 -06:00
Brian
a9f0330061 basic support for reading GL_DEPTH_COMPONENT 2007-10-03 13:50:11 -06:00
Brian
4698483f84 Added st_fb_orientation() function to determine the up/down orientation of the framebuffer. 2007-08-13 18:20:04 -06:00
Brian
eb450bbb40 flush pipe before reading image 2007-08-13 13:56:30 -06:00
Brian
04ee3cecdf readpixels handles any format/type/packing/transfer ops now 2007-08-10 15:29:41 -06:00
Brian
c943dab9a3 glReadPixels 2007-08-10 11:37:05 -06:00