diff options
Diffstat (limited to 'src/gallium/drivers/zink')
-rw-r--r-- | src/gallium/drivers/zink/zink_blit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/zink/zink_blit.c b/src/gallium/drivers/zink/zink_blit.c index bc788556bb8..fc16aab7629 100644 --- a/src/gallium/drivers/zink/zink_blit.c +++ b/src/gallium/drivers/zink/zink_blit.c @@ -9,7 +9,8 @@ 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; @@ -66,7 +67,8 @@ blit_resolve(struct zink_context *ctx, const struct pipe_blit_info *info) 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; |