summaryrefslogtreecommitdiffstats
path: root/src/mesa/x86
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-05-25 21:54:39 -0400
committerIlia Mirkin <[email protected]>2016-05-26 21:23:49 -0400
commit04ecad97ff7b44bd9afd1bff9108dea199723829 (patch)
treeac2ef9899856ab1d9c23a43640f0ed12f25cba1b /src/mesa/x86
parent4f98c94be7e56a535a6b84a5561ae071e052c1e2 (diff)
nvc0/ir: avoid generating illegal instructions for compute constbuf loads
For user-supplied constbufs, fileIndex is 0. In that case, when we subtract 1, we'll end up loading from constbuf offset -16. This is illegal, and there are asserts to avoid it. Normally we'd just DCE it, but no point in generating the instructions if they're not going to be used. Signed-off-by: Ilia Mirkin <[email protected]> Acked-by: Hans de Goede <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/mesa/x86')
0 files changed, 0 insertions, 0 deletions