v3d: remove v3d_tfu_supports_tex_format

This is a one-line wrapper, so let's just use the v3d_X or v3dX macros
instead.

Acked-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23172>
This commit is contained in:
Alejandro Piñeiro 2023-05-23 00:11:58 +02:00 committed by Marge Bot
parent 1a74a0b637
commit b8f40fc4d4
3 changed files with 2 additions and 12 deletions

View file

@ -260,8 +260,9 @@ v3d_tfu(struct pipe_context *pctx,
}
uint32_t tex_format = v3d_get_tex_format(&screen->devinfo, pformat);
struct v3d_device_info *devinfo = &screen->devinfo;
if (!v3d_tfu_supports_tex_format(&screen->devinfo, tex_format, for_mipmap)) {
if (!v3d_X(devinfo, tfu_supports_tex_format)(tex_format, for_mipmap)) {
assert(for_mipmap);
return false;
}

View file

@ -764,9 +764,6 @@ void v3d_get_internal_type_bpp_for_output_format(const struct v3d_device_info *d
uint32_t format,
uint32_t *type,
uint32_t *bpp);
bool v3d_tfu_supports_tex_format(const struct v3d_device_info *devinfo,
uint32_t tex_format,
bool for_mipmap);
bool v3d_format_supports_tlb_msaa_resolve(const struct v3d_device_info *devinfo,
enum pipe_format f);

View file

@ -135,14 +135,6 @@ v3d_get_internal_type_bpp_for_output_format(const struct v3d_device_info *devinf
v3d_X(devinfo, get_internal_type_bpp_for_output_format)(format, type, bpp);
}
bool
v3d_tfu_supports_tex_format(const struct v3d_device_info *devinfo,
uint32_t tex_format,
bool for_mipmap)
{
return v3d_X(devinfo, tfu_supports_tex_format)(tex_format, for_mipmap);
}
bool
v3d_format_supports_tlb_msaa_resolve(const struct v3d_device_info *devinfo,
enum pipe_format f)