diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c index 33944b84cf..cd97063832 100644 --- a/src/intel/blorp/blorp_blit.c +++ b/src/intel/blorp/blorp_blit.c @@ -1787,6 +1787,12 @@ try_blorp_blit(struct blorp_batch *batch, params->x1 = params->wm_inputs.discard_rect.x1 = round(coords->x.dst1); params->y1 = params->wm_inputs.discard_rect.y1 = round(coords->y.dst1); + if (params->x0 == 0 && params->x1 == 0) + params->x1 = params->wm_inputs.discard_rect.x1 = 1; + + if (params->y0 == 0 && params->y1 == 0) + params->y1 = params->wm_inputs.discard_rect.y1 = 1; + brw_blorp_setup_coord_transform(¶ms->wm_inputs.coord_transform[0], coords->x.src0, coords->x.src1, coords->x.dst0, coords->x.dst1,