i965/vec4: use attribute slots to calculate URB read length
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Mon, 4 Apr 2016 10:47:57 +0000 (12:47 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 17 May 2016 07:05:55 +0000 (09:05 +0200)
commitb7423b485e11b768f68e8d5865fbc74b07ee6d48
tree6debd2fa15555c52c66fbce1983609770d3ea670
parentb0fb08e179d784ca319c3c547a874fd24ce93c3f
i965/vec4: use attribute slots to calculate URB read length

Do not use total attributes because a dvec3/dvec4 attribute requires two
slots. So rather use total attribute slots.

v2: do not use loop to calculate required attribute slots (Kenneth
Graunke)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4.cpp