mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Parse the Sample() method.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
4dfe66b1f1
commit
d76d777876
@@ -651,6 +651,14 @@ static void compute_liveness_recurse(struct hlsl_block *block, unsigned int loop
|
||||
var->last_read = max(var->last_read, var_last_read);
|
||||
if (load->resource.offset.node)
|
||||
load->resource.offset.node->last_read = instr->index;
|
||||
|
||||
if ((var = load->sampler.var))
|
||||
{
|
||||
var->last_read = max(var->last_read, var_last_read);
|
||||
if (load->sampler.offset.node)
|
||||
load->sampler.offset.node->last_read = instr->index;
|
||||
}
|
||||
|
||||
load->coords.node->last_read = instr->index;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user