mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
st/atifs: Use gl_varying_slot_name_for_stage()
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8998>
This commit is contained in:
parent
0589bd46c8
commit
b5716cadc5
1 changed files with 3 additions and 1 deletions
|
|
@ -118,10 +118,12 @@ static nir_ssa_def *
|
|||
load_input(struct st_translate *t, gl_varying_slot slot)
|
||||
{
|
||||
if (!t->inputs[slot]) {
|
||||
const char *slot_name =
|
||||
gl_varying_slot_name_for_stage(slot, MESA_SHADER_FRAGMENT);
|
||||
nir_variable *var = nir_variable_create(t->b->shader, nir_var_shader_in,
|
||||
slot == VARYING_SLOT_FOGC ?
|
||||
glsl_float_type() : glsl_vec4_type(),
|
||||
gl_varying_slot_name(slot));
|
||||
slot_name);
|
||||
var->data.location = slot;
|
||||
var->data.interpolation = INTERP_MODE_NONE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue