[Mesa-dev] [PATCH V2] anv/blorp: Handle zero width/height blits in blorp_copy()
Nanley Chery
nanleychery at gmail.com
Mon Sep 26 17:30:17 UTC 2016
On Mon, Sep 26, 2016 at 10:22:43AM -0700, Anuj Phogat wrote:
> V2: Move the check from copy_buffer_to_image() to blorp_copy(). (Nanley)
>
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> Cc: Nanley Chery <nanley.g.chery at intel.com>
> ---
This patch is
Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>
> src/intel/blorp/blorp_blit.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
> index af46389..0c3ee72 100644
> --- a/src/intel/blorp/blorp_blit.c
> +++ b/src/intel/blorp/blorp_blit.c
> @@ -1838,8 +1838,11 @@ blorp_copy(struct blorp_batch *batch,
> uint32_t src_width, uint32_t src_height)
> {
> struct blorp_params params;
> - blorp_params_init(¶ms);
>
> + if (src_width == 0 || src_height == 0)
> + return;
> +
> + blorp_params_init(¶ms);
> brw_blorp_surface_info_init(batch->blorp, ¶ms.src, src_surf, src_level,
> src_layer, ISL_FORMAT_UNSUPPORTED, false);
> brw_blorp_surface_info_init(batch->blorp, ¶ms.dst, dst_surf, dst_level,
> --
> 2.5.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list