vc4: Make a helper function for getting the current offset in the CL.
authorEric Anholt <eric@anholt.net>
Fri, 10 Jul 2015 21:46:42 +0000 (14:46 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 14 Jul 2015 18:31:57 +0000 (11:31 -0700)
commita0d3915663fb7cbd3c1a5561450e256e00ecf11b
tree547186d4059f86df6a86b7387151b987ed1e3127
parent748bf459b46b44e184ee1d425ce612da61a0800e
vc4: Make a helper function for getting the current offset in the CL.

I needed to rewrite this a bit for safety checking in the next commit.
Despite being a static inline of the same thing that was being done, we
lose 36 bytes of code for some reason.
src/gallium/drivers/vc4/vc4_cl.c
src/gallium/drivers/vc4/vc4_cl.h
src/gallium/drivers/vc4/vc4_context.c
src/gallium/drivers/vc4/vc4_job.c