mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
zink: be more careful about the mask-check
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>
This commit is contained in:
parent
b550b7ef3b
commit
85d4b41f68
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue