mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
i965/fs: Emit compressed BFI2 instructions on Gen > 7.
IVB had a restriction that prevented us from emitting compressed three-source instructions, and although that was lifted on Haswell, Haswell had a new restriction that said BFI instructions specifically couldn't be compressed.
This commit is contained in:
parent
9f5e5bd34d
commit
3e7f8005db
1 changed files with 1 additions and 1 deletions
|
|
@ -1729,7 +1729,7 @@ fs_generator::generate_code(const cfg_t *cfg)
|
|||
* Otherwise we would be able to emit compressed instructions like we
|
||||
* do for the other three-source instructions.
|
||||
*/
|
||||
if (dispatch_width == 16) {
|
||||
if (dispatch_width == 16 && brw->gen < 8) {
|
||||
brw_set_default_compression_control(p, BRW_COMPRESSION_NONE);
|
||||
brw_BFI2(p, firsthalf(dst), firsthalf(src[0]), firsthalf(src[1]), firsthalf(src[2]));
|
||||
brw_set_default_compression_control(p, BRW_COMPRESSION_2NDHALF);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue