summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-08-22 14:58:28 -0700
committerEric Anholt <eric@anholt.net>2016-08-24 10:43:22 -0700
commit87a88f2daabfe14b12d447b3d96b9f8938c5cf03 (patch)
tree3a7ec52a504165a353f1eb63001ec7beb53a7763 /src/gallium/drivers/vc4/vc4_qir.h
parent5277f25480a290b02c7bfe548c56288fce8404b5 (diff)
downloadexternal_mesa3d-87a88f2daabfe14b12d447b3d96b9f8938c5cf03.zip
external_mesa3d-87a88f2daabfe14b12d447b3d96b9f8938c5cf03.tar.gz
external_mesa3d-87a88f2daabfe14b12d447b3d96b9f8938c5cf03.tar.bz2
vc4: Fix GPU hangs with >16 varying values.
Fixes glsl-routing in piglit and hangs in glbenchmark 2.0.2.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h
index 12b081b..6b48959 100644
--- a/src/gallium/drivers/vc4/vc4_qir.h
+++ b/src/gallium/drivers/vc4/vc4_qir.h
@@ -494,6 +494,18 @@ struct vc4_compile {
uint32_t qpu_inst_size;
uint32_t num_inputs;
+ /**
+ * Number of inputs from num_inputs remaining to be queued to the read
+ * FIFO in the VS/CS.
+ */
+ uint32_t num_inputs_remaining;
+
+ /* Number of inputs currently in the read FIFO for the VS/CS */
+ uint32_t num_inputs_in_fifo;
+
+ /** Next offset in the VPM to read from in the VS/CS */
+ uint32_t vpm_read_offset;
+
uint32_t program_id;
uint32_t variant_id;
};