summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2021-04-21 12:30:54 +0200
committerErik Faye-Lund <erik.faye-lund@collabora.com>2021-05-05 10:51:02 +0200
commit30eca96a867aabc463b5b45e7c48d757fda0cb97 (patch)
treec4ee41f900edbca4cd2d9a2064076bf36191edec
parent74f9f3937a074d2e385ada45f7fb76a453a6d099 (diff)
zink: remove needless shader-info from context
There's no longer any code reading this, so let's get rid of it. It always rubbed me a bit the wrong way, because this repeated some information already present in the context. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10371>
-rw-r--r--src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c4
1 files changed, 0 insertions, 4 deletions
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 7ebfa408768..e1eba4c9d72 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
@@ -76,8 +76,6 @@ struct ntv_context {
bool block_started;
SpvId loop_break, loop_cont;
- struct shader_info *info;
-
SpvId front_face_var, instance_id_var, vertex_id_var,
primitive_id_var, invocation_id_var, // geometry
sample_mask_type, sample_id_var, sample_pos_var, sample_mask_in_var,
@@ -3604,8 +3602,6 @@ nir_to_spirv(struct nir_shader *s, const struct zink_so_info *so_info, bool spir
default: ;
}
- ctx.info = &s->info;
-
if (s->info.stage < MESA_SHADER_GEOMETRY) {
if (s->info.outputs_written & BITFIELD64_BIT(VARYING_SLOT_LAYER) ||
s->info.inputs_read & BITFIELD64_BIT(VARYING_SLOT_LAYER)) {