Not 100% sure on this one, but this is how it should work,
the question is whether it will uncover other bugs elsewhere.
surf = (struct r600_surface *)state->zsbuf;
rtex = (struct r600_resource_texture*)state->zsbuf->texture;
- rtex->tiled = 1;
- rtex->array_mode[level] = 2;
rtex->tile_type = 1;
- rtex->depth = 1;
rbuffer = &rtex->resource;
/* XXX quite sure for dx10+ hw don't need any offset hacks */
surf = (struct r600_surface *)state->zsbuf;
rtex = (struct r600_resource_texture*)state->zsbuf->texture;
- rtex->tiled = 1;
- rtex->array_mode[level] = 2;
+
rtex->tile_type = 1;
- rtex->depth = 1;
+
rbuffer = &rtex->resource;
/* XXX quite sure for dx10+ hw don't need any offset hacks */