From: Kenneth Graunke Date: Tue, 5 Feb 2019 07:36:47 +0000 (-0800) Subject: iris: Implement ALT mode for ARB_{vertex,fragment}_shader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1ebac3750e3eb1e8caab85eeddf4d98c7d29167;p=mesa.git iris: Implement ALT mode for ARB_{vertex,fragment}_shader Fixes gl-1.0-spot-light --- 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);