summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTopi Pohjolainen <[email protected]>2013-12-17 16:39:16 +0200
committerTopi Pohjolainen <[email protected]>2014-01-23 08:47:12 +0200
commit8f3e5363ade53f300036660ff49b367fb282cc06 (patch)
tree0cd8758ef3de638ac0572b51a77fd2808f080fe3 /src
parent9927d7ae6883e2a5569130ed48ca0537ca3e07c3 (diff)
i965/fs: add support for BRW_OPCODE_AVG in fs_generator
Needed for compiling blorp blit programs. Signed-off-by: Topi Pohjolainen <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_generator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
index 7f70b920da3..121f73343cf 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -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]);