anv: reuse define for number of render target assert

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10206>
This commit is contained in:
Lionel Landwerlin 2021-03-31 23:35:19 +03:00 committed by Marge Bot
parent b15bfe92f7
commit 74685c8136

View file

@ -1191,7 +1191,7 @@ emit_cb_state(struct anv_graphics_pipeline *pipeline,
break;
/* We can have at most 8 attachments */
assert(i < 8);
assert(i < MAX_RTS);
if (info == NULL || binding->index >= info->attachmentCount) {
state_pos = write_disabled_blend(state_pos);