mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Do not write DCL instructions for ps_1_* shaders.
This commit is contained in:
parent
99d413206b
commit
b19105eaeb
Notes:
Alexandre Julliard
2023-04-18 22:34:49 +02:00
Approved-by: Matteo Bruni (@Mystral) 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/152
@ -645,7 +645,7 @@ static void write_sm1_semantic_dcls(struct hlsl_ctx *ctx, struct vkd3d_bytecode_
|
||||
bool write_in = false, write_out = false;
|
||||
struct hlsl_ir_var *var;
|
||||
|
||||
if (ctx->profile->type == VKD3D_SHADER_TYPE_PIXEL)
|
||||
if (ctx->profile->type == VKD3D_SHADER_TYPE_PIXEL && ctx->profile->major_version >= 2)
|
||||
write_in = true;
|
||||
else if (ctx->profile->type == VKD3D_SHADER_TYPE_VERTEX && ctx->profile->major_version == 3)
|
||||
write_in = write_out = true;
|
||||
|
Loading…
Reference in New Issue
Block a user