mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/hlsl: Parse sampler_state.
This commit is contained in:
committed by
Henri Verbeet
parent
f47d523e0b
commit
caa2a9d314
Notes:
Henri Verbeet
2024-10-02 22:37:40 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1112
@@ -4062,6 +4062,7 @@ static bool dce(struct hlsl_ctx *ctx, struct hlsl_ir_node *instr, void *context)
|
||||
case HLSL_IR_RESOURCE_LOAD:
|
||||
case HLSL_IR_STRING_CONSTANT:
|
||||
case HLSL_IR_SWIZZLE:
|
||||
case HLSL_IR_SAMPLER_STATE:
|
||||
if (list_empty(&instr->uses))
|
||||
{
|
||||
list_remove(&instr->entry);
|
||||
@@ -4344,7 +4345,8 @@ static void compute_liveness_recurse(struct hlsl_block *block, unsigned int loop
|
||||
case HLSL_IR_STRING_CONSTANT:
|
||||
break;
|
||||
case HLSL_IR_COMPILE:
|
||||
/* Compile calls are skipped as they are only relevent to effects. */
|
||||
case HLSL_IR_SAMPLER_STATE:
|
||||
/* These types are skipped as they are only relevant to effects. */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user