Acked-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Vitaliy Triang3l Kuzmin <triang3l@yandex.ru>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24545>
return 0;
/* hack to avoid making MOVA the last instruction in the clause */
- if ((bc->cf_last->ndw>>1) >= 110)
+ if (bc->cf_last == NULL || (bc->cf_last->ndw>>1) >= 110)
bc->force_add_cf = 1;
else if (for_src) {
insert_nop_r6xx(bc, 4);
return 0;
/* hack to avoid making MOVA the last instruction in the clause */
- if ((bc->cf_last->ndw>>1) >= 110)
+ if (bc->cf_last == NULL || (bc->cf_last->ndw>>1) >= 110)
bc->force_add_cf = 1;
memset(&alu, 0, sizeof(alu));