nir: Fix lowering terminology of compute system values: "from"->"to".

This is to match other NIR terminology.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15103>
This commit is contained in:
Timur Kristóf
2022-02-24 10:14:08 +01:00
committed by Marge Bot
parent 541f08cd4c
commit 64acec0ef9
11 changed files with 22 additions and 22 deletions
+8 -8
View File
@@ -288,12 +288,12 @@ lower_compute_system_value_instr(nir_builder *b,
switch (intrin->intrinsic) {
case nir_intrinsic_load_local_invocation_id:
/* If lower_cs_local_id_from_index is true, then we derive the local
* index from the local id.
/* If lower_cs_local_id_to_index is true, then we replace
* local_invocation_id with a formula based on local_invocation_index.
*/
if (b->shader->options->lower_cs_local_id_from_index ||
(options && options->lower_cs_local_id_from_index)) {
/* We lower gl_LocalInvocationID from gl_LocalInvocationIndex based
if (b->shader->options->lower_cs_local_id_to_index ||
(options && options->lower_cs_local_id_to_index)) {
/* We lower gl_LocalInvocationID to gl_LocalInvocationIndex based
* on this formula:
*
* gl_LocalInvocationID.x =
@@ -422,10 +422,10 @@ lower_compute_system_value_instr(nir_builder *b,
return NULL;
case nir_intrinsic_load_local_invocation_index:
/* If lower_cs_local_index_from_id is true, then we derive the local
* index from the local id.
/* If lower_cs_local_index_to_id is true, then we replace
* local_invocation_index with a formula based on local_invocation_id.
*/
if (b->shader->options->lower_cs_local_index_from_id ||
if (b->shader->options->lower_cs_local_index_to_id ||
(options && options->lower_local_invocation_index)) {
/* From the GLSL man page for gl_LocalInvocationIndex:
*