summaryrefslogtreecommitdiff
path: root/glamor/glamor.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-03-15 13:27:14 -0700
committerKeith Packard <keithp@keithp.com>2014-05-23 10:27:19 -0700
commit94aa21d8bebd88b2b6040fa696b61ad3ac890537 (patch)
treed7fbbdf76f74b9cef2f1a8fc54a6271e654ee9b3 /glamor/glamor.c
parentd147bc44eb7bc630bbf68aedce42fbfe797e4b14 (diff)
glamor: Replace fallback preparation code
These offer a simpler and more efficient means for temporarily transitioning to CPU-accessible memory for fallback implementations. v2: Do not attempt fallbacks with GLAMOR_DRM_ONLY pixmaps glamor cannot transfer pixels for GLAMOR_DRM_ONLY pixmaps using glReadPixels and glTexSubImage2D, and so there's no way to perform fallback operations with these pixmaps. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'glamor/glamor.c')
-rw-r--r--glamor/glamor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/glamor/glamor.c b/glamor/glamor.c
index 08f6ba174..6aaf1b40f 100644
--- a/glamor/glamor.c
+++ b/glamor/glamor.c
@@ -397,6 +397,10 @@ glamor_init(ScreenPtr screen, unsigned int flags)
}
}
+ glamor_priv->has_rw_pbo = FALSE;
+ if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP)
+ glamor_priv->has_rw_pbo = TRUE;
+
glamor_priv->has_khr_debug = epoxy_has_gl_extension("GL_KHR_debug");
glamor_priv->has_pack_invert =
epoxy_has_gl_extension("GL_MESA_pack_invert");