From: Connor Abbott Date: Mon, 13 May 2019 14:28:58 +0000 (+0200) Subject: radeonsi/nir: Delete unreachable code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1c65939e2dd2250286fd3f77c1e1d5d7707a31b;p=mesa.git radeonsi/nir: Delete unreachable code We always get gl_FragCoord as a system value, not a varying, so this is never hit. We already set PIXEL_CENTER_INTEGER elsewhere. Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index a852283aff0..365c137f8fc 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -444,17 +444,6 @@ void si_nir_scan_shader(const struct nir_shader *nir, continue; } - /* Fragment shader position is a system value. */ - if (nir->info.stage == MESA_SHADER_FRAGMENT && - variable->data.location == VARYING_SLOT_POS) { - if (nir->info.fs.pixel_center_integer) - info->properties[TGSI_PROPERTY_FS_COORD_PIXEL_CENTER] = - TGSI_FS_COORD_PIXEL_CENTER_INTEGER; - - num_inputs++; - continue; - } - for (unsigned j = 0; j < attrib_count; j++, i++) { if (processed_inputs & ((uint64_t)1 << i))