v3d: emit CLIPPER_XY_SCALING for v71

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>
This commit is contained in:
Alejandro Piñeiro 2021-10-21 13:14:32 +02:00 committed by Marge Bot
parent 6561f58b0d
commit 12e968046c

View file

@ -577,7 +577,12 @@ v3dX(emit_state)(struct pipe_context *pctx)
}
#endif
#if V3D_VERSION >= 71
unreachable("HW generation 71 not supported yet.");
cl_emit(&job->bcl, CLIPPER_XY_SCALING, clip) {
clip.viewport_half_width_in_1_64th_of_pixel =
v3d->viewport.scale[0] * 64.0f;
clip.viewport_half_height_in_1_64th_of_pixel =
v3d->viewport.scale[1] * 64.0f;
}
#endif