commit | 572c76fd882601a189496a1f8bd3a09db1621337 | [log] [tgz] |
---|---|---|
author | Rob Clark <robdclark@chromium.org> | Sun Jun 23 12:52:05 2019 -0700 |
committer | Eric Anholt <eric@anholt.net> | Mon Jun 24 14:23:07 2019 -0700 |
tree | e67719c16094784b3080338f6e30f3374effc181 | |
parent | c1ca1384751a7ef2770a8e4a5f835ad1ca423328 [diff] |
freedreno: Clamp UBO uploads to the constlen decided by the shader. If the NIR-level analysis decided to move UBO loads to the constant file, but the backend decided not to load those constants, we could upload past the end of constlen. This is particularly relevant for pre-a6xx, where we emit a different constlen between bin and render variants. (Fix by Rob, commit message by anholt) Reviewed-by: Eric Anholt <eric@anholt.net>