zink: add push constant handling to get_storage_class()
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 18 Dec 2020 01:32:42 +0000 (20:32 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Dec 2020 13:46:38 +0000 (13:46 +0000)
Reviewed-by: Erik Faye-Lund <kusmabite@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8152>

src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c

index 956be561c647eb713d8868b0c0417fb17849ee4d..73a6e8d2a7302eb1fb1b1fd015e874e8d81f6e63 100644 (file)
@@ -184,6 +184,8 @@ static SpvStorageClass
 get_storage_class(struct nir_variable *var)
 {
    switch (var->data.mode) {
+   case nir_var_mem_push_const:
+      return SpvStorageClassPushConstant;
    case nir_var_shader_in:
       return SpvStorageClassInput;
    case nir_var_shader_out: