nir: add new helper passes that lower uniforms to literals

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6955>
This commit is contained in:
Marek Olšák
2020-09-29 17:34:28 -04:00
committed by Marge Bot
parent 10a7682413
commit 3f1b35a2f0
5 changed files with 214 additions and 0 deletions

View File

@@ -32,6 +32,8 @@
extern "C" {
#endif
#define MAX_INLINABLE_UNIFORMS 4
struct spirv_supported_capabilities {
bool address;
bool atomic_storage;
@@ -165,6 +167,9 @@ typedef struct shader_info {
/* SPV_KHR_float_controls: execution mode for floating point ops */
uint16_t float_controls_execution_mode;
uint16_t inlinable_uniform_dw_offsets[MAX_INLINABLE_UNIFORMS];
uint8_t num_inlinable_uniforms:4;
/* The size of the gl_ClipDistance[] array, if declared. */
uint8_t clip_distance_array_size:4;