pan/bi: Add isub op
Can't be a regular ADD since there's no negate modifier for integers (it's a different opcode entirely). Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4139>
This commit is contained in:
parent
acab788578
commit
55f0d811e4
|
@ -120,6 +120,7 @@ bi_class_name(enum bi_class cl)
|
|||
case BI_DISCARD: return "discard";
|
||||
case BI_FMA: return "fma";
|
||||
case BI_FREXP: return "frexp";
|
||||
case BI_ISUB: return "isub";
|
||||
case BI_LOAD: return "load";
|
||||
case BI_LOAD_UNIFORM: return "load_uniform";
|
||||
case BI_LOAD_ATTR: return "load_attr";
|
||||
|
|
|
@ -38,6 +38,7 @@ unsigned bi_class_props[BI_NUM_CLASSES] = {
|
|||
[BI_DISCARD] = BI_SCHED_HI_LATENCY,
|
||||
[BI_FMA] = BI_ROUNDMODE | BI_SCHED_FMA,
|
||||
[BI_FREXP] = BI_SCHED_ALL,
|
||||
[BI_ISUB] = BI_GENERIC | BI_SCHED_ALL,
|
||||
[BI_LOAD] = BI_SCHED_HI_LATENCY,
|
||||
[BI_LOAD_UNIFORM] = BI_SCHED_HI_LATENCY,
|
||||
[BI_LOAD_ATTR] = BI_SCHED_HI_LATENCY,
|
||||
|
|
|
@ -233,6 +233,8 @@ bi_class_for_nir_alu(nir_op op)
|
|||
case nir_op_fadd:
|
||||
case nir_op_fsub:
|
||||
return BI_ADD;
|
||||
case nir_op_isub:
|
||||
return BI_ISUB;
|
||||
|
||||
case nir_op_i2i8:
|
||||
case nir_op_i2i16:
|
||||
|
|
|
@ -58,6 +58,7 @@ enum bi_class {
|
|||
BI_DISCARD,
|
||||
BI_FMA,
|
||||
BI_FREXP,
|
||||
BI_ISUB,
|
||||
BI_LOAD,
|
||||
BI_LOAD_UNIFORM,
|
||||
BI_LOAD_ATTR,
|
||||
|
|
Loading…
Reference in New Issue