mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 22:20:38 +02:00
gallium: Move pf_is_depth_stencil to p_format.h.
This commit is contained in:
parent
4d89eff0b6
commit
382306c573
2 changed files with 7 additions and 6 deletions
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue