OSDN Git Service

i965/fs: Use regs_read/written for post-RA scheduling in calculate_deps
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 6 Nov 2015 00:37:47 +0000 (16:37 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 7 Nov 2015 16:41:48 +0000 (08:41 -0800)
commitd43e16b1638cdadc7fcff2007b106e2a559dae7d
tree3598f95a8c24b168e9d15c876f029304bf41921a
parentc839174d55216cf1da5cdc4bf0f735ab8359d221
i965/fs: Use regs_read/written for post-RA scheduling in calculate_deps

Previously, we were assuming that everything read/wrote exactly 1 logical
GRF (1 in SIMD8 and 2 in SIMD16).  This isn't actually true.  In
particular, the PLN instruction reads 2 logical registers in one of the
components.  This commit changes post-RA scheduling to use regs_read and
regs_written instead so that we add enough dependencies.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92770
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp