i965/fs: Constant propagate into LOAD_PAYLOAD
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 24 Sep 2014 21:51:22 +0000 (14:51 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:15 +0000 (10:29 -0700)
Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp

index 322debf8fc0d2aef758a627e67b3a2cf17810a84..e1989cb5e4cd0b200a9a40d40a7a12a107fe5ba8 100644 (file)
@@ -455,6 +455,7 @@ fs_visitor::try_constant_propagate(fs_inst *inst, acp_entry *entry)
 
       switch (inst->opcode) {
       case BRW_OPCODE_MOV:
+      case SHADER_OPCODE_LOAD_PAYLOAD:
          inst->src[i] = val;
          progress = true;
          break;