[Mesa-dev] [PATCH 41/51] intel/compiler/eu: Take stride into account in 16-bit ops
Topi Pohjolainen
topi.pohjolainen at gmail.com
Fri Nov 24 12:27:08 UTC 2017
This is needed when converting from F -> HF.
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
src/intel/compiler/brw_eu_validate.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/intel/compiler/brw_eu_validate.c b/src/intel/compiler/brw_eu_validate.c
index 6ee6b4ffbe..6666735ea6 100644
--- a/src/intel/compiler/brw_eu_validate.c
+++ b/src/intel/compiler/brw_eu_validate.c
@@ -459,6 +459,9 @@ general_restrictions_based_on_operand_types(const struct gen_device_info *devinf
exec_type_size == 8 && dst_type_size == 4)
dst_type_size = 8;
+ if (exec_type_size == 4 && dst_type_size == 2 && dst_stride == 2)
+ dst_type_size = 4;
+
if (exec_type_size > dst_type_size) {
ERROR_IF(dst_stride * dst_type_size != exec_type_size,
"Destination stride must be equal to the ratio of the sizes of "
--
2.11.0
More information about the mesa-dev
mailing list