gallium: Clean up driver clear() interface.

Only allows clearing currently bound buffers, but colour and depth/stencil in
a single call.
This commit is contained in:
Michel Dänzer
2009-04-04 19:01:51 +02:00
parent ba14b043bc
commit eb168e26aa
26 changed files with 264 additions and 257 deletions

View File

@@ -205,12 +205,20 @@ struct pipe_context {
unsigned dstx, unsigned dsty,
unsigned width, unsigned height,
unsigned value);
void (*clear)(struct pipe_context *pipe,
struct pipe_surface *ps,
unsigned clearValue);
/*@}*/
/**
* Clear the specified set of currently bound buffers to specified values.
*
* buffers is a bitfield of PIPE_CLEAR_* values.
*
* rgba is a pointer to an array of one float for each of r, g, b, a.
*/
void (*clear)(struct pipe_context *pipe,
unsigned buffers,
const float *rgba,
double depth,
unsigned stencil);
/** Flush rendering (flags = bitmask of PIPE_FLUSH_x tokens) */
void (*flush)( struct pipe_context *pipe,