commit | 940fba68c903d9b4da2d99a68f1c06c53d4fe82a | [log] [tgz] |
---|---|---|
author | Brian Paul <brianp@vmware.com> | Mon Nov 06 18:11:38 2017 -0700 |
committer | Brian Paul <brianp@vmware.com> | Thu Nov 16 20:35:17 2017 -0700 |
tree | 4f20c831cb791f97742005e0a550a4b4595216b5 | |
parent | d4726b13183c45fbc0869596c128f7c030b3cd9c [diff] |
util/tgsi: use ASSERT_BITFIELD_SIZE() to check opcode field size I've noticed at least two places where we store the TGSI opcode in an unsigned:8 bitfield. We're at 249 opcodes now. If we hit 256 we'll need to grow those bitfields. Use the new ASSERT_BITFIELD_SIZE() macro to detect that. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>