mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
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:
parent
61a9c4f63d
commit
dfbf1a8e80
3 changed files with 9 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue