From: Jason Ekstrand Date: Wed, 24 Sep 2014 21:51:22 +0000 (-0700) Subject: i965/fs: Constant propagate into LOAD_PAYLOAD X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29f4c5b5d5d142f19283c06e77bedd4b3793657a;p=mesa.git i965/fs: Constant propagate into LOAD_PAYLOAD Signed-off-by: Jason Ekstrand Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp index 322debf8fc0..e1989cb5e4c 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp @@ -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;