gallium: add a is_dri_blit_image bool to pipe_blit_info

This indicates driver that a given blit is coming from the DRI
frontend.
This information can then be used to pick an appropriate blitting
method.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12763>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2021-09-09 16:57:15 +02:00 committed by Marge Bot
parent f895dc04a5
commit 22a1b7c5b3
2 changed files with 2 additions and 0 deletions

View file

@ -1704,6 +1704,7 @@ dri2_blit_image(__DRIcontext *context, __DRIimage *dst, __DRIimage *src,
blit.src.format = src->texture->format;
blit.mask = PIPE_MASK_RGBA;
blit.filter = PIPE_TEX_FILTER_NEAREST;
blit.is_dri_blit_image = true;
pipe->blit(pipe, &blit);

View file

@ -900,6 +900,7 @@ struct pipe_blit_info
bool render_condition_enable; /**< whether the blit should honor the
current render condition */
bool alpha_blend; /* dst.rgb = src.rgb * src.a + dst.rgb * (1 - src.a) */
bool is_dri_blit_image;
};
/**