Commit ac9a6d87 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

[midgard] Disable vertex shader compilation

The vertex shader epilogue for these GPUs is not yet well understood;
it's not worth trying to compile for it quite yet.
parent 2ebee2a5
......@@ -793,19 +793,21 @@ int main(int argc, char **argv)
.do_link = true,
};
if (argc != 3) {
if (argc != 2) {
printf("Must pass exactly two GLSL files\n");
exit(1);
}
prog = standalone_compile_shader(&options, 2, &argv[1]);
prog = standalone_compile_shader(&options, 1, &argv[1]);
prog->_LinkedShaders[MESA_SHADER_FRAGMENT]->Program->info.stage = MESA_SHADER_FRAGMENT;
struct util_dynarray compiled;
#if 0
nir = glsl_to_nir(prog, MESA_SHADER_VERTEX, &nir_options);
midgard_compile_shader_nir(nir, &compiled);
finalise_to_disk("/dev/shm/vertex.bin", &compiled);
#endif
nir = glsl_to_nir(prog, MESA_SHADER_FRAGMENT, &nir_options);
midgard_compile_shader_nir(nir, &compiled);
......
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