i965: Move compression decisions before brw_reg_from_fs_reg().
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 16 May 2016 22:09:17 +0000 (15:09 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 17 May 2016 21:40:31 +0000 (14:40 -0700)
commit062ad8166936d18a4b7ae11f5d39e8f39a9ae6c3
tree0a2fc514071f04a57c46cba236f537be5307bcf4
parent9a1936d965e92c4b4aa682f96ef63362159f4fce
i965: Move compression decisions before brw_reg_from_fs_reg().

brw_reg_from_fs_reg() needs to know whether the instruction will be
compressed or not.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95370
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp