i965/fs: calculate first non-payload GRF using attrib slots
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)
commit7ea09511ca4f58640063cc1ee08386cce5300535
treebabe59b2a135bde9e4b28090b7d3113374aea9fb
parentb7423b485e11b768f68e8d5865fbc74b07ee6d48
i965/fs: calculate first non-payload GRF using attrib slots

When computing where the first non-payload GRF starts, we can't rely on
the number of attributes, as each attribute can be using 1 or 2 slots
depending on whether they are a dvec3/4 or other.

Instead, we need to use the number of slots used by the attributes.

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