]> 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)
commit8dbb2a6c85accbc27440101c89e78af8e25b4b31
tree0a7cca668ed759810538eb8389015ad6ca5c1a8c
parent300c5fb3ff3578d943cfec60f24edb52158c39a9
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