pan/bi: Allow negating constants
Useful for representing -0 in transcendental sequences matching the blob. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9420>
This commit is contained in:

committed by
Marge Bot

parent
362756ad09
commit
253b795451
@@ -187,7 +187,6 @@ bi_byte(bi_index idx, unsigned lane)
|
||||
static inline bi_index
|
||||
bi_abs(bi_index idx)
|
||||
{
|
||||
assert(idx.type != BI_INDEX_CONSTANT);
|
||||
idx.abs = true;
|
||||
return idx;
|
||||
}
|
||||
@@ -195,7 +194,6 @@ bi_abs(bi_index idx)
|
||||
static inline bi_index
|
||||
bi_neg(bi_index idx)
|
||||
{
|
||||
assert(idx.type != BI_INDEX_CONSTANT);
|
||||
idx.neg ^= true;
|
||||
return idx;
|
||||
}
|
||||
|
Reference in New Issue
Block a user