diff options
author | Michal Krol <[email protected]> | 2009-12-03 10:12:47 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-12-03 10:12:47 +0100 |
commit | d28740c298968303500a8c43047ded2679e727ac (patch) | |
tree | bb20439f6040083d94fbc21f71a32fcc3f13eae4 /src/gallium/state_trackers | |
parent | 3400b668e35469d5dbba515e3a8b9d775fd2eff5 (diff) |
Move pf_is_depth_stencil() to u_format auxiliary module.
Diffstat (limited to 'src/gallium/state_trackers')
-rwxr-xr-x | src/gallium/state_trackers/python/tests/base.py | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_dri2.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/python/tests/base.py b/src/gallium/state_trackers/python/tests/base.py index 202ccfc3509..b022d073fda 100755 --- a/src/gallium/state_trackers/python/tests/base.py +++ b/src/gallium/state_trackers/python/tests/base.py @@ -47,7 +47,7 @@ for name, value in globals().items(): formats[value] = name def is_depth_stencil_format(format): - # FIXME: make and use binding to pf_is_depth_stencil + # FIXME: make and use binding to util_format_is_depth_or_stencil return format in ( PIPE_FORMAT_Z32_UNORM, PIPE_FORMAT_Z24S8_UNORM, diff --git a/src/gallium/state_trackers/xorg/xorg_dri2.c b/src/gallium/state_trackers/xorg/xorg_dri2.c index 2394f004d25..36711609d2f 100644 --- a/src/gallium/state_trackers/xorg/xorg_dri2.c +++ b/src/gallium/state_trackers/xorg/xorg_dri2.c @@ -40,6 +40,7 @@ #include "pipe/p_state.h" #include "pipe/p_inlines.h" +#include "util/u_format.h" #include "util/u_rect.h" /* Make all the #if cases in the code esier to read */ @@ -92,7 +93,7 @@ dri2_do_create_buffer(DrawablePtr pDraw, DRI2BufferPtr buffer, unsigned int form case 9: #endif if (exa_priv->depth_stencil_tex && - !pf_is_depth_stencil(exa_priv->depth_stencil_tex->format)) + !util_format_is_depth_or_stencil(exa_priv->depth_stencil_tex->format)) exa_priv->depth_stencil_tex = NULL; /* Fall through */ case DRI2BufferDepth: |