vc4: Simplify pack header usage
authorEric Anholt <eric@anholt.net>
Sun, 11 Dec 2016 22:59:17 +0000 (14:59 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 30 Jun 2017 19:25:45 +0000 (12:25 -0700)
commit8d36bd3d086f2a3ab76b06ca21f3b1b2d12f7277
treef5fbc0cfbadeb6d2ea4ff4f9abbe4f232da7b41c
parent4cef255872e8467aabce52938038a9d2bf27d9b2
vc4: Simplify pack header usage

Take the CL pointer in, which will be useful for enabling relocs.
However, our code expands a bit more:

before:
   4449       0       0    4449    1161 src/gallium/drivers/vc4/.libs/vc4_draw.o
    988       0       0     988     3dc src/gallium/drivers/vc4/.libs/vc4_emit.o

after:
   4481       0       0    4481    1181 src/gallium/drivers/vc4/.libs/vc4_draw.o
   1020       0       0    1020     3fc src/gallium/drivers/vc4/.libs/vc4_emit.o
src/gallium/drivers/vc4/vc4_cl.h
src/gallium/drivers/vc4/vc4_draw.c
src/gallium/drivers/vc4/vc4_emit.c
src/gallium/drivers/vc4/vc4_job.c