[Mesa-dev] [PATCH 08/34] mesa/st: Add VARYING_SLOT_TEX[1-7] to st_translate_geometry_program().
Christoph Bumiller
e0425955 at student.tuwien.ac.at
Tue Jul 30 08:55:39 PDT 2013
On 29.07.2013 08:03, Paul Berry wrote:
> From: Bryan Cain <bryancain3 at gmail.com>
>
> v2 (Paul Berry <stereotype441 at gmail.com>: Split out to separate patch
> (previously this was part of "glsl: add builtins for geometry
> shaders.")
> ---
> src/mesa/state_tracker/st_program.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
> index 60cc37c..211b879 100644
> --- a/src/mesa/state_tracker/st_program.c
> +++ b/src/mesa/state_tracker/st_program.c
> @@ -911,6 +911,13 @@ st_translate_geometry_program(struct st_context *st,
> stgp->input_semantic_index[slot] = 0;
> break;
> case VARYING_SLOT_TEX0:
> + case VARYING_SLOT_TEX1:
> + case VARYING_SLOT_TEX2:
> + case VARYING_SLOT_TEX3:
> + case VARYING_SLOT_TEX4:
> + case VARYING_SLOT_TEX5:
> + case VARYING_SLOT_TEX6:
> + case VARYING_SLOT_TEX7:
> stgp->input_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
> stgp->input_semantic_index[slot] = num_generic++;
> break;
This doesn't work, first because the semantic index shouldn't depend on
which varyings are present, and second because TEX is required to use
TGSI_SEMANTIC_TEXCOORD if the driver has PIPE_CAP_TGSI_TEXCOORD. Please
see st_prepare_vertex_program.
More information about the mesa-dev
mailing list