mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radv: fix CmdSetColorWriteEnableEXT(attachmentCount==MAX_RTS)
cc: mesa-stable Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15508>
This commit is contained in:
parent
8c51874af4
commit
e23f881311
1 changed files with 1 additions and 1 deletions
|
|
@ -5538,7 +5538,7 @@ radv_CmdSetColorWriteEnableEXT(VkCommandBuffer commandBuffer, uint32_t attachmen
|
|||
struct radv_cmd_state *state = &cmd_buffer->state;
|
||||
uint32_t color_write_enable = 0;
|
||||
|
||||
assert(attachmentCount < MAX_RTS);
|
||||
assert(attachmentCount <= MAX_RTS);
|
||||
|
||||
for (uint32_t i = 0; i < attachmentCount; i++) {
|
||||
color_write_enable |= pColorWriteEnables[i] ? (0xfu << (i * 4)) : 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue