mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
i965/vec4: Allow cmod propagation when src0 is a uniform or shader input
No shader-db changes. This source must have been written by a previous instruction, so it cannot be a uniform or a shader input. However, this change allows the next commit to help more shaders. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
020b0055e7
commit
780f307ba8
1 changed files with 2 additions and 1 deletions
|
|
@ -49,7 +49,8 @@ opt_cmod_propagation_local(bblock_t *block)
|
|||
inst->opcode != BRW_OPCODE_MOV) ||
|
||||
inst->predicate != BRW_PREDICATE_NONE ||
|
||||
!inst->dst.is_null() ||
|
||||
inst->src[0].file != VGRF ||
|
||||
(inst->src[0].file != VGRF && inst->src[0].file != ATTR &&
|
||||
inst->src[0].file != UNIFORM) ||
|
||||
inst->src[0].abs)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue