mesa/src/broadcom
Juan A. Suarez Romero 69fbd5cb90 v3d: fix line coords with perspective projection
The algorithm used to rendering smooth lines worked under the assumption
that line coords were in the [0, 1] range. This was correct when using
an orthogonal projection, but not when using a perspective projection.

With a perspective projection (where the value for 1/Wc set in the VPM
is not 1.0), line coords values are also affected by this projection, so
the values are not in this range.

To deal with this, we normalize the line coords using the Wc value so
the range becomes [0, 1], and the smooth line rendering works as
expected.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10496
Fixes: ee4d51f8b2 ("v3d: Add a lowering pass for line smoothing")
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28072>
2024-03-11 12:42:50 +00:00
..
ci ci/deqp: use the proper gl/gles releases for deqp-gl*, deqp-gles*, deqp-egl 2024-03-04 16:53:58 +00:00
cle broadcom/compiler: remove include of gallium headers from meson.build 2023-12-12 10:03:11 +00:00
clif broadcom: only support v42 and v71 2023-11-02 11:59:08 +01:00
common v3d/v3dv: move V3D_CSD definitions to a separate file 2023-12-14 16:43:13 +00:00
compiler v3d: fix line coords with perspective projection 2024-03-11 12:42:50 +00:00
drm-shim broadcom/compiler: remove include of gallium headers from meson.build 2023-12-12 10:03:11 +00:00
qpu broadcom/compiler: add new SFU instructions in V3D 7.x 2024-01-31 10:06:06 +00:00
simulator v3d,v3d: use new simulator 2024-03-11 10:23:48 +00:00
vulkan v3dv: mark some promoted extensions as supported 2024-03-11 12:17:43 +00:00
.editorconfig
meson.build broadcom/compiler: remove include of gallium headers from meson.build 2023-12-12 10:03:11 +00:00