Neil Roberts
ec5009fa23
Use GL_PACK_ALIGNMENT of 1 whenever possible
...
The Intel driver currently has an optimisation when calling
glReadPixels into a PBO so that it will use a blit instead of the Mesa
fallback path. However this only works if the GL_PACK_ALIGNMENT is
exactly 1, even if this would be equivalent to a higher alignment
value because the bpp*width is already aligned. To make it more likely
to hit this fast path, we now detect this situation and explicitly use
an alignment of 1. To make this work the texture driver needs to be
passed down the bpp*width as well as the rowstride when configuring
the alignment.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
2012-04-05 13:51:56 +01:00
..
2012-04-05 13:51:56 +01:00
2012-04-05 13:47:36 +01:00
2010-09-12 19:25:47 +01:00
2012-04-04 17:02:23 +01:00
2012-02-20 23:12:44 +00:00
2012-03-09 16:09:13 +00:00
2012-03-09 16:09:13 +00:00
2011-09-09 15:06:31 +01:00
2012-02-20 23:12:45 +00:00
2011-09-09 15:06:31 +01:00
2012-03-06 18:45:44 +00:00
2012-04-04 17:02:23 +01:00
2012-04-05 13:47:32 +01:00
2012-03-06 18:45:44 +00:00
2012-02-09 14:28:02 +00:00
2012-03-05 18:47:52 +00:00
2012-03-05 18:47:45 +00:00
2012-03-16 17:26:30 +00:00
2012-02-20 23:12:44 +00:00
2012-03-14 12:19:56 +00:00
2012-03-05 17:44:12 +00:00
2012-03-20 13:53:50 +00:00
2012-04-04 14:24:01 +01:00
2012-04-04 14:24:01 +01:00
2012-03-14 12:19:56 +00:00
2011-11-16 16:32:11 +00:00
2011-12-07 12:08:15 +00:00
2012-03-06 18:45:44 +00:00
2012-02-21 12:38:24 +00:00
2011-11-16 16:32:11 +00:00
2011-11-16 16:32:11 +00:00
2012-02-20 23:12:45 +00:00
2012-03-14 13:48:11 +00:00
2012-03-14 13:48:11 +00:00
2012-03-06 18:45:44 +00:00
2012-03-05 18:47:45 +00:00
2011-12-06 18:51:57 +00:00
2012-03-06 18:45:44 +00:00
2011-11-01 15:55:53 +00:00
2012-02-20 23:12:45 +00:00
2011-11-01 15:55:53 +00:00
2012-03-06 18:45:44 +00:00
2011-08-12 15:28:42 +01:00
2012-03-06 18:45:44 +00:00
2012-04-05 13:47:36 +01:00
2012-04-05 13:47:36 +01:00
2012-03-14 12:19:48 +00:00
2011-10-14 13:56:51 +01:00
2012-03-06 18:45:44 +00:00
2011-11-25 13:14:10 +00:00
2012-02-13 12:22:17 +00:00
2012-02-13 12:22:17 +00:00
2012-04-03 16:36:54 +01:00
2011-11-01 12:03:01 +00:00
2011-07-29 11:50:15 +01:00
2012-03-06 18:45:44 +00:00
2012-03-06 18:45:44 +00:00
2012-03-23 13:51:08 +00:00
2012-02-20 23:12:45 +00:00
2012-02-20 23:12:45 +00:00
2012-02-20 23:12:45 +00:00
2011-07-27 16:10:02 +01:00
2012-01-05 20:13:41 +00:00
2011-11-22 16:07:21 +00:00
2012-03-05 18:16:10 +00:00
2012-04-05 13:51:56 +01:00
2012-03-20 14:26:44 +00:00
2012-01-05 13:40:59 +00:00
2012-01-05 13:40:59 +00:00
2012-02-08 18:58:06 +00:00
2011-12-12 16:13:57 +00:00
2012-03-06 18:45:44 +00:00
2012-03-05 18:47:52 +00:00
2012-02-09 14:28:02 +00:00
2012-03-06 18:45:44 +00:00
2012-04-05 13:47:36 +01:00
2012-03-16 17:26:30 +00:00
2012-03-20 12:33:40 +00:00
2012-02-08 17:00:25 +00:00
2012-02-21 12:38:24 +00:00
2012-02-20 23:12:45 +00:00
2012-03-13 13:40:45 +00:00
2012-03-06 18:45:44 +00:00
2012-02-20 23:12:45 +00:00
2012-02-14 20:42:10 +00:00
2012-03-06 18:45:44 +00:00
2012-02-14 20:42:10 +00:00
2011-09-21 17:03:10 +01:00
2011-11-01 12:03:02 +00:00
2012-03-06 18:45:44 +00:00
2012-02-20 23:16:37 +00:00
2012-02-21 12:38:10 +00:00
2012-02-15 14:57:59 +00:00
2011-11-01 12:03:02 +00:00
2012-03-06 18:45:44 +00:00
2012-03-06 18:45:44 +00:00
2012-03-06 18:45:44 +00:00
2012-03-06 18:45:44 +00:00
2012-03-06 18:45:44 +00:00
2011-11-01 12:02:59 +00:00
2012-03-15 18:57:52 +00:00
2012-03-06 18:45:44 +00:00
2011-12-06 19:02:05 +00:00
2012-03-06 18:45:44 +00:00
2012-03-06 18:45:44 +00:00
2012-02-20 23:12:45 +00:00
2012-03-06 18:45:44 +00:00
2012-04-05 13:47:36 +01:00
2012-04-05 13:47:36 +01:00
2012-04-05 13:47:36 +01:00
2012-02-20 23:16:37 +00:00
2012-04-05 13:47:36 +01:00
2012-02-20 23:12:45 +00:00
2012-04-05 13:47:36 +01:00
2012-02-20 23:16:37 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 18:51:57 +00:00
2012-03-06 18:45:44 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 19:02:06 +00:00
2012-03-06 18:45:44 +00:00
2012-02-20 23:12:45 +00:00
2012-03-07 15:13:29 +00:00
2012-03-07 15:13:29 +00:00
2012-04-05 13:47:36 +01:00
2012-02-21 12:38:24 +00:00
2012-03-05 18:47:52 +00:00
2012-03-05 18:47:45 +00:00
2012-03-05 18:47:52 +00:00
2012-03-06 18:45:44 +00:00
2012-01-05 13:40:10 +00:00
2012-01-24 14:04:26 +00:00
2011-11-01 12:02:59 +00:00
2012-04-04 17:02:23 +01:00
2012-04-04 17:02:23 +01:00
2012-02-09 14:28:02 +00:00
2012-02-20 23:12:44 +00:00
2012-03-20 12:41:58 +00:00
2012-03-20 12:33:40 +00:00
2012-03-23 13:51:08 +00:00
2012-01-16 23:27:36 +00:00
2012-03-06 18:45:44 +00:00
2012-03-06 18:45:44 +00:00
2012-03-06 18:45:44 +00:00
2012-03-06 18:45:44 +00:00
2011-11-01 12:03:02 +00:00
2012-02-24 14:42:31 +00:00
2012-03-06 18:45:44 +00:00
2012-02-24 14:42:31 +00:00
2012-04-05 13:47:36 +01:00
2012-04-05 13:47:36 +01:00
2012-02-20 23:12:45 +00:00
2012-03-06 18:45:44 +00:00
2012-03-16 16:41:57 +00:00
2011-12-07 14:52:48 +00:00
2011-12-06 19:02:06 +00:00
2011-12-06 19:02:06 +00:00
2012-02-13 17:29:28 +00:00
2012-02-20 23:12:45 +00:00
2011-11-01 12:03:02 +00:00
2012-01-27 17:18:32 +00:00
2012-04-04 17:02:23 +01:00
2012-01-05 20:57:52 +00:00
2012-03-06 18:45:44 +00:00
2012-03-06 18:45:44 +00:00
2012-04-05 13:47:32 +01:00
2012-01-27 17:18:32 +00:00
2012-04-05 13:47:36 +01:00
2012-03-06 18:45:44 +00:00
2012-04-05 13:51:56 +01:00
2012-04-05 13:47:32 +01:00
2012-04-05 13:47:32 +01:00
2012-04-05 13:47:32 +01:00
2012-04-05 13:47:32 +01:00
2012-04-05 13:51:56 +01:00
2012-04-05 13:51:56 +01:00
2012-04-05 13:47:32 +01:00
2012-04-05 13:51:56 +01:00
2012-04-05 13:47:32 +01:00
2012-04-05 13:51:56 +01:00
2012-03-20 13:17:07 +00:00
2012-02-20 23:12:45 +00:00
2012-02-20 23:12:45 +00:00
2012-04-05 13:47:36 +01:00
2012-02-20 23:12:45 +00:00
2012-01-16 18:27:19 +00:00
2012-03-06 18:45:44 +00:00
2012-03-06 18:45:44 +00:00
2012-03-20 14:26:44 +00:00
2012-03-05 20:23:54 +00:00
2012-03-20 14:26:44 +00:00
2012-02-20 23:12:45 +00:00
2012-01-05 13:40:24 +00:00
2012-01-05 13:40:24 +00:00
2012-02-20 23:12:45 +00:00
2011-12-12 16:13:57 +00:00
2012-02-20 23:12:45 +00:00
2012-03-14 12:19:56 +00:00
2012-04-04 17:02:23 +01:00
2011-12-15 20:31:30 +08:00
2012-03-21 22:15:34 +08:00
2012-04-05 13:47:36 +01:00
2011-08-12 15:28:42 +01:00