Commit 9e79b9ff authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Pass "shader->function" as source to vkd3d_shader_scan() in shader_spirv_scan_shader().

Much like we do in shader_spirv_find_graphics_program_variant_vk() for shader_spirv_compile_shader(). When compiling an Aon9 shader, "shader->byte_code" points to the DXBC container, while "shader->function" points to the contained d3dbc shader.
parent 440edde5
......@@ -751,8 +751,16 @@ static void shader_spirv_scan_shader(struct wined3d_shader *shader,
info.type = VKD3D_SHADER_STRUCTURE_TYPE_COMPILE_INFO;
info.next = descriptor_info;
info.source.code = shader->byte_code;
info.source.size = shader->byte_code_size;
if (shader->source_type == VKD3D_SHADER_SOURCE_D3D_BYTECODE)
{
info.source.code = shader->function;
info.source.size = shader->functionLength;
}
else
{
info.source.code = shader->byte_code;
info.source.size = shader->byte_code_size;
}
info.source_type = shader->source_type;
info.target_type = VKD3D_SHADER_TARGET_SPIRV_BINARY;
info.options = spirv_compile_options;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment