diff options
author | Paul Berry <stereotype441@gmail.com> | 2013-04-10 06:48:42 -0700 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2013-08-01 20:22:59 -0700 |
commit | 3b0cf7027daebb8bea6af35d8d2ad4ed19fa7b5a (patch) | |
tree | d641b266ae5b24fb4b6a8584d24cf092191491b7 /src/glsl/ir_optimization.h | |
parent | 40d469f9ac45dfb825364af7a0436346c13502d6 (diff) | |
download | external_mesa3d-3b0cf7027daebb8bea6af35d8d2ad4ed19fa7b5a.zip external_mesa3d-3b0cf7027daebb8bea6af35d8d2ad4ed19fa7b5a.tar.gz external_mesa3d-3b0cf7027daebb8bea6af35d8d2ad4ed19fa7b5a.tar.bz2 |
glsl/linker: Properly pack GS input varyings.
Since geometry shader inputs are arrays (where the array index
indicates which vertex is being examined), varying packing needs to
treat them differently.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl/ir_optimization.h')
-rw-r--r-- | src/glsl/ir_optimization.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h index 2c1479f..a61227b 100644 --- a/src/glsl/ir_optimization.h +++ b/src/glsl/ir_optimization.h @@ -112,7 +112,7 @@ bool lower_packing_builtins(exec_list *instructions, int op_mask); void lower_ubo_reference(struct gl_shader *shader, exec_list *instructions); void lower_packed_varyings(void *mem_ctx, unsigned location_base, unsigned locations_used, ir_variable_mode mode, - gl_shader *shader); + unsigned gs_input_vertices, gl_shader *shader); bool lower_vector_insert(exec_list *instructions, bool lower_nonconstant_index); void lower_named_interface_blocks(void *mem_ctx, gl_shader *shader); bool optimize_redundant_jumps(exec_list *instructions); |