mesa: correctly calculate the storage offset for i915
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 1 Aug 2017 07:35:06 +0000 (17:35 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 14 Aug 2017 22:20:57 +0000 (08:20 +1000)
commit365d34540f331df57780dddf8da87235be0a6bcb
tree948a12d4084a0cbb5c5a3fc5a48671b705453c36
parent1efd73df39b39589d26f44d4927d2c65697bbe6e
mesa: correctly calculate the storage offset for i915

When generating the storage offset for struct members we need
to skip opaque types as they no longer have backing storage.

Fixes: fcbb93e86024 ("mesa: stop assigning unused storage for non-bindless opaque types")
V2: simplify since bindless will never be supported in this code

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101983
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/ir_to_mesa.cpp