diff options
author | Anuj Phogat <anuj.phogat@gmail.com> | 2016-09-26 10:17:49 -0700 |
---|---|---|
committer | Anuj Phogat <anuj.phogat@gmail.com> | 2016-10-04 13:20:34 -0700 |
commit | f75a93f6102763c04858582f2d890f6d2f27ff0e (patch) | |
tree | 4dca1b078fb21a850df0e0d1a5b49c5539156188 /src/intel/blorp | |
parent | 2c78b2ec901ca87698b5f5fadb547e0fc727800d (diff) |
anv/blorp: Handle zero width/height blits in blorp_copy()
V2: Move the check from copy_buffer_to_image() to blorp_copy(). (Nanley)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Diffstat (limited to 'src/intel/blorp')
-rw-r--r-- | src/intel/blorp/blorp_blit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c index af463890579..0c3ee72b11f 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, |