diff options
author | Michal Krol <[email protected]> | 2009-12-03 11:58:36 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-12-03 11:58:36 +0100 |
commit | f5bd93fae2e4f46665eb1f09ca64cb39ff2b8a79 (patch) | |
tree | 2389d913bcd736d2d17a64189550b00ef68e1033 /src/gallium/drivers/llvmpipe | |
parent | cceeab39ea541b1be1521114316d660a77769c2a (diff) |
Move pf_get_component_bits() to u_format auxiliary module.
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_surface.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_surface.c b/src/gallium/drivers/llvmpipe/lp_state_surface.c index c06ce8b75c1..ba970cac985 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_surface.c +++ b/src/gallium/drivers/llvmpipe/lp_state_surface.c @@ -35,6 +35,8 @@ #include "draw/draw_context.h" +#include "util/u_format.h" + /** * XXX this might get moved someday @@ -88,8 +90,9 @@ llvmpipe_set_framebuffer_state(struct pipe_context *pipe, if (lp->framebuffer.zsbuf) { int depth_bits; double mrd; - depth_bits = pf_get_component_bits(lp->framebuffer.zsbuf->format, - PIPE_FORMAT_COMP_Z); + depth_bits = util_format_get_component_bits(lp->framebuffer.zsbuf->format, + UTIL_FORMAT_COLORSPACE_ZS, + 0); if (depth_bits > 16) { mrd = 0.0000001; } |