On Wed Oct 26 04:45:16 2022 +0000, Francisco Casas wrote:
I think that handling the HLSL_IR_RESOURCE_STORE's deref is missing in transform_deref_paths_into_offsets(). Specifically:
case HLSL_IR_RESOURCE_STORE: replace_deref_path_with_offset(ctx, &hlsl_ir_resource_store(instr)->resource, instr);
I think it only matters if the UAV is a member of a struct, but still.
Yep, as I'm sure you predicted I wrote this patch before that commit. Fixed in v2.