From a1ebac3750e3eb1e8caab85eeddf4d98c7d29167 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 4 Feb 2019 23:36:47 -0800 Subject: [PATCH] iris: Implement ALT mode for ARB_{vertex,fragment}_shader Fixes gl-1.0-spot-light --- src/gallium/drivers/iris/iris_program.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c index b50ac9d74c4..d2ada71146d 100644 --- a/src/gallium/drivers/iris/iris_program.c +++ b/src/gallium/drivers/iris/iris_program.c @@ -850,7 +850,8 @@ iris_compile_vs(struct iris_context *ice, nir_shader_gather_info(nir, impl); } - // XXX: alt mode + if (nir->info.name && strncmp(nir->info.name, "ARB", 3) == 0) + prog_data->use_alt_mode = true; iris_setup_uniforms(compiler, mem_ctx, nir, prog_data, &system_values, &num_system_values, &num_cbufs); @@ -1285,7 +1286,8 @@ iris_compile_fs(struct iris_context *ice, nir_shader *nir = nir_shader_clone(mem_ctx, ish->nir); - // XXX: alt mode + if (nir->info.name && strncmp(nir->info.name, "ARB", 3) == 0) + prog_data->use_alt_mode = true; iris_setup_uniforms(compiler, mem_ctx, nir, prog_data, &system_values, &num_system_values, &num_cbufs); -- 2.30.2