[Mesa-dev] [PATCH 06/17] i965/vs: split brw_vs_prog_data into generic and VS-specific parts.

Eric Anholt eric at anholt.net
Mon Apr 8 09:28:41 PDT 2013


Paul Berry <stereotype441 at gmail.com> writes:
> -/* Note: brw_vs_prog_data_compare() must be updated when adding fields to this
> - * struct!
> +
> +/* Note: brw_vec4_prog_data_compare() must be updated when adding fields to
> + * this struct!
>   */
> -struct brw_vs_prog_data {
> +struct brw_vec4_prog_data {
>     struct brw_vue_map vue_map;
>  
>     GLuint curb_read_length;
> -   GLuint urb_read_length;
>     GLuint total_grf;
>     GLuint nr_params;       /**< number of float params/constants */
>     GLuint nr_pull_params; /**< number of dwords referenced by pull_param[] */
>     GLuint total_scratch;
>  
> +   int num_surfaces;
> +
> +   /* These pointers must appear last.  See brw_vec4_prog_data_compare(). */
> +   const float **param;
> +   const float **pull_param;
> +};
> +
> +
> +/* Note: brw_vs_prog_data_compare() must be updated when adding fields to this
> + * struct!
> + */
> +struct brw_vs_prog_data {
> +   struct brw_vec4_prog_data base;
> +
> +   GLuint urb_read_length;

There's a URB read length in the GS state packet, so it seems like you'd
want this field in the GS case as well as VS.  I'm confused.  I also
would have expected urb_entry_size in GS.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130408/6b86f86f/attachment-0001.pgp>


More information about the mesa-dev mailing list