[Mesa-dev] [PATCH 11/30] i965/gs: Create structs for use by GS program compilation.

Paul Berry stereotype441 at gmail.com
Thu Aug 22 07:50:46 PDT 2013


On 20 August 2013 11:30, Paul Berry <stereotype441 at gmail.com> wrote:

> ---
>  src/mesa/drivers/dri/i965/brw_context.h | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_context.h
> b/src/mesa/drivers/dri/i965/brw_context.h
> index 1f1cd0a..4e8e239 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.h
> +++ b/src/mesa/drivers/dri/i965/brw_context.h
> @@ -275,6 +275,13 @@ struct brw_vertex_program {
>  };
>
>
> +/** Subclass of Mesa geometry program */
> +struct brw_geometry_program {
> +   struct gl_geometry_program program;
> +   GLuint id;  /**< serial no. to identify geom progs, never re-used */
> +};
> +
> +
>  /** Subclass of Mesa fragment program */
>  struct brw_fragment_program {
>     struct gl_fragment_program program;
> @@ -520,6 +527,22 @@ struct brw_vs_prog_data {
>     bool uses_vertexid;
>  };
>
> +
> +/* Note: brw_vec4_gs_prog_data_compare() must be updated when adding
> fields to
> + * this struct!
> + */
> +struct brw_vec4_gs_prog_data
> +{
> +   struct brw_vec4_prog_data base;
> +
> +   /**
> +    * Size of an output vertex, measured in HWORDS.
>

>From our in-person code review yesterday:

Add a comment next to HWORDS: "(32 bytes)", since this is new terminology
to a lot of people (even though it is used extensively in the PRM).


> +    */
> +   unsigned output_vertex_size_hwords;
> +
> +   unsigned output_topology;
> +};
> +
>  /** Number of texture sampler units */
>  #define BRW_MAX_TEX_UNIT 16
>
> --
> 1.8.3.4
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130822/29b03e5f/attachment.html>


More information about the mesa-dev mailing list