ソースを参照

pan/midgard: Extend IS_VEC4_ONLY to arguments

I think both need to be aligned at least for ld_cubemap_coords.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
master
Alyssa Rosenzweig 6年前
親
コミット
06df977c1c
1個のファイルの変更、5行の追加、1行の削除
  1. 5
    1
      src/panfrost/midgard/midgard_ra.c

+ 5
- 1
src/panfrost/midgard/midgard_ra.c ファイルの表示

@@ -506,8 +506,12 @@ allocate_registers(compiler_context *ctx, bool *spilled)
set_class(l->class, ins->src[1], REG_CLASS_LDST);
set_class(l->class, ins->src[2], REG_CLASS_LDST);

if (OP_IS_VEC4_ONLY(ins->load_store.op))
if (OP_IS_VEC4_ONLY(ins->load_store.op)) {
lcra_restrict_range(l, ins->dest, 16);
lcra_restrict_range(l, ins->src[0], 16);
lcra_restrict_range(l, ins->src[1], 16);
lcra_restrict_range(l, ins->src[2], 16);
}
} else if (ins->type == TAG_TEXTURE_4) {
set_class(l->class, ins->dest, REG_CLASS_TEXW);
set_class(l->class, ins->src[0], REG_CLASS_TEXR);

読み込み中…
キャンセル
保存