diff options
author | Marek Olšák <[email protected]> | 2015-08-11 22:36:51 +0200 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-08-19 18:06:57 +0100 |
commit | e7e38e11c3ec7ae03d46451ce45b7226a56ac25c (patch) | |
tree | 0f4d6282612f2ce5534de830ebad8231ca2bb98c /src/gallium | |
parent | b7a8003c588d928c1be224b595a1c43c76f67de6 (diff) |
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 <[email protected]>
Cc: [email protected]
(cherry picked from commit bfac8ba9d32be351277c7ea814ac9848bdcb1f16)
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 7f0fdd599dc..4d38a3270fc 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) { |