From c4a5048e62660e73e9577b06a9a4f879672c5dec Mon Sep 17 00:00:00 2001 From: Triang3l Date: Sun, 6 Jun 2021 18:32:58 +0300 Subject: [PATCH] [GPU] More specific note about slope-scaled depth bias --- src/xenia/gpu/register_table.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xenia/gpu/register_table.inc b/src/xenia/gpu/register_table.inc index ce5e9f494..8da898a5a 100644 --- a/src/xenia/gpu/register_table.inc +++ b/src/xenia/gpu/register_table.inc @@ -423,6 +423,8 @@ XE_GPU_REGISTER(0x2325, kDword, RB_SAMPLE_COUNT_ADDR) // Polygon offset scales and offsets are 32-bit floating-point. // "slope computed in subpixels (1/12 or 1/16)" - R5xx Acceleration. +// But the correct scale for conversion of the slope scale (FRONT_BACK/SCALE) +// from subpixels to pixels is likely 1/16 according to: // https://github.com/mesa3d/mesa/blob/54ad9b444c8e73da498211870e785239ad3ff1aa/src/gallium/drivers/radeonsi/si_state.c#L946 XE_GPU_REGISTER(0x2380, kFloat, PA_SU_POLY_OFFSET_FRONT_SCALE) XE_GPU_REGISTER(0x2381, kFloat, PA_SU_POLY_OFFSET_FRONT_OFFSET)