We currently disallow blits that we can support. Let's be more accurate
when checking the mask.
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3681>
static bool
blit_resolve(struct zink_context *ctx, const struct pipe_blit_info *info)
{
- if (info->mask != PIPE_MASK_RGBA ||
+ if (util_format_get_mask(info->dst.format) != info->mask ||
+ util_format_get_mask(info->src.format) != info->mask ||
info->scissor_enable ||
info->alpha_blend)
return false;
static bool
blit_native(struct zink_context *ctx, const struct pipe_blit_info *info)
{
- if (info->mask != PIPE_MASK_RGBA ||
+ if (util_format_get_mask(info->dst.format) != info->mask ||
+ util_format_get_mask(info->src.format) != info->mask ||
info->scissor_enable ||
info->alpha_blend)
return false;