freedreno/ir3: Switch to NIR for a3xx/a4xx's vertex id lowering.
We already have the compiler pass, just need to set the flag. We were the last consumer of glsl's lower_vertex_id. Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18327>
This commit is contained in:
@@ -284,11 +284,11 @@ ir3_compiler_create(struct fd_device *dev, const struct fd_dev_id *dev_id,
|
||||
compiler->nir_options.has_sudot_4x8 = true,
|
||||
compiler->nir_options.has_udot_4x8 = dev_info->a6xx.has_dp2acc;
|
||||
compiler->nir_options.has_sudot_4x8 = dev_info->a6xx.has_dp2acc;
|
||||
} else {
|
||||
|
||||
} else if (compiler->gen >= 3 && compiler->gen <= 4) {
|
||||
compiler->nir_options.vertex_id_zero_based = true;
|
||||
} else if (compiler->gen <= 2) {
|
||||
/* a2xx compiler doesn't handle indirect: */
|
||||
if (compiler->gen <= 2)
|
||||
compiler->nir_options.force_indirect_unrolling = nir_var_all;
|
||||
compiler->nir_options.force_indirect_unrolling = nir_var_all;
|
||||
}
|
||||
|
||||
/* 16-bit ALU op generation is mostly controlled by frontend compiler options, but
|
||||
|
@@ -230,9 +230,6 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
||||
case PIPE_CAP_DEVICE_RESET_STATUS_QUERY:
|
||||
return screen->has_robustness;
|
||||
|
||||
case PIPE_CAP_VERTEXID_NOBASE:
|
||||
return is_a3xx(screen) || is_a4xx(screen);
|
||||
|
||||
case PIPE_CAP_COMPUTE:
|
||||
return has_compute(screen);
|
||||
|
||||
|
Reference in New Issue
Block a user