mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/spirv: Do not normalise Shader Model 6 shaders.
This commit is contained in:
parent
8fe6d2eeac
commit
f26d47585f
Notes:
Alexandre Julliard
2023-07-20 22:57:52 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/278
@ -1199,6 +1199,9 @@ enum vkd3d_result vkd3d_shader_normalise(struct vkd3d_shader_parser *parser)
|
||||
struct vkd3d_shader_instruction_array *instructions = &parser->instructions;
|
||||
enum vkd3d_result result = VKD3D_OK;
|
||||
|
||||
if (parser->shader_desc.is_dxil)
|
||||
return result;
|
||||
|
||||
if (parser->shader_version.type == VKD3D_SHADER_TYPE_HULL
|
||||
&& (result = instruction_array_flatten_hull_shader_phases(instructions)) >= 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user