union tex_tile_address addr )
{
struct softpipe_tex_cached_tile *tile;
+ boolean zs = util_format_is_depth_or_stencil(tc->format);
tile = tc->entries + tex_cache_pos( addr );
/* Get tile from the transfer (view into texture), explicitly passing
* the image format.
*/
- if (util_format_is_pure_uint(tc->format)) {
+ if (!zs && util_format_is_pure_uint(tc->format)) {
pipe_get_tile_ui_format(tc->pipe,
tc->tex_trans,
addr.bits.x * TILE_SIZE,
TILE_SIZE,
tc->format,
(unsigned *) tile->data.colorui);
- } else if (util_format_is_pure_sint(tc->format)) {
+ } else if (!zs && util_format_is_pure_sint(tc->format)) {
pipe_get_tile_i_format(tc->pipe,
tc->tex_trans,
addr.bits.x * TILE_SIZE,