mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 04:50:11 +01:00
gallium: when using gl_PointCoord ensure we use the correct attribute.
This commit is contained in:
parent
84e784665a
commit
a97c846d61
1 changed files with 5 additions and 3 deletions
|
|
@ -427,11 +427,13 @@ st_translate_fragment_program(struct st_context *st,
|
|||
interpMode[slot] = TGSI_INTERPOLATE_LINEAR;
|
||||
break;
|
||||
case FRAG_ATTRIB_FOGC:
|
||||
if (stfp->Base.UsesPointCoord)
|
||||
if (stfp->Base.UsesPointCoord) {
|
||||
stfp->input_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
|
||||
else
|
||||
stfp->input_semantic_index[slot] = num_generic++;
|
||||
} else {
|
||||
stfp->input_semantic_name[slot] = TGSI_SEMANTIC_FOG;
|
||||
stfp->input_semantic_index[slot] = 0;
|
||||
stfp->input_semantic_index[slot] = 0;
|
||||
}
|
||||
interpMode[slot] = TGSI_INTERPOLATE_PERSPECTIVE;
|
||||
break;
|
||||
case FRAG_ATTRIB_TEX0:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue