[Mesa-dev] [PATCH 16/31] i965/fs: Implement HSW BFI exec size workarounds in the SIMD lowering pass.
Francisco Jerez
currojerez at riseup.net
Sat May 21 05:47:51 UTC 2016
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index a677ea6..a15e15e 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -4753,8 +4753,6 @@ get_lowered_simd_width(const struct brw_device_info *devinfo,
case BRW_OPCODE_F16TO32:
case BRW_OPCODE_BFREV:
case BRW_OPCODE_BFE:
- case BRW_OPCODE_BFI1:
- case BRW_OPCODE_BFI2:
case BRW_OPCODE_ADD:
case BRW_OPCODE_MUL:
case BRW_OPCODE_AVG:
@@ -4789,6 +4787,14 @@ get_lowered_simd_width(const struct brw_device_info *devinfo,
!inst->dst.is_null() ? 8 : ~0);
return MIN2(max_width, get_fpu_lowered_simd_width(devinfo, inst));
}
+ case BRW_OPCODE_BFI1:
+ case BRW_OPCODE_BFI2:
+ /* The Haswell WaForceSIMD8ForBFIInstruction workaround says that we
+ * should
+ * "Force BFI instructions to be executed always in SIMD8."
+ */
+ return MIN2(devinfo->is_haswell ? 8 : ~0u,
+ get_fpu_lowered_simd_width(devinfo, inst));
case SHADER_OPCODE_RCP:
case SHADER_OPCODE_RSQ:
--
2.7.3
More information about the mesa-dev
mailing list