aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-12-06 11:00:16 +1000
committerDave Airlie <airlied@redhat.com>2016-12-06 11:00:16 +1000
commit770ac20413ce654f6e4efaaf24e954ebb907fc3b (patch)
treed4eb8e5a8ffcdf9aa4b46ee6b281a033c5e34393 /drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c
parent9ac63d99732ad221ad2606e7910ed4bec4763d84 (diff)
parentc4ae94a36c76a901149b24d297f7b9c7aad3eb89 (diff)
downloadkernel_replicant_linux-770ac20413ce654f6e4efaaf24e954ebb907fc3b.tar.gz
kernel_replicant_linux-770ac20413ce654f6e4efaaf24e954ebb907fc3b.tar.bz2
kernel_replicant_linux-770ac20413ce654f6e4efaaf24e954ebb907fc3b.zip
Merge branch 'drm-etnaviv-next' of git://git.pengutronix.de/lst/linux into drm-next
- fix dma-buf export path to return correct SG table - trivially implement direct dma-buf mapping - allow DRAW_INSTANCED commands in validator - make the driver work on i.MX6SX, yielding a working 2D/3D stack together with Mareks MXS DRM driver * 'drm-etnaviv-next' of git://git.pengutronix.de/lst/linux: MAINTAINERS: add etnaviv mailinglist drm/etnaviv: move linear window on MC1.0 parts if necessary drm/etnaviv: don't invoke OOM killer from dump code drm/etnaviv: fix gem_prime_get_sg_table to return new SG table drm/etnaviv: Allow DRAW_INSTANCED commands drm/etnaviv: implement dma-buf mmap
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c')
-rw-r--r--drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c b/drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c
index dcfd565c88d1..2a2e5e366ab7 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c
@@ -143,6 +143,7 @@ static bool etnaviv_validate_load_state(struct etna_validation_state *state,
static uint8_t cmd_length[32] = {
[FE_OPCODE_DRAW_PRIMITIVES] = 4,
[FE_OPCODE_DRAW_INDEXED_PRIMITIVES] = 6,
+ [FE_OPCODE_DRAW_INSTANCED] = 4,
[FE_OPCODE_NOP] = 2,
[FE_OPCODE_STALL] = 2,
};