zink: delete some ntv dead code

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28466>
This commit is contained in:
Mike Blumenkrantz 2024-03-20 10:33:24 -04:00 committed by Marge Bot
parent cefbfe6597
commit 5fd03efda0

View file

@ -80,7 +80,6 @@ struct ntv_context {
size_t num_defs;
struct hash_table *vars; /* nir_variable -> SpvId */
unsigned outputs[VARYING_SLOT_MAX * 4];
const SpvId *block_ids;
size_t num_blocks;
@ -889,11 +888,6 @@ emit_output(struct ntv_context *ctx, struct nir_variable *var)
spirv_builder_emit_location(&ctx->builder, var_id,
var->data.driver_location);
}
/* tcs can't do xfb */
if (ctx->stage != MESA_SHADER_TESS_CTRL && var->data.location >= 0) {
unsigned idx = var->data.location << 2 | var->data.location_frac;
ctx->outputs[idx] = var_id;
}
emit_interpolation(ctx, var_id, var->data.interpolation);
} else {
if (var->data.location >= FRAG_RESULT_DATA0) {