mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Map the colour output for ps_1_* to r0.
This commit is contained in:
committed by
Alexandre Julliard
parent
b2959739ed
commit
8b57a612d7
Notes:
Alexandre Julliard
2023-05-03 22:38:49 +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/168
@@ -1832,7 +1832,12 @@ static void write_sm1_store(struct hlsl_ctx *ctx, struct vkd3d_bytecode_buffer *
|
||||
|
||||
if (store->lhs.var->is_output_semantic)
|
||||
{
|
||||
if (!hlsl_sm1_register_from_semantic(ctx, &store->lhs.var->semantic,
|
||||
if (ctx->profile->type == VKD3D_SHADER_TYPE_PIXEL && ctx->profile->major_version == 1)
|
||||
{
|
||||
sm1_instr.dst.type = D3DSPR_TEMP;
|
||||
sm1_instr.dst.reg = 0;
|
||||
}
|
||||
else if (!hlsl_sm1_register_from_semantic(ctx, &store->lhs.var->semantic,
|
||||
true, &sm1_instr.dst.type, &sm1_instr.dst.reg))
|
||||
{
|
||||
assert(reg.allocated);
|
||||
|
Reference in New Issue
Block a user