v3dv: limit blit framebuffer dimensions to max coordinates

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga
2020-10-06 08:57:47 +02:00
committed by Marge Bot
parent 43063d8de8
commit ec78ee0342

View File

@@ -4111,8 +4111,8 @@ blit_shader(struct v3dv_cmd_buffer *cmd_buffer,
.renderPass = pipeline->pass,
.attachmentCount = 1,
.pAttachments = &dst_image_view,
.width = dst_level_w,
.height = dst_level_h,
.width = dst_x + dst_w,
.height = dst_y + dst_h,
.layers = 1,
};