etnaviv: isa: Add rouding to etna_inst
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28183>
This commit is contained in:
committed by
Marge Bot
parent
feacc7239c
commit
8de9be6eb1
@@ -56,6 +56,7 @@ struct etna_inst_src {
|
||||
struct etna_inst {
|
||||
enum isa_opc opcode;
|
||||
enum isa_type type;
|
||||
enum isa_rounding rounding;
|
||||
enum isa_cond cond : 5;
|
||||
unsigned sat : 1; /* saturate result between 0..1 */
|
||||
unsigned sel_bit0 : 1; /* select low half mediump */
|
||||
|
||||
@@ -154,8 +154,10 @@ etna_emit_alu(struct etna_compile *c, nir_op op, struct etna_inst_dst dst,
|
||||
case nir_op_flog2:
|
||||
case nir_op_fsin:
|
||||
case nir_op_fcos:
|
||||
if (c->specs->has_new_transcendentals)
|
||||
if (c->specs->has_new_transcendentals) {
|
||||
inst.tex.amode = 1;
|
||||
inst.rounding = ISA_ROUNDING_RTZ;
|
||||
}
|
||||
FALLTHROUGH;
|
||||
case nir_op_frsq:
|
||||
case nir_op_frcp:
|
||||
|
||||
Reference in New Issue
Block a user