i965: Support copy propagating of untyped atomic surface indexes.
In the vec4 backend, SHADER_OPCODE_UNTYPED_ATOMIC's src[1] is the surface index. We want to copy propagate so we can use an immediate message descriptor, rather than an indirect send. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
66342c997f
commit
a553eb0fdf
|
@ -190,6 +190,13 @@ try_constant_propagate(const struct gen_device_info *devinfo,
|
|||
inst->src[arg] = value;
|
||||
return true;
|
||||
|
||||
case SHADER_OPCODE_UNTYPED_ATOMIC:
|
||||
if (arg == 1) {
|
||||
inst->src[arg] = value;
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
||||
case SHADER_OPCODE_POW:
|
||||
case SHADER_OPCODE_INT_QUOTIENT:
|
||||
case SHADER_OPCODE_INT_REMAINDER:
|
||||
|
|
Loading…
Reference in New Issue