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>
This commit is contained in:
Erik Faye-Lund 2021-04-21 12:30:54 +02:00
parent 74f9f3937a
commit 30eca96a86
1 changed files with 0 additions and 4 deletions

View File

@ -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)) {