freedreno/ir3: Fix reg size validation

8b types also live in half-regs

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13300>
This commit is contained in:
Rob Clark 2021-08-23 17:18:55 -07:00 committed by Marge Bot
parent 8a6934dfe8
commit 7a7ac8cd40

View file

@ -158,7 +158,7 @@ validate_dst(struct ir3_validate_ctx *ctx, struct ir3_instruction *instr,
#define validate_reg_size(ctx, reg, type) \
validate_assert( \
ctx, type_size(type) == (((reg)->flags & IR3_REG_HALF) ? 16 : 32))
ctx, (type_size(type) <= 16) == !!((reg)->flags & IR3_REG_HALF))
static void
validate_instr(struct ir3_validate_ctx *ctx, struct ir3_instruction *instr)