diff options
author | Roland Scheidegger <[email protected]> | 2008-05-09 15:04:33 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2008-05-09 16:56:23 +0200 |
commit | a1f95a8bf64f863289b6759caeec76d7e054400e (patch) | |
tree | e7224661c27840de3e38b81b4ebc7056503177df /src/mesa/state_tracker/st_texture.h | |
parent | 5ee2b5bdcc62e844079829f4f4301aad5374c62e (diff) |
gallium: depth textures have usage depth_stencil instead of render_target
Diffstat (limited to 'src/mesa/state_tracker/st_texture.h')
-rw-r--r-- | src/mesa/state_tracker/st_texture.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h index 55d1a367b50..3febe6a7cb0 100644 --- a/src/mesa/state_tracker/st_texture.h +++ b/src/mesa/state_tracker/st_texture.h @@ -93,6 +93,11 @@ st_get_stobj_texture(struct st_texture_object *stObj) return stObj ? stObj->pt : NULL; } +static INLINE GLboolean pf_is_depth_stencil( enum pipe_format format ) +{ + return (pf_get_component_bits( format, PIPE_FORMAT_COMP_Z ) + + pf_get_component_bits( format, PIPE_FORMAT_COMP_S )) != 0; +} extern struct pipe_texture * |