summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/intel/blorp/blorp_blit.c5
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(&params);
+ if (src_width == 0 || src_height == 0)
+ return;
+
+ blorp_params_init(&params);
brw_blorp_surface_info_init(batch->blorp, &params.src, src_surf, src_level,
src_layer, ISL_FORMAT_UNSUPPORTED, false);
brw_blorp_surface_info_init(batch->blorp, &params.dst, dst_surf, dst_level,