diff options
author | Adel Gadllah <adel.gadllah@gmail.com> | 2012-10-11 17:59:55 +0200 |
---|---|---|
committer | Adel Gadllah <adel.gadllah@gmail.com> | 2012-11-12 19:08:37 +0100 |
commit | 6b14fa222bafb7e67c4845b26439322b34ac26a2 (patch) | |
tree | 4fa3a529215f6978ef89269bedfca83782e0a571 /cogl/cogl-gpu-info.c | |
parent | afc5daab85e5faca99d6d6866658cb82c3954830 (diff) | |
download | cogl-6b14fa222bafb7e67c4845b26439322b34ac26a2.tar.gz |
cogl: Enable PBO path for all mesa versions when using intel
There seem to be other cases where the slow path is hit even with mesa 9.0.
https://bugzilla.gnome.org/show_bug.cgi?id=685915
Diffstat (limited to 'cogl/cogl-gpu-info.c')
-rw-r--r-- | cogl/cogl-gpu-info.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cogl/cogl-gpu-info.c b/cogl/cogl-gpu-info.c index 5bb0e659..0d23c977 100644 --- a/cogl/cogl-gpu-info.c +++ b/cogl/cogl-gpu-info.c @@ -540,14 +540,12 @@ probed: /* Determine the driver bugs */ - /* In Mesa < 8.0.2 the glReadPixels implementation is really slow - because it converts each pixel to a floating point representation - and back even if the data could just be memcpy'd. The Intel + /* In Mesa the glReadPixels implementation is really slow + when using the Intel driver. The Intel driver has a fast blit path when reading into a PBO. Reading into a temporary PBO and then memcpying back out to the application's memory is faster than a regular glReadPixels in this case */ if (gpu->vendor == COGL_GPU_INFO_VENDOR_INTEL && - gpu->driver_package == COGL_GPU_INFO_DRIVER_PACKAGE_MESA && - gpu->driver_package_version < COGL_VERSION_ENCODE (8, 0, 2)) + gpu->driver_package == COGL_GPU_INFO_DRIVER_PACKAGE_MESA) gpu->driver_bugs |= COGL_GPU_INFO_DRIVER_BUG_MESA_46631_SLOW_READ_PIXELS; } |