i965/fs: optimize unpack double
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 19 Apr 2016 11:29:55 +0000 (13:29 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 10 May 2016 09:25:06 +0000 (11:25 +0200)
commit935e0e305dd7a4f67557e969513a30357d308efb
tree3c4245f51e2e7fa9f66ddae5c1b3177930ba274a
parentba1907f040e9d61be932a8e098061d94d4ba30cb
i965/fs: optimize unpack double

When we are actually unpacking from a double that we have previously
packed from its 32-bit components we can bypass the pack operation
and source from its arguments directly.

v2 (Sam):
- Fix line overflow (Topi)
- Bail if the parent instruction's source is not SSA (Connor)

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