gallium: Move pf_is_depth_stencil to p_format.h.

This commit is contained in:
José Fonseca 2009-03-31 09:46:55 +01:00
parent 4d89eff0b6
commit 382306c573
2 changed files with 7 additions and 6 deletions

View file

@ -536,6 +536,13 @@ pf_get_nblocks(const struct pipe_format_block *block, unsigned width, unsigned h
return pf_get_nblocksx(block, width)*pf_get_nblocksy(block, height);
}
static INLINE boolean
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;
}
static INLINE boolean
pf_is_compressed( enum pipe_format format )
{

View file

@ -99,12 +99,6 @@ 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 *
st_texture_create(struct st_context *st,