anv: fix CmdSetColorWriteEnableEXT for maximum rts

Fixes: b15bfe92f7 ("anv: implement VK_EXT_color_write_enable")

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15280>
(cherry picked from commit 1e3e7b3a4d)
This commit is contained in:
Mike Blumenkrantz 2022-03-07 20:15:50 -05:00 committed by Eric Engestrom
parent 9d3d5b5c46
commit d3157618ef
2 changed files with 2 additions and 2 deletions

View file

@ -328,7 +328,7 @@
"description": "anv: fix CmdSetColorWriteEnableEXT for maximum rts",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "b15bfe92f7f87e270160a9221a1394fc7b5de5d2"
},

View file

@ -1585,7 +1585,7 @@ void anv_CmdSetColorWriteEnableEXT(
{
ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
assert(attachmentCount < MAX_RTS);
assert(attachmentCount <= MAX_RTS);
uint8_t color_writes = 0;
for (uint32_t i = 0; i < attachmentCount; i++)