summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2019-05-13 16:28:58 +0200
committerConnor Abbott <[email protected]>2019-07-08 14:18:41 +0200
commitd1c65939e2dd2250286fd3f77c1e1d5d7707a31b (patch)
treeed62af2c56bb53cd03f54af3ef22d6b9dc7b34c4 /src/gallium/drivers/radeonsi
parente5536aa584e91d2a859c2f905d9ce40fc410470b (diff)
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 <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader_nir.c11
1 files changed, 0 insertions, 11 deletions
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))