a4xx: add polygon offset clamp, fix units
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 6 Jul 2020 02:06:48 +0000 (22:06 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Jul 2020 18:01:31 +0000 (18:01 +0000)
commit42c814158b5f66dddb69c35e1b3a8f28db6c8923
tree8fb7ec6b03235cf35784c9942fb0d5810827b9f1
parent00f9d4b1fdbfd9bf00c4eb2160ae85057369e8a1
a4xx: add polygon offset clamp, fix units

For some reason, in order to get all tests to pass, pretty much all
hardware (across vendors) has to program in offset_units * 2. This fixes
dEQP-GLES3.functional.polygon_offset.float32_displacement_with_units.

While we're at it, add polygon offset clamp support.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5763>
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
src/gallium/drivers/freedreno/a4xx/fd4_rasterizer.c
src/gallium/drivers/freedreno/a4xx/fd4_rasterizer.h
src/gallium/drivers/freedreno/freedreno_screen.c