diff options
author | Nicolai Hähnle <[email protected]> | 2016-04-06 16:27:21 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-04-07 13:15:05 -0500 |
commit | cc39879989a1f24c232a7d1b7037c4d3fcff2ce2 (patch) | |
tree | 3d7a8eff7833622e7438fac79ed97a7cd7d23dc8 /src/gallium/auxiliary/tgsi/tgsi_scan.c | |
parent | 040f5cb09edef9b54510ca4b41c44f59a1f01fc3 (diff) |
draw/aaline: stronger guard against no free samplers (v2)
Line anti-aliasing will fail when there is no free sampler available. Make
the corresponding guard more robust in preparation of raising
PIPE_MAX_SAMPLERS to 32.
The literal 1 is a (signed) int, and shifting into the sign bit is undefined
in C, so change occurences of 1 to 1u.
v2: add an assert for bitfield size and use 1u << idx
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]> (v1)
Reviewed-by: Bas Nieuwenhuizen <[email protected]> (v1)
Reviewed-by: Marek Olšák <[email protected]> (v1)
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_scan.c')
0 files changed, 0 insertions, 0 deletions