OSDN Git Service

i965: Use <0,2,1> region for scalar DF sources on IVB/BYT.
authorMatt Turner <mattst88@gmail.com>
Wed, 11 Jan 2017 03:33:22 +0000 (19:33 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 14 Apr 2017 21:56:07 +0000 (14:56 -0700)
commit94ffeb7fa2257af3eb416a1e720e08911835665b
tree7a0ca179234800975785be42bcf2ae183c41e837
parent82d17615f442555b3577be41e24edd341a11d01d
i965: Use <0,2,1> region for scalar DF sources on IVB/BYT.

On HSW+, scalar DF sources can be accessed using the normal <0,1,0>
region, but on IVB and BYT DF regions must be programmed in terms of
floats. A <0,2,1> region accomplishes this.

v2:
- Apply region <0,2,1> in brw_reg_from_fs_reg() (Curro).

v3:
- Added comment explaining the reason (Curro).

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