v3d: rename msaa resolve

The conditions for being able to do msaa resolve and hardware blending are
identical.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35820>
This commit is contained in:
Ella Stanforth 2025-07-16 18:42:37 +01:00 committed by Marge Bot
parent 61a9c4f63d
commit dfbf1a8e80
3 changed files with 9 additions and 5 deletions

View file

@ -354,7 +354,7 @@ check_tlb_blit_ok(struct v3d_device_info *devinfo, struct pipe_blit_info *info)
info->dst.resource->nr_samples < 2);
if (is_msaa_resolve &&
!v3d_format_supports_tlb_msaa_resolve(devinfo, info->src.format))
!v3d_format_supports_tlb_resolve_and_blend(devinfo, info->src.format))
return false;
return true;

View file

@ -844,8 +844,8 @@ uint8_t v3d_get_tex_return_channels(const struct v3d_device_info *devinfo,
enum pipe_format f);
const uint8_t *v3d_get_format_swizzle(const struct v3d_device_info *devinfo,
enum pipe_format f);
bool v3d_format_supports_tlb_msaa_resolve(const struct v3d_device_info *devinfo,
enum pipe_format f);
bool v3d_format_supports_tlb_resolve_and_blend(const struct v3d_device_info *devinfo,
enum pipe_format f);
bool v3d_format_needs_tlb_rb_swap(enum pipe_format format);
void v3d_format_get_internal_type_and_bpp(const struct v3d_device_info *devinfo,
enum pipe_format format,

View file

@ -124,9 +124,13 @@ v3d_get_format_swizzle(const struct v3d_device_info *devinfo, enum pipe_format f
return vf->swizzle;
}
/**
* If our internal type is normalised or a 16bit float we can do real
* operations on the tilebuffer such as msaa resolve or blending.
*/
bool
v3d_format_supports_tlb_msaa_resolve(const struct v3d_device_info *devinfo,
enum pipe_format f)
v3d_format_supports_tlb_resolve_and_blend(const struct v3d_device_info *devinfo,
enum pipe_format f)
{
uint32_t internal_type;
uint32_t internal_bpp;