Skip to content
Snippets Groups Projects
Commit 37b67db6 authored by Ilia Mirkin's avatar Ilia Mirkin
Browse files

nvc0/ir: be careful about propagating very large offsets into const load


Indirect constbuf indexing works by using very large offsets. However if
an indirect constbuf index load is const-propagated, it becomes a very
large const offset. Take that into account when legalizing the SSA by
moving the high parts of that offset into the file index. Also disallow
very large (or small) indices on most other instructions.

This fixes regressions in ubo_array_indexing/*-two-arrays piglit tests.

Fixes: abd326e8 (nv50/ir: propagate indirect loads into instructions)
Signed-off-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
parent 7a521ddf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment