Mesa (10.6): radeonsi: fix polygon offset scale
Emil Velikov
evelikov at kemper.freedesktop.org
Thu Aug 20 12:52:56 UTC 2015
Module: Mesa
Branch: 10.6
Commit: e7e38e11c3ec7ae03d46451ce45b7226a56ac25c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e7e38e11c3ec7ae03d46451ce45b7226a56ac25c
Author: Marek Olšák <marek.olsak at amd.com>
Date: Tue Aug 11 22:36:51 2015 +0200
radeonsi: fix polygon offset scale
The value was copied from r300g, which uses 1/12 subpixels, but this hw
uses 1/16 subpixels.
Fixes piglit: gl-1.4-polygon-offset (formerly a glean test)
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
Cc: mesa-stable at lists.freedesktop.org
(cherry picked from commit bfac8ba9d32be351277c7ea814ac9848bdcb1f16)
---
src/gallium/drivers/radeonsi/si_state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index 7f0fdd5..4d38a32 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -634,7 +634,7 @@ static void *si_create_rs_state(struct pipe_context *ctx,
/* offset */
rs->offset_units = state->offset_units;
- rs->offset_scale = state->offset_scale * 12.0f;
+ rs->offset_scale = state->offset_scale * 16.0f;
tmp = S_0286D4_FLAT_SHADE_ENA(1);
if (state->sprite_coord_enable) {
More information about the mesa-commit
mailing list