Mesa (master): zink: do not reserve or pack fragment outputs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 5 15:47:26 UTC 2021


Module: Mesa
Branch: master
Commit: 918cb236934b99ffc193b409d167c4e7cfb86a09
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=918cb236934b99ffc193b409d167c4e7cfb86a09

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Wed Nov 25 12:43:46 2020 +0100

zink: do not reserve or pack fragment outputs

These are completely unrelated to other shader IO variables, so they
don't need this logic.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7986>

---

 src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
index 4fdab7bb494..8e1acff3c20 100644
--- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
+++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
@@ -472,7 +472,6 @@ emit_output(struct ntv_context *ctx, struct nir_variable *var)
             break;
 
          default:
-            slot = handle_slot(ctx, slot);
             spirv_builder_emit_location(&ctx->builder, var_id, slot);
             spirv_builder_emit_index(&ctx->builder, var_id, var->data.index);
          }



More information about the mesa-commit mailing list