OSDN Git Service

intel/fs: Do the grf127 hack on SIMD8 instructions in SIMD16 mode
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Jan 2019 16:53:44 +0000 (10:53 -0600)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 12 Feb 2019 12:53:14 +0000 (12:53 +0000)
commit7bf9cf29dcf34f721dc170887ac70ca9cce57e6f
tree398509060bd9aaaaaef70e680b4fbef25020052d
parente0eba40ae465e02b5676e57ac90fa58bcf386479
intel/fs: Do the grf127 hack on SIMD8 instructions in SIMD16 mode

Previously, we only applied the fix to shaders with a dispatch mode of
SIMD8 but the code it relies on for SIMD16 mode only applies to SIMD16
instructions.  If you have a SIMD8 instruction in a SIMD16 shader,
neither would trigger and the restriction could still be hit.

Fixes: 232ed8980217dd "i965/fs: Register allocator shoudn't use grf127..."
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit b4f0d062cd12b4f675bac900ac41d1085a79239a)
src/intel/compiler/brw_fs_reg_allocate.cpp