diff options
author | Jason Ekstrand <[email protected]> | 2018-10-22 15:35:06 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-12-16 21:03:02 +0000 |
commit | 2fe8708ffda532fe13aab96a19bc1fb9c3fec68f (patch) | |
tree | 8ca1919e7c9df6e43ba48f705eebb089e38df7ca /include/GLES2 | |
parent | 80e8dfe9dead5a034f8e5ae3f92cc60e99de88b6 (diff) |
nir/constant_expressions: Rework Boolean handling
This commit contains three related changes. First, we define boolN_t
for N = 8, 16, and 64 and move the definition of boolN_vec to the loop
with the other vec definitions. Second, there's no reason why we need
the != 0 on the source because that happens implicitly when it's
converted to bool. Third, for destinations, we use a signed integer
type and just do -(int)bool_val which will give us the 0/-1 behavior we
want and neatly scales to all bit widths.
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Tested-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'include/GLES2')
0 files changed, 0 insertions, 0 deletions