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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user