nir: add shader_info::bit_sizes_used

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4791>
This commit is contained in:
Rhys Perry
2020-10-29 10:52:25 +00:00
committed by Marge Bot
parent 7d3df69914
commit 4e5c85526b
4 changed files with 18 additions and 10 deletions

View File

@@ -187,10 +187,9 @@ typedef struct shader_info {
*/
bool uses_fddx_fddy:1;
/**
* True if this shader uses 64-bit ALU operations
*/
bool uses_64bit:1;
/* Bitmask of bit-sizes used with ALU instructions. */
uint8_t bit_sizes_float;
uint8_t bit_sizes_int;
/* Whether the first UBO is the default uniform buffer, i.e. uniforms. */
bool first_ubo_is_default_ubo:1;