Skip to content
Snippets Groups Projects
Commit 2fc362f1 authored by Lucas Stach's avatar Lucas Stach Committed by Emil Velikov
Browse files

etnaviv: force vertex buffers through the MMU


This fixes a vertex data corruption issue if some of the vertex streams
go through the MMU and some don't.

Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Tested-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Acked-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
(cherry picked from commit e158b749)
Nominated-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
parent 89b51c7e
No related branches found
No related tags found
No related merge requests found
......@@ -201,7 +201,10 @@ etna_resource_alloc(struct pipe_screen *pscreen, unsigned layout,
size = setup_miptree(rsc, paddingX, paddingY, msaa_xscale, msaa_yscale);
struct etna_bo *bo = etna_bo_new(screen->dev, size, DRM_ETNA_GEM_CACHE_WC);
uint32_t flags = DRM_ETNA_GEM_CACHE_WC;
if (templat->bind & PIPE_BIND_VERTEX_BUFFER)
flags |= DRM_ETNA_GEM_FORCE_MMU;
struct etna_bo *bo = etna_bo_new(screen->dev, size, flags);
if (unlikely(bo == NULL)) {
BUG("Problem allocating video memory for resource");
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment