aco: Use NIR IO semantics for tess factor IO locations.
Previously we relied on looping over the NIR output variables to remember the driver location of the tess factors, now use the new NIR IO semantics instead. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6689>
This commit is contained in:
@@ -571,11 +571,6 @@ setup_tcs_variables(isel_context *ctx, nir_shader *nir)
|
||||
nir_foreach_shader_out_variable(variable, nir) {
|
||||
assert(variable->data.location >= 0 && variable->data.location <= UINT8_MAX);
|
||||
|
||||
if (variable->data.location == VARYING_SLOT_TESS_LEVEL_OUTER)
|
||||
ctx->tcs_tess_lvl_out_loc = variable->data.driver_location * 4u;
|
||||
else if (variable->data.location == VARYING_SLOT_TESS_LEVEL_INNER)
|
||||
ctx->tcs_tess_lvl_in_loc = variable->data.driver_location * 4u;
|
||||
|
||||
if (variable->data.patch)
|
||||
ctx->output_tcs_patch_drv_loc_to_var_slot[variable->data.driver_location / 4] = variable->data.location;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user