i965/fs: move the fs_reg::smear() from get_timestamp() to the callers
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 9 Oct 2015 09:40:35 +0000 (10:40 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 30 Oct 2015 17:22:36 +0000 (17:22 +0000)
commit6a15517242214c739bfdd8b6a480ecca81e776d6
tree5525e10cdd0d2fdf21e93117530f8560e838280d
parent7682844f34401f1d27c9c8f80eadbcb57286e7c4
i965/fs: move the fs_reg::smear() from get_timestamp() to the callers

We're about to reuse get_timestamp() for the nir_intrinsic_shader_clock.
In the latter the generalisation does not apply, so move the smear()
where needed. This also makes the function analogous to the vec4 one.

v2: Tweak the comment - The caller -> We (Matt, Connor).
v3: More comment tweaks (Connor)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp