panfrost: fix tgsi_to_nir() call
[mesa.git] / src / gallium / drivers / panfrost / pan_assemble.c
index 44136acc18abcaab520db873adeceae03ea53b71..d1ecfd4ac03fad1e43a6aad46e5284eee6c06635 100644 (file)
@@ -48,7 +48,7 @@ panfrost_shader_compile(struct panfrost_context *ctx, struct mali_shader_meta *m
         } else {
                 assert (cso->type == PIPE_SHADER_IR_TGSI);
                 //tgsi_dump(cso->tokens, 0);
-                s = tgsi_to_nir(cso->tokens, &midgard_nir_options);
+                s = tgsi_to_nir(cso->tokens, ctx->base.screen);
         }
 
         s->info.stage = type == JOB_TYPE_VERTEX ? MESA_SHADER_VERTEX : MESA_SHADER_FRAGMENT;
@@ -96,8 +96,8 @@ panfrost_shader_compile(struct panfrost_context *ctx, struct mali_shader_meta *m
         if (type == JOB_TYPE_VERTEX)
                 meta->varying_count += 1;
 
-        /* gl_FragCoord does -not- eat an extra spot; it will be included in our count if we need it */
-
+       /* Note: gl_FragCoord does -not- eat an extra spot; it will be included
+        * in our count if we need it */
 
         meta->midgard1.unknown2 = 8; /* XXX */