Commit 7568a80a authored by Erik Faye-Lund 's avatar Erik Faye-Lund

d3d12: remove special-casing for PNTC

parent aad34b3a
Pipeline #222361 waiting for manual action with stages
in 17 minutes and 42 seconds
......@@ -264,23 +264,14 @@ d3d12_lower_point_sprite(nir_shader *shader,
for (unsigned int sem = 0; sem < 9; sem++) {
if (point_coord_enable & BITFIELD64_BIT(sem)) {
char tmp[100];
const char *var_name;
const struct glsl_type *var_type;
unsigned location;
unsigned location = VARYING_SLOT_VAR0 + sem;
if (sem == 8) {
var_name = "gl_PointCoord";
location = VARYING_SLOT_PNTC;
} else {
snprintf(tmp, ARRAY_SIZE(tmp), "gl_TexCoord%dMESA", count);
var_name = tmp;
location = VARYING_SLOT_VAR0 + sem;
}
nir_variable *var = nir_variable_create(shader,
nir_var_shader_out,
glsl_vec4_type(),
var_name);
tmp);
var->data.location = location;
state.point_coord_out[count++] = var;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment