summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-02-04 23:36:47 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:11 -0800
commita1ebac3750e3eb1e8caab85eeddf4d98c7d29167 (patch)
tree22b6da0e1193ac2985324cec36d03c119f40e60b /src/gallium/drivers
parent732c3a90a409aa5972c70f5ea333cbecec508c41 (diff)
iris: Implement ALT mode for ARB_{vertex,fragment}_shader
Fixes gl-1.0-spot-light
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/iris/iris_program.c6
1 files 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);