tgsi.rst says it's not supported, and llvmpipe, r600, and virgl don't
support it. Make sure nobody else introduces them like I did while
testing only on softpipe.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8369>
def = nir_bitcast_vector(b, def, 64);
if (tgsi_src->Absolute) {
- if (src_is_float)
- def = nir_fabs(b, def);
- else
- def = nir_iabs(b, def);
+ assert(src_is_float);
+ def = nir_fabs(b, def);
}
if (tgsi_src->Negate) {
fetch_source_d(mach, chan, reg, chan_index);
if (reg->Register.Absolute) {
- if (src_datatype == TGSI_EXEC_DATA_FLOAT) {
- micro_abs(chan, chan);
- } else {
- micro_iabs(chan, chan);
- }
+ assert(src_datatype == TGSI_EXEC_DATA_FLOAT);
+ micro_abs(chan, chan);
}
if (reg->Register.Negate) {