mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 10:20:09 +01:00
freedreno/ir3: add assert
The special handling for last_input assumes that all the varying loads are in the first block. Add an assert to catch if anyone breaks that assumption. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
8c74772edc
commit
73fb02c5d6
1 changed files with 2 additions and 0 deletions
|
|
@ -278,6 +278,8 @@ legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block)
|
|||
}
|
||||
|
||||
if (last_input) {
|
||||
assert(block == list_first_entry(&block->shader->block_list,
|
||||
struct ir3_block, node));
|
||||
/* special hack.. if using ldlv to bypass interpolation,
|
||||
* we need to insert a dummy bary.f on which we can set
|
||||
* the (ei) flag:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue