intel/fs/ra: Initialize grf_used with first_non_payload_grf
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 8 May 2019 01:11:08 +0000 (20:11 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 14 May 2019 17:30:22 +0000 (12:30 -0500)
commit472ef2f98d32c931a15495a344371ea60a6b633e
treeb35781aef5db5794a0c9e4a722c086957048a360
parent096ad8a8099cbcb3c868c08814fbe14ac79ca680
intel/fs/ra: Initialize grf_used with first_non_payload_grf

There's no reason why we need to use the calculated payload_node_count
value which is just first_non_payload_grf aligned up.  The grf_used
value will be aligned up to 16 anyway (which is a much bigger alignment)
before being handed off to hardware.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs_reg_allocate.cpp