mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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:
parent
362756ad09
commit
253b795451
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue