Commit 5392835f authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Record sampler usage for ld_structured.

parent bff1ecac
...@@ -1385,6 +1385,12 @@ static HRESULT shader_get_registers_used(struct wined3d_shader *shader, const st ...@@ -1385,6 +1385,12 @@ static HRESULT shader_get_registers_used(struct wined3d_shader *shader, const st
shader_record_sample(reg_maps, ins.src[1].reg.idx[0].offset, shader_record_sample(reg_maps, ins.src[1].reg.idx[0].offset,
WINED3D_SAMPLER_DEFAULT, reg_maps->sampler_map.count); WINED3D_SAMPLER_DEFAULT, reg_maps->sampler_map.count);
} }
else if (ins.handler_idx == WINED3DSIH_LD_STRUCTURED
&& ins.src[2].reg.type == WINED3DSPR_RESOURCE)
{
shader_record_sample(reg_maps, ins.src[2].reg.idx[0].offset,
WINED3D_SAMPLER_DEFAULT, reg_maps->sampler_map.count);
}
if (ins.predicate) if (ins.predicate)
if (!shader_record_register_usage(shader, reg_maps, &ins.predicate->reg, if (!shader_record_register_usage(shader, reg_maps, &ins.predicate->reg,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment