]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedb66df4e148fa654eaafa986319b9f8c8a3a4f2
tree0a7cca668ed759810538eb8389015ad6ca5c1a8c
parent34f6079d4d9f62a613a3f07568cc6cf984a9fadd
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