shader: Use swizzle_writer in get_source_info

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Akihiko Odaki 3 years ago
parent 234b2498a9
commit b92978744d
  1. 5
      src/vrend_shader.c

@ -4147,8 +4147,6 @@ get_source_info(struct dump_ctx *ctx,
sinfo->override_no_wm[i] = false; sinfo->override_no_wm[i] = false;
sinfo->override_no_cast[i] = false; sinfo->override_no_cast[i] = false;
if (isfloatabsolute)
swizzle[swz_idx++] = ')';
if (src->Register.Negate) if (src->Register.Negate)
prefix[pre_idx++] = '-'; prefix[pre_idx++] = '-';
@ -4172,6 +4170,9 @@ get_source_info(struct dump_ctx *ctx,
swizzle_writer = src_swizzle0; swizzle_writer = src_swizzle0;
} }
if (isfloatabsolute)
swizzle_writer[swz_idx++] = ')';
usage_mask |= 1 << src->Register.SwizzleX; usage_mask |= 1 << src->Register.SwizzleX;
usage_mask |= 1 << src->Register.SwizzleY; usage_mask |= 1 << src->Register.SwizzleY;
usage_mask |= 1 << src->Register.SwizzleZ; usage_mask |= 1 << src->Register.SwizzleZ;

Loading…
Cancel
Save