mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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@amd.com> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
8ae88105b6
commit
bfac8ba9d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 * 12.0f;
|
||||
rs->offset_scale = state->offset_scale * 16.0f;
|
||||
|
||||
si_pm4_set_reg(pm4, R_0286D4_SPI_INTERP_CONTROL_0,
|
||||
S_0286D4_FLAT_SHADE_ENA(1) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue