diff options
author | Francisco Jerez <currojerez@riseup.net> | 2016-05-27 23:29:14 -0700 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2016-05-31 15:57:41 -0700 |
commit | c1107cec44ab030c7fcc97c67baa12df1cc9d7b5 (patch) | |
tree | a4a5cd95074d3e50eaffdbc4c1bca8560264702f /src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp | |
parent | 06d8765bc09ecd8ff73fff424c8cfec645cb0ded (diff) | |
download | external_mesa3d-c1107cec44ab030c7fcc97c67baa12df1cc9d7b5.zip external_mesa3d-c1107cec44ab030c7fcc97c67baa12df1cc9d7b5.tar.gz external_mesa3d-c1107cec44ab030c7fcc97c67baa12df1cc9d7b5.tar.bz2 |
i965/fs: Allow scalar source regions on SNB math instructions.
I haven't found any evidence that this isn't supported by the
hardware, in fact according to the SNB hardware spec:
"The supported regioning modes for math instructions are align16,
align1 with the following restrictions:
- Scalar source is supported.
[...]
- Source and destination offset must be the same, except the case of
scalar source."
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp index d88d62b..2a83eb9 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp @@ -578,14 +578,9 @@ fs_visitor::try_constant_propagate(fs_inst *inst, acp_entry *entry) break; /* fallthrough */ case SHADER_OPCODE_POW: - /* Allow constant propagation into src1 (except on Gen 6), and let - * constant combining promote the constant on Gen < 8. - * - * While Gen 6 MATH can take a scalar source, its source and - * destination offsets must be equal and we cannot ensure that. + /* Allow constant propagation into src1, and let constant combining + * promote the constant on Gen < 8. */ - if (devinfo->gen == 6) - break; /* fallthrough */ case BRW_OPCODE_BFI1: case BRW_OPCODE_ASR: |