diff --git a/.pick_status.json b/.pick_status.json index 5487f0e5dc5..a21e207019c 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -74,7 +74,7 @@ "description": "mesa: Fix multiview attachment completeness check", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "328c29d6007ed7677d5c5307bd6997d84a32104a", "notes": null diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 4665e4dfe97..4b549cfa7c0 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -1000,6 +1000,11 @@ test_attachment_completeness(const struct gl_context *ctx, GLenum format, att->Complete = GL_FALSE; return; } + if (att->Zoffset + att->NumViews > texImage->Depth) { + att_incomplete("bad 2D-array view range"); + att->Complete = GL_FALSE; + return; + } break; case GL_TEXTURE_CUBE_MAP_ARRAY: if (att->Zoffset >= texImage->Depth) {