i965/fs: add support for BRW_OPCODE_AVG in fs_generator
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 17 Dec 2013 14:39:16 +0000 (16:39 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 23 Jan 2014 06:47:12 +0000 (08:47 +0200)
Needed for compiling blorp blit programs.

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp

index 7f70b920da38fd864b48efbd00fc83b6c657757e..121f73343cfe31b522a1cb6b3546972aef32a216 100644 (file)
@@ -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]);