mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
i965/gs: Create structs for use by GS program compilation.
v2: Make id "unsigned" rather than "GLuint". Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
3167dca3d4
commit
ebbb8c0c76
1 changed files with 23 additions and 0 deletions
|
|
@ -275,6 +275,13 @@ struct brw_vertex_program {
|
|||
};
|
||||
|
||||
|
||||
/** Subclass of Mesa geometry program */
|
||||
struct brw_geometry_program {
|
||||
struct gl_geometry_program program;
|
||||
unsigned 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 (32 bytes).
|
||||
*/
|
||||
unsigned output_vertex_size_hwords;
|
||||
|
||||
unsigned output_topology;
|
||||
};
|
||||
|
||||
/** Number of texture sampler units */
|
||||
#define BRW_MAX_TEX_UNIT 16
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue