Neil Roberts
00f0a66ec9
Use the same number for n_tex_coord_attribs in all linked shaders
...
On GLES2, we need to specify an array size for the texture coord
varying array. Previously this size would be decided in one of the
following ways:
- For generated vertex shaders it is always the number of layers in
the pipeline.
- For generated fragment shaders it is the highest sampled texture
unit in the pipeline or the number of attributes supplied by the
primitive, whichever is higher.
- For user shaders it is usually the number of attributes supplied by
the primitive. However, if the application tries to compile the
shader and query the result before using it, it will always be at
least 4.
These shaders can quite easily end up with different values for the
declaration which makes it fail to link. This patch changes it so that
all of the shaders are generated with the maximum of the number of
texture attributes supplied by the primitive and the number of layers
in the pipeline. If this value changes then the shaders are
regenerated, including user shaders. That way all of the shaders will
always have the same value.
https://bugzilla.gnome.org/show_bug.cgi?id=662184
Reviewed-by: Robert Bragg <robert@linux.intel.com>
2011-11-02 13:50:28 +00:00
..
2011-11-01 12:03:02 +00:00
2010-09-12 19:25:47 +01:00
2011-11-01 15:55:53 +00:00
2011-04-11 15:28:53 +01:00
2011-03-10 13:05:43 +00:00
2011-09-09 15:06:31 +01:00
2011-11-01 12:03:02 +00:00
2010-11-11 13:17:26 +00:00
2011-05-06 12:12:08 +01:00
2011-09-09 15:06:31 +01:00
2011-05-05 17:32:28 +01:00
2011-11-01 12:03:03 +00:00
2011-07-08 15:35:51 +01:00
2011-03-14 18:18:15 +00:00
2011-05-16 14:31:31 +01:00
2011-11-01 12:03:01 +00:00
2011-05-16 14:31:31 +01:00
2011-09-21 15:39:46 +01:00
2011-11-01 12:03:02 +00:00
2011-05-16 14:32:37 +01:00
2010-07-15 17:24:01 +01:00
2011-11-01 12:03:02 +00:00
2011-07-25 22:45:24 +01:00
2011-11-01 12:03:02 +00:00
2011-07-25 22:45:24 +01:00
2010-12-13 17:28:29 +00:00
2011-04-20 18:20:10 +01:00
2011-09-05 17:54:46 +01:00
2010-06-15 15:26:27 +01:00
2011-11-01 12:03:02 +00:00
2011-02-15 12:10:54 +00:00
2011-08-12 15:28:43 +01:00
2011-11-01 12:03:02 +00:00
2011-08-12 15:28:43 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:02:59 +00:00
2011-08-12 15:28:43 +01:00
2011-11-01 12:03:02 +00:00
2011-03-10 13:05:43 +00:00
2011-11-01 15:55:53 +00:00
2011-11-01 15:55:53 +00:00
2011-11-01 15:55:53 +00:00
2010-12-07 16:00:32 +00:00
2011-11-01 12:03:02 +00:00
2010-06-15 15:26:27 +01:00
2011-08-12 15:28:42 +01:00
2011-08-12 15:28:42 +01:00
2011-11-01 12:03:01 +00:00
2011-11-01 12:03:02 +00:00
2011-09-05 17:54:46 +01:00
2011-10-14 13:56:51 +01:00
2011-10-14 13:56:51 +01:00
2011-08-12 15:28:42 +01:00
2011-06-01 20:44:42 +01:00
2010-03-01 12:56:10 +00:00
2011-05-16 18:45:51 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:01 +00:00
2011-07-29 11:50:15 +01:00
2011-11-01 12:03:02 +00:00
2011-09-06 11:19:20 +01:00
2009-10-16 18:58:50 +01:00
2009-10-16 18:58:50 +01:00
2011-11-01 12:03:02 +00:00
2011-05-16 14:12:49 +01:00
2011-10-28 19:10:16 +01:00
2011-07-27 16:10:02 +01:00
2011-07-27 16:10:02 +01:00
2011-07-27 18:46:36 +01:00
2010-06-01 12:08:18 +01:00
2011-04-20 18:20:10 +01:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2011-06-30 14:34:33 +01:00
2011-07-27 16:10:02 +01:00
2010-12-07 12:16:50 +00:00
2010-06-04 14:44:15 +01:00
2011-05-16 14:31:31 +01:00
2011-11-01 12:03:01 +00:00
2011-05-16 14:31:31 +01:00
2011-05-16 14:31:31 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:01 +00:00
2011-09-21 15:27:03 +01:00
2011-11-01 12:03:01 +00:00
2011-06-09 16:21:15 +01:00
2011-06-09 16:21:15 +01:00
2011-07-04 15:31:50 +01:00
2011-07-11 12:57:38 +01:00
2010-12-13 17:29:13 +00:00
2011-11-01 12:03:02 +00:00
2011-08-12 15:28:44 +01:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2011-09-21 17:03:10 +01:00
2011-11-01 12:03:02 +00:00
2011-06-14 12:14:02 +01:00
2011-11-01 12:03:02 +00:00
2011-06-14 12:14:02 +01:00
2011-09-21 15:27:03 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-10-28 19:10:16 +01:00
2011-10-28 19:10:16 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-05-16 13:28:17 +01:00
2011-11-01 12:02:59 +00:00
2011-11-01 12:03:02 +00:00
2010-12-22 09:52:35 +00:00
2011-09-26 15:53:30 +01:00
2011-07-13 12:30:07 +01:00
2011-09-21 17:03:10 +01:00
2011-07-13 12:30:07 +01:00
2011-11-01 12:03:01 +00:00
2010-12-13 17:22:57 +00:00
2011-09-26 15:53:30 +01:00
2010-12-13 17:22:57 +00:00
2011-11-02 13:50:28 +00:00
2011-11-01 12:03:02 +00:00
2011-09-21 17:03:10 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2010-12-13 17:22:57 +00:00
2011-11-02 13:50:28 +00:00
2011-11-02 13:50:28 +00:00
2011-01-21 16:24:14 +00:00
2011-11-02 13:50:28 +00:00
2011-09-19 16:40:07 +01:00
2011-11-01 12:03:02 +00:00
2011-09-19 16:35:59 +01:00
2010-12-13 17:22:57 +00:00
2011-11-02 13:50:28 +00:00
2010-12-13 17:28:28 +00:00
2011-11-02 13:50:28 +00:00
2011-11-01 12:03:02 +00:00
2011-09-21 17:03:10 +01:00
2011-05-16 14:31:31 +01:00
2011-11-01 12:03:01 +00:00
2011-05-16 14:31:31 +01:00
2011-03-07 13:26:19 +00:00
2011-03-07 13:26:19 +00:00
2011-11-01 12:02:59 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2010-11-04 18:10:08 +00:00
2011-11-01 12:03:03 +00:00
2010-03-25 09:33:26 +00:00
2011-09-19 16:40:06 +01:00
2011-10-14 13:56:51 +01:00
2010-09-14 12:43:17 +01:00
2010-12-13 17:22:57 +00:00
2011-11-01 12:03:02 +00:00
2011-05-16 14:11:47 +01:00
2011-11-01 12:03:02 +00:00
2011-05-16 17:08:30 +01:00
2011-07-01 17:52:55 +01:00
2011-11-01 12:03:02 +00:00
2010-08-12 11:54:42 +01:00
2011-07-27 18:46:36 +01:00
2011-11-01 15:55:53 +00:00
2011-09-05 17:54:46 +01:00
2011-07-11 12:57:38 +01:00
2011-07-11 12:57:38 +01:00
2011-11-02 13:50:28 +00:00
2011-10-21 12:24:01 +01:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2011-05-05 14:46:02 +01:00
2011-05-05 14:46:02 +01:00
2011-05-05 14:46:02 +01:00
2011-06-01 20:44:42 +01:00
2011-11-01 12:02:59 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:02:59 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:01 +00:00
2010-11-03 18:09:23 +00:00
2011-11-01 12:03:02 +00:00
2010-07-13 14:28:52 +01:00
2011-07-08 15:35:51 +01:00
2011-11-01 12:03:01 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:03 +00:00
2011-11-02 13:34:14 +00:00
2011-11-01 15:55:53 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2010-06-30 18:51:31 +01:00
2011-05-16 14:31:31 +01:00
2011-11-01 12:03:03 +00:00
2011-02-09 19:12:12 +00:00
2011-06-30 14:34:46 +01:00
2011-06-30 14:33:13 +01:00
2011-06-30 14:34:46 +01:00
2011-06-30 14:34:33 +01:00
2011-06-30 14:34:33 +01:00
2011-06-01 20:44:42 +01:00
2011-06-30 14:34:33 +01:00
2011-11-01 15:55:53 +00:00
2011-11-01 15:55:53 +00:00
2011-11-01 15:55:53 +00:00
2011-11-01 15:55:53 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 15:55:53 +00:00
2011-11-02 07:34:26 -04:00
2011-08-12 15:28:42 +01:00