mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
i965: Bail on vec4 copy propagation for scratch writes with source modifiers
Fixes Khronos GLES3 CTS test: dynamic_expression_array_access_vertex Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
2b837576eb
commit
7c1ea00eaf
1 changed files with 4 additions and 0 deletions
|
|
@ -273,6 +273,10 @@ try_copy_propagate(struct brw_context *brw, vec4_instruction *inst,
|
|||
if (has_source_modifiers && value.type != inst->src[arg].type)
|
||||
return false;
|
||||
|
||||
if (has_source_modifiers &&
|
||||
inst->opcode == SHADER_OPCODE_GEN4_SCRATCH_WRITE)
|
||||
return false;
|
||||
|
||||
bool is_3src_inst = (inst->opcode == BRW_OPCODE_LRP ||
|
||||
inst->opcode == BRW_OPCODE_MAD ||
|
||||
inst->opcode == BRW_OPCODE_BFE ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue