diff options
author | Eric Anholt <[email protected]> | 2015-01-10 14:30:25 +1300 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-01-10 15:24:56 +1300 |
commit | b920ecf793bd419558a240014624add08774765d (patch) | |
tree | b1ae0fb208547b3e14237f2fe202fb328500c937 /src/gallium/drivers/vc4/vc4_qir.h | |
parent | c772c92153fdcd4ba4920b7ef1745ce83b09603b (diff) |
vc4: Cook up the draw-time VPM setup info during shader compile.
This will give the compiler the chance to dead-code eliminate unused VPM
reads. This is particularly a big deal in the CS where a bunch of vattrs
are just not going to be used.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.h')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h index ebec7ccfbe3..d2f89ae9e69 100644 --- a/src/gallium/drivers/vc4/vc4_qir.h +++ b/src/gallium/drivers/vc4/vc4_qir.h @@ -312,6 +312,8 @@ struct vc4_compile { struct qreg line_x, point_x, point_y; struct qreg discard; + uint8_t vattr_sizes[8]; + /** * Array of the TGSI semantics of all FS QFILE_VARY reads. * |