projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ae8810
)
radeonsi: fix polygon offset scale
author
Marek Olšák
<marek.olsak@amd.com>
Tue, 11 Aug 2015 20:36:51 +0000
(22:36 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Wed, 12 Aug 2015 23:25:26 +0000
(
01:25
+0200)
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@amd.com>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/radeonsi/si_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_state.c
b/src/gallium/drivers/radeonsi/si_state.c
index 7b452737c867169d470aee69ced2ec446ade9813..326094396591b507e6e0a298ef916dd40cdd627f 100644
(file)
--- a/
src/gallium/drivers/radeonsi/si_state.c
+++ b/
src/gallium/drivers/radeonsi/si_state.c
@@
-666,7
+666,7
@@
static void *si_create_rs_state(struct pipe_context *ctx,
/* offset */
rs->offset_units = state->offset_units;
- rs->offset_scale = state->offset_scale * 1
2
.0f;
+ rs->offset_scale = state->offset_scale * 1
6
.0f;
si_pm4_set_reg(pm4, R_0286D4_SPI_INTERP_CONTROL_0,
S_0286D4_FLAT_SHADE_ENA(1) |