This seems to make the simulator happier. The early return wasn't
really protecting anything and the code that follows will happily
initialize the dummy element to STORE_0 and emit it.
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
__builtin_popcount(elements_double) / 2;
const uint32_t total_elems =
- elem_count + needs_svgs_elem + vs_prog_data->uses_drawid;
- if (total_elems == 0)
- return;
+ MAX2(1, elem_count + needs_svgs_elem + vs_prog_data->uses_drawid);
uint32_t *p;