u_transfer_helper no longer emulates RGTC, so this code path is dead. RGTC
emulation now happens in the state tracker so the formats will work out
properly. (Similar to how other BCn formats are emulated in mesa/st.)
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20311>
static enum pipe_format
pan_blit_format(enum pipe_format fmt)
{
- const struct util_format_description *desc;
- desc = util_format_description(fmt);
-
- /* This must be an emulated format (using u_transfer_helper) as if it
- * was real RGTC we wouldn't have used AFBC and needed a blit. */
- if (desc->layout == UTIL_FORMAT_LAYOUT_RGTC)
- fmt = PIPE_FORMAT_R8G8B8A8_UNORM;
-
return fmt;
}