Sequence fields are located at MP[i] + 0x20 in the buffer object.
This is used to check if result is available for MP[i].
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
PUSH_SPACE(push, 4 * 8 * 6 + 4);
/* set sequence field to 0 (used to check if result is available) */
- for (i = 0; i < screen->mp_count; ++i)
- hq->data[i * 10 + 10] = 0;
+ for (i = 0; i < screen->mp_count; ++i) {
+ const unsigned b = (0x24 / 4) * i;
+ hq->data[b + 8] = 0;
+ }
hq->sequence++;
for (i = 0; i < cfg->num_counters; ++i) {