diff options
author | Brian <[email protected]> | 2007-12-10 13:48:09 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-12-10 13:48:09 -0700 |
commit | 4f58d9af9addb1506a1b2abc7dd8012147772b78 (patch) | |
tree | ad223bf21560a3690d367e1cfedceb9fd2791f7e /src/mesa/pipe/p_context.h | |
parent | f26936b35253b697f1ccb5c2898a8607564bdcfe (diff) |
Add 'type' parameter to is_format_supported() to specify texture vs. drawing surface, etc.
Additional types may be added in the future.
Diffstat (limited to 'src/mesa/pipe/p_context.h')
-rw-r--r-- | src/mesa/pipe/p_context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/p_context.h b/src/mesa/pipe/p_context.h index b3a2122ade9..00379fbacfe 100644 --- a/src/mesa/pipe/p_context.h +++ b/src/mesa/pipe/p_context.h @@ -50,8 +50,9 @@ struct pipe_context { /* * Queries */ + /** type is one of PIPE_SURFACE, PIPE_TEXTURE, etc. */ boolean (*is_format_supported)( struct pipe_context *pipe, - enum pipe_format format ); + enum pipe_format format, uint type ); const char *(*get_name)( struct pipe_context *pipe ); |