vk/glsl: Replace raw casts
authorChad Versace <chad.versace@intel.com>
Wed, 15 Jul 2015 22:33:27 +0000 (15:33 -0700)
committerChad Versace <chad.versace@intel.com>
Wed, 15 Jul 2015 22:51:37 +0000 (15:51 -0700)
Needed for upcoming type-safety changes.

src/vulkan/glsl_scraper.py

index 918c156027ab4dfac65fac09cf77eee11ff8ab02..d15147127626ecb258ae5aa3e8334cd28567aa7b 100644 (file)
@@ -264,7 +264,7 @@ with open_file(outfname, 'w') as outfile:
             .codeSize = sizeof(_ANV_GLSL_SRC_VAR(__LINE__)),                  \\
             .pCode = _ANV_GLSL_SRC_VAR(__LINE__),                             \\
          };                                                                   \\
-         vkCreateShaderModule((VkDevice) device,                              \\
+         vkCreateShaderModule(anv_device_to_handle(device),                   \\
                               &__shader_create_info, &__module);              \\
          __module;                                                            \\
       })