mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 20:58:04 +02:00
zink: flag exact alu op results in ntv with NoContraction
this propagates the exact flag and ensures precision isn't lost during optimizations Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8660>
This commit is contained in:
parent
8b793f9567
commit
3fc8da13f6
1 changed files with 2 additions and 0 deletions
|
|
@ -1875,6 +1875,8 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
|
|||
unreachable("unsupported opcode");
|
||||
return;
|
||||
}
|
||||
if (alu->exact)
|
||||
spirv_builder_emit_decoration(&ctx->builder, result, SpvDecorationNoContraction);
|
||||
|
||||
store_alu_result(ctx, alu, result);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue