Module: Mesa Branch: main Commit: b8f40fc4d4c16e81d1dca03f5ce340da2f2ec593 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8f40fc4d4c16e81d1dca03f5ce340da2f2ec593
Author: Alejandro PiƱeiro <[email protected]> Date: Tue May 23 00:11:58 2023 +0200 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 <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23172> --- src/gallium/drivers/v3d/v3d_blit.c | 3 ++- src/gallium/drivers/v3d/v3d_context.h | 3 --- src/gallium/drivers/v3d/v3d_formats.c | 8 -------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/gallium/drivers/v3d/v3d_blit.c b/src/gallium/drivers/v3d/v3d_blit.c index bbb644fa73a..88ba6f22461 100644 --- a/src/gallium/drivers/v3d/v3d_blit.c +++ b/src/gallium/drivers/v3d/v3d_blit.c @@ -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; } diff --git a/src/gallium/drivers/v3d/v3d_context.h b/src/gallium/drivers/v3d/v3d_context.h index 139cea85fde..3e196f19466 100644 --- a/src/gallium/drivers/v3d/v3d_context.h +++ b/src/gallium/drivers/v3d/v3d_context.h @@ -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); diff --git a/src/gallium/drivers/v3d/v3d_formats.c b/src/gallium/drivers/v3d/v3d_formats.c index b94857fa006..85391808286 100644 --- a/src/gallium/drivers/v3d/v3d_formats.c +++ b/src/gallium/drivers/v3d/v3d_formats.c @@ -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)
