diff options
author | Oskar Rundgren <oskar.rundgren@imgtec.com> | 2023-05-05 09:21:05 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-05-16 18:09:03 +0000 |
commit | d8bd30d9b24bab8b62eec045ee35bec80508d6dd (patch) | |
tree | d13e9f3c1ac5105e7536ce5c9cb1f8498dc8d726 | |
parent | 9bce479efc72212bae92766ee549ce5ce5d55000 (diff) | |
download | mesa-d8bd30d9b24bab8b62eec045ee35bec80508d6dd.tar.gz |
pvr: Transfer multiple emits clip rectangle
Adjust PBE clip rectangle for second emit.
Signed-off-by: Oskar Rundgren <oskar.rundgren@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22918>
-rw-r--r-- | src/imagination/vulkan/pvr_job_transfer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imagination/vulkan/pvr_job_transfer.c b/src/imagination/vulkan/pvr_job_transfer.c index 87f06d7c448..83fa87ee695 100644 --- a/src/imagination/vulkan/pvr_job_transfer.c +++ b/src/imagination/vulkan/pvr_job_transfer.c @@ -889,10 +889,10 @@ pvr_pbe_setup_modify_defaults(const struct pvr_transfer_cmd_surface *dst, render_params->min_x_clip = (uint32_t)clip_rect->offset.x; render_params->max_x_clip = - (uint32_t)clip_rect->offset.x + clip_rect->extent.width; + (uint32_t)clip_rect->offset.x + clip_rect->extent.width - 1U; render_params->min_y_clip = (uint32_t)clip_rect->offset.y; render_params->max_y_clip = - (uint32_t)clip_rect->offset.y + clip_rect->extent.height; + (uint32_t)clip_rect->offset.y + clip_rect->extent.height - 1U; return VK_SUCCESS; } |