anv: avoid C23

For some reason the android builders started noticing...

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit f6306198d0)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41104>
This commit is contained in:
Lionel Landwerlin 2026-04-10 16:58:21 +03:00 committed by Eric Engestrom
parent 8c7afcf8f3
commit 006ee6ea04
2 changed files with 3 additions and 2 deletions

View file

@ -1104,7 +1104,7 @@
"description": "anv: avoid C23",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -2713,7 +2713,7 @@ emit_binding_table(struct anv_cmd_buffer *cmd_buffer,
bt_map[s] = 0;
break;
case ANV_DESCRIPTOR_SET_COLOR_ATTACHMENTS:
case ANV_DESCRIPTOR_SET_COLOR_ATTACHMENTS: {
/* Color attachment binding */
assert(shader->vk.stage == MESA_SHADER_FRAGMENT);
uint32_t index = binding->index < MAX_RTS ?
@ -2730,6 +2730,7 @@ emit_binding_table(struct anv_cmd_buffer *cmd_buffer,
assert(surface_state.map);
bt_map[s] = surface_state.offset + state_offset;
break;
}
case ANV_DESCRIPTOR_SET_DESCRIPTORS:
/* We have LSC_SS surface states for this, binding table isn't