mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 05:00:09 +01:00
iris: Implement ALT mode for ARB_{vertex,fragment}_shader
Fixes gl-1.0-spot-light
This commit is contained in:
parent
732c3a90a4
commit
a1ebac3750
1 changed files with 4 additions and 2 deletions
|
|
@ -850,7 +850,8 @@ iris_compile_vs(struct iris_context *ice,
|
||||||
nir_shader_gather_info(nir, impl);
|
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,
|
iris_setup_uniforms(compiler, mem_ctx, nir, prog_data, &system_values,
|
||||||
&num_system_values, &num_cbufs);
|
&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);
|
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,
|
iris_setup_uniforms(compiler, mem_ctx, nir, prog_data, &system_values,
|
||||||
&num_system_values, &num_cbufs);
|
&num_system_values, &num_cbufs);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue