i965/fs: optimize pack double
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 19 Apr 2016 10:59:47 +0000 (12:59 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 10 May 2016 09:25:06 +0000 (11:25 +0200)
commitba1907f040e9d61be932a8e098061d94d4ba30cb
tree2758bf763119623de3ba192baaf15b9cdaaa93cd
parent7782f39e759798975ace6f3272dd3f263ddc8702
i965/fs: optimize pack double

When we are actually creating a double using values obtained from a
previous unpack operation we can bypass the unpack and source from
the original double value directly.

v2:
- Style changes (Topi)
- Bail is parent instruction's src is not SSA (Connor)

v3: Use subscript() instead of stride() (Curro)

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