drm/vc4: Fix missing \n in debug message.

Signed-off-by: Eric Anholt <eric@anholt.net>
drm/vc4: Fix incorrect return values.

This would have allowed these failures of validation to continue
execution.

Signed-off-by: Eric Anholt <eric@anholt.net>
drm/vc4: Add support for validating direct-address TMU reads.

This is used for variable-index uniform array lookups in GLSL.

Signed-off-by: Eric Anholt <eric@anholt.net>
drm/vc4: Fix failure to validate instructions with PROG_END flagged.

Signed-off-by: Eric Anholt <eric@anholt.net>
drm/vc4: Fix up vc4->dev and to_vc4_dev().

The driver.load() method takes in a drm_device *, we can't just
allocate our own structure for it.  Looks like we were just getting
lucky that our previous to_vc4_dev() uses didn't stomp on other
important memory.

Signed-off-by: Eric Anholt <eric@anholt.net>
drm/vc4: Drop dead BFC/RFC reading code.

This should have been part of "drm/vc4: Drop a debug message from
initial bringup."

Signed-off-by: Eric Anholt <eric@anholt.net>
drm/vc4: Use the semaphore to trigger render from bin.

Instead of making userland submit the right structure of their frames,
we just tack on the prefix for them.

Signed-off-by: Eric Anholt <eric@anholt.net>