mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
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:
parent
8a6934dfe8
commit
7a7ac8cd40
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ validate_dst(struct ir3_validate_ctx *ctx, struct ir3_instruction *instr,
|
||||||
|
|
||||||
#define validate_reg_size(ctx, reg, type) \
|
#define validate_reg_size(ctx, reg, type) \
|
||||||
validate_assert( \
|
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
|
static void
|
||||||
validate_instr(struct ir3_validate_ctx *ctx, struct ir3_instruction *instr)
|
validate_instr(struct ir3_validate_ctx *ctx, struct ir3_instruction *instr)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue