mesa/prog: relative offsets into constbufs are not constant
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 1 Jul 2015 22:22:23 +0000 (18:22 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 2 Jul 2015 17:29:51 +0000 (13:29 -0400)
commit197a19f9ed0ba12cc431542ac09f2af0a8bd0bce
treebce65b354f18d1d01cfba67f0188321a30c1ea2b
parentfe2b748a39ff676949fcefccf739aff967fc38c5
mesa/prog: relative offsets into constbufs are not constant

The optimization logic relies on being able to read out constbuf values
from program parameters. However that only works if there's no relative
addressing involved.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91173
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/program/prog_opt_constant_fold.c