util/primconvert: Avoid point arithmetic; apply offset on all cases.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 5 Dec 2014 14:15:02 +0000 (14:15 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 5 Dec 2014 14:44:16 +0000 (14:44 +0000)
commitf9098f09720d9b751e8529b2648971ee7d576b37
tree8aceb9f54375a57ead2ea0678ed94676d4998db2
parentc3bed13604fdcd50324f3535ef38d25f1e08245d
util/primconvert: Avoid point arithmetic; apply offset on all cases.

Matches what u_vbuf_get_minmax_index() does.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/auxiliary/indices/u_primconvert.c