mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 11:58:10 +02:00
i965/fs: Use unsigned immediate 0 when eliminating SHADER_OPCODE_FIND_LIVE_CHANNEL
The destination for SHADER_OPCODE_FIND_LIVE_CHANNEL is always a UD register. When we replace the opcode with a MOV, make sure we use a UD immediate 0 so copy propagation doesn't bail because of non-matching types. Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Kristian Høgsberg Kristensen <krh@bitplanet.net>
This commit is contained in:
parent
24a3a697e5
commit
aedc0aab19
1 changed files with 1 additions and 1 deletions
|
|
@ -2614,7 +2614,7 @@ fs_visitor::eliminate_find_live_channel()
|
|||
case SHADER_OPCODE_FIND_LIVE_CHANNEL:
|
||||
if (depth == 0) {
|
||||
inst->opcode = BRW_OPCODE_MOV;
|
||||
inst->src[0] = fs_reg(0);
|
||||
inst->src[0] = fs_reg(0u);
|
||||
inst->sources = 1;
|
||||
inst->force_writemask_all = true;
|
||||
progress = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue