brw: Use brw_range in IP ranges analysis

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34253>
This commit is contained in:
Caio Oliveira
2025-03-13 15:48:37 -07:00
committed by Marge Bot
parent fb50461220
commit f56a5cf1eb
8 changed files with 29 additions and 29 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ brw_ip_ranges::validate(const brw_shader *s) const
if (num_blocks) {
bblock_t *last_block = s->cfg->blocks[num_blocks - 1];
unsigned last_ip = end(last_block);
unsigned last_ip = range(last_block).end;
if (last_ip + 1 != s->cfg->total_instructions)
return false;
}