diff options
author | Keith Whitwell <[email protected]> | 2008-05-02 16:46:31 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-05-02 16:46:31 +0100 |
commit | a73ae3d5eb8419feab5aea26573aa41b72f941eb (patch) | |
tree | 74fa3e6004be0ef5d266680bd57c2fccec521a4e /src/mesa/state_tracker/st_texture.h | |
parent | 4a159132082429d5492f5298c2ccb0df551c9f65 (diff) |
gallium: Add texture usage flags, special-case allocation of display targets
For many envirionments it's necessary to allocate display targets
in a window-system friendly manner. Add facilities so that a driver
can tell if a texture is likely to be used to generate a display surface
and if use special allocation paths if necessary.
Hook up softpipe to call into the winsys->surface_alloc_storage()
routine in this case, though we probably want to change that interface
slightly also.
Diffstat (limited to 'src/mesa/state_tracker/st_texture.h')
-rw-r--r-- | src/mesa/state_tracker/st_texture.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h index f6d5733e210..6a9f08ec6b7 100644 --- a/src/mesa/state_tracker/st_texture.h +++ b/src/mesa/state_tracker/st_texture.h @@ -105,7 +105,8 @@ st_texture_create(struct st_context *st, GLuint width0, GLuint height0, GLuint depth0, - GLuint compress_byte); + GLuint compress_byte, + GLuint tex_usage ); /* Check if an image fits into an existing texture object. |