mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 19:20:08 +01: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) \
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue