summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-10-12 22:30:30 -0700
committerKenneth Graunke <[email protected]>2016-10-24 14:33:38 -0700
commit3728ee000aecb19793dec56d45aff9d6cfce3e5b (patch)
tree858a5b4bf0352656e96b22cd776bde0464131abe /src/mesa/drivers/dri/i965
parent88a618ce86602e962343683eacea60ebdd20e4e1 (diff)
i965: Drop unnecessary switch statement in nir_setup_outputs()
TCS and FS are skipped above. CS has no output variables. All remaining cases take the same path. Cc: [email protected] Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_nir.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index 4e68ffbf05b..9cad1a6d295 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -87,18 +87,9 @@ fs_visitor::nir_setup_outputs()
nir_outputs = bld.vgrf(BRW_REGISTER_TYPE_F, nir->num_outputs);
nir_foreach_variable(var, &nir->outputs) {
- switch (stage) {
- case MESA_SHADER_VERTEX:
- case MESA_SHADER_TESS_EVAL:
- case MESA_SHADER_GEOMETRY: {
- fs_reg reg = offset(nir_outputs, bld, var->data.driver_location);
- unsigned location = var->data.location;
- nir_setup_single_output_varying(&reg, var->type, &location);
- break;
- }
- default:
- unreachable("unhandled shader stage");
- }
+ fs_reg reg = offset(nir_outputs, bld, var->data.driver_location);
+ unsigned location = var->data.location;
+ nir_setup_single_output_varying(&reg, var->type, &location);
}
}