mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
r600g: fix polygon offset scale
The value was copied from r300g, which uses 1/12 subpixels, but this hw uses 1/16 subpixels. Should fix piglit: gl-1.4-polygon-offset (formerly a glean test) (untested, ported from radeonsi) Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
bfac8ba9d3
commit
d335aad11b
2 changed files with 2 additions and 2 deletions
|
|
@ -485,7 +485,7 @@ static void *evergreen_create_rs_state(struct pipe_context *ctx,
|
||||||
|
|
||||||
/* offset */
|
/* offset */
|
||||||
rs->offset_units = state->offset_units;
|
rs->offset_units = state->offset_units;
|
||||||
rs->offset_scale = state->offset_scale * 12.0f;
|
rs->offset_scale = state->offset_scale * 16.0f;
|
||||||
rs->offset_enable = state->offset_point || state->offset_line || state->offset_tri;
|
rs->offset_enable = state->offset_point || state->offset_line || state->offset_tri;
|
||||||
|
|
||||||
if (state->point_size_per_vertex) {
|
if (state->point_size_per_vertex) {
|
||||||
|
|
|
||||||
|
|
@ -473,7 +473,7 @@ static void *r600_create_rs_state(struct pipe_context *ctx,
|
||||||
|
|
||||||
/* offset */
|
/* offset */
|
||||||
rs->offset_units = state->offset_units;
|
rs->offset_units = state->offset_units;
|
||||||
rs->offset_scale = state->offset_scale * 12.0f;
|
rs->offset_scale = state->offset_scale * 16.0f;
|
||||||
rs->offset_enable = state->offset_point || state->offset_line || state->offset_tri;
|
rs->offset_enable = state->offset_point || state->offset_line || state->offset_tri;
|
||||||
|
|
||||||
if (state->point_size_per_vertex) {
|
if (state->point_size_per_vertex) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue