i965/vec4: don't do horizontal stride on some register file types
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 17 Mar 2017 10:55:49 +0000 (11:55 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 14 Apr 2017 21:56:09 +0000 (14:56 -0700)
commitc1fc8fad47f60bda857fc45c4052c5f4effe0d84
treee8619aeb0d9998486d4afe03e29c8e1df07e34f8
parent21e8e3a8484241508ac2c250fc4367234fa337df
i965/vec4: don't do horizontal stride on some register file types

horiz_offset() shouldn't be doing anything for scalar registers,
because all channels of any SIMD instructions will end up reading or
writing the same component of the register, so shifting the register
offset would be wrong.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
[ Francisco Jerez: Re-implement in terms of is_uniform() for
  simplicity.  Pass argument by const reference.  Clarify commit
  message. ]
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/intel/compiler/brw_ir_vec4.h