Commit 8f3e5363 authored by Topi Pohjolainen's avatar Topi Pohjolainen

i965/fs: add support for BRW_OPCODE_AVG in fs_generator

Needed for compiling blorp blit programs.
Signed-off-by: Topi Pohjolainen's avatarTopi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Paul Berry's avatarPaul Berry <stereotype441@gmail.com>
parent 9927d7ae
......@@ -1433,6 +1433,9 @@ fs_generator::generate_code(exec_list *instructions, FILE *dump_file)
case BRW_OPCODE_MUL:
brw_MUL(p, dst, src[0], src[1]);
break;
case BRW_OPCODE_AVG:
brw_AVG(p, dst, src[0], src[1]);
break;
case BRW_OPCODE_MACH:
brw_set_acc_write_control(p, 1);
brw_MACH(p, dst, src[0], src[1]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment