Browse Source

softpipe: use util_format_is_depth_or_stencil()

Reviewed-by: Dave Airlie <airlied@redhat.com>
tags/mesa-8.0-rc1
Brian Paul 14 years ago
parent
commit
89999204ec
1 changed files with 1 additions and 7 deletions
  1. 1
    7
      src/gallium/drivers/softpipe/sp_tile_cache.c

+ 1
- 7
src/gallium/drivers/softpipe/sp_tile_cache.c View File

@@ -180,13 +180,7 @@ sp_tile_cache_set_surface(struct softpipe_tile_cache *tc,
PIPE_TRANSFER_UNSYNCHRONIZED,
0, 0, ps->width, ps->height);

tc->depth_stencil = (ps->format == PIPE_FORMAT_Z24_UNORM_S8_USCALED ||
ps->format == PIPE_FORMAT_Z24X8_UNORM ||
ps->format == PIPE_FORMAT_S8_USCALED_Z24_UNORM ||
ps->format == PIPE_FORMAT_X8Z24_UNORM ||
ps->format == PIPE_FORMAT_Z16_UNORM ||
ps->format == PIPE_FORMAT_Z32_UNORM ||
ps->format == PIPE_FORMAT_S8_USCALED);
tc->depth_stencil = util_format_is_depth_or_stencil(ps->format);
}
}


Loading…
Cancel
Save