Lines Matching refs:module
55 struct panvk_shader_module *module;
61 module = vk_object_zalloc(&device->vk, pAllocator,
62 sizeof(*module) + pCreateInfo->codeSize,
64 if (module == NULL)
67 module->code_size = pCreateInfo->codeSize;
68 memcpy(module->code, pCreateInfo->pCode, pCreateInfo->codeSize);
70 _mesa_sha1_compute(module->code, module->code_size, module->sha1);
72 *pShaderModule = panvk_shader_module_to_handle(module);
83 VK_FROM_HANDLE(panvk_shader_module, module, _module);
85 if (!module)
88 vk_object_free(&device->vk, pAllocator, module);