drm/etnaviv: Allow DRAW_INSTANCED commands
authorWladimir J. van der Laan <laanwj@gmail.com>
Fri, 11 Nov 2016 16:57:54 +0000 (17:57 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 2 Dec 2016 18:30:22 +0000 (19:30 +0100)
commit557800532ebdec4fc460876af4e3c216d23a184d
tree0a7cca668ed759810538eb8389015ad6ca5c1a8c
parent5688e57eb50c08922d0ff88bb30fe65b508917a0
drm/etnaviv: Allow DRAW_INSTANCED commands

Vivante GPUs with HALTI0 feature support a DRAW_INSTANCED command in the
command stream to draw a number of instances of the same geometry.

The information that has been figured out about the command can be found
here: https://github.com/etnaviv/etna_viv/blob/master/rnndb/cmdstream.xml#L270

This command is not allowed currently by the DRM driver because it
was not known before. This patch enables parsing it in command
streams and allows using it by userspace drivers.

Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/cmdstream.xml.h
drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c