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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user