Mesa (staging/19.3): r600: Fix maximum line width

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jan 6 17:45:33 UTC 2020


Module: Mesa
Branch: staging/19.3
Commit: 713370a1aa4ea4a1d197faeed718ff3600569b87
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=713370a1aa4ea4a1d197faeed718ff3600569b87

Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Sat Dec 28 15:35:13 2019 +0100

r600: Fix maximum line width

There are only 13 bits available to store the line width, hence
it can't be larger than 8191

v2: Add Fixes tag

v3: - Unify value since for all r600 archs (Konstantin Kharlamov)
    - Correct the value the line width value is emitted as a 12.4
      fixed point value of 1/2 line width on r600-r700 and as
      8 * line width on Evergreen and newer.

Fixes: 06bfb2d28f7adca7edc6be9c210a7a3583023652
    r600: fork and import gallium/radeon

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Reviewed-by: Konstantin Kharlamov <hi-angel at yandex.ru>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3286>
(cherry picked from commit e8559ae4484c3240c81c0cbf49caf5be338f8395)

---

 src/gallium/drivers/r600/r600_pipe_common.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_pipe_common.c b/src/gallium/drivers/r600/r600_pipe_common.c
index 4c914fa082f..21b73b45487 100644
--- a/src/gallium/drivers/r600/r600_pipe_common.c
+++ b/src/gallium/drivers/r600/r600_pipe_common.c
@@ -817,10 +817,7 @@ static float r600_get_paramf(struct pipe_screen* pscreen,
 	case PIPE_CAPF_MAX_LINE_WIDTH_AA:
 	case PIPE_CAPF_MAX_POINT_WIDTH:
 	case PIPE_CAPF_MAX_POINT_WIDTH_AA:
-		if (rscreen->family >= CHIP_CEDAR)
-			return 16384.0f;
-		else
-			return 8192.0f;
+         return 8191.0f;
 	case PIPE_CAPF_MAX_TEXTURE_ANISOTROPY:
 		return 16.0f;
 	case PIPE_CAPF_MAX_TEXTURE_LOD_BIAS:




More information about the mesa-commit mailing list