Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>
cso->u.buf.size);
}
+ bool is_srgb = util_format_is_srgb(cso->format);
#if V3D_VERSION <= 42
- tex.srgb = util_format_is_srgb(cso->format);
+ tex.srgb = is_srgb;
#endif
-
#if V3D_VERSION >= 71
- unreachable("HW generation 71 not supported yet.");
+ tex.transfer_func = is_srgb ? TRANSFER_FUNC_SRGB : TRANSFER_FUNC_NONE;
#endif
#if V3D_VERSION >= 40
#if V3D_VERSION <= 42
tex.srgb = false;
#endif
-#if V3D_VERSION >= 71
- unreachable("HW generation 71 not supported yet.");
-#endif
} else {
tex.texture_type = v3d_get_tex_format(&screen->devinfo,