From e6764348564e2f865f382a81eae3ccfbf957d2fd Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 25 Jul 2017 16:13:57 -0700 Subject: mesa: Implement a new GL_MESA_tile_raster_order extension. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The intent is to use this extension on vc4 to allow X11 to do overlapping CopyArea() within a pixmap without first blitting the pixmap to a temporary. With associated glamor patches, improves x11perf -copywinwin100 performance on a Raspberry Pi 3 from ~4700/sec to ~5130/sec, and is an even larger boost to uncomposited window movement performance (most copywinwin100 copies don't overlap). v2: Fix glIsEnabled() on the new enums. v3: Drop the local spec since I'm upstreaming the spec. Reviewed-by: Nicolai Hähnle --- src/mesa/main/context.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/main/context.c') diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 676103d4778..6d24b93c192 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -867,6 +867,8 @@ init_attrib_groups(struct gl_context *ctx) return GL_FALSE; /* Miscellaneous */ + ctx->TileRasterOrderIncreasingX = GL_TRUE; + ctx->TileRasterOrderIncreasingY = GL_TRUE; ctx->NewState = _NEW_ALL; ctx->NewDriverState = ~0; ctx->ErrorValue = GL_NO_ERROR; -- cgit v1.2.3