OSDN Git Service

i965/vec4: consider subregister offset in live variables
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Fri, 23 Sep 2016 15:57:39 +0000 (15:57 +0000)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 14 Apr 2017 21:56:08 +0000 (14:56 -0700)
commita907c91e93cce88ee1929263c455fab541b8c4a3
tree3da6efa50b778c94265d7ef7c0f38c9b5320c725
parent92649a3e6756465b3961cf05910cda93a69c7790
i965/vec4: consider subregister offset in live variables

Take into account offset values less than a full register (32 bytes)
when getting the var from register.

This is required when dealing with an operation that writes half of the
register (like one d2x in IVB/BYT, which uses exec_size == 4).

v2:
- Take in account this offset < 32 in liveness analysis too (Curro)

v3:
- Change formula in var_from_reg() (Curro)
- Remove useless changes (Curro)

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/intel/compiler/brw_vec4_live_variables.h