asahi: double depth bias

fixes gl-1.4-polygon-offset, other drivers do this too.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26614>
This commit is contained in:
Alyssa Rosenzweig
2023-11-25 14:18:02 -04:00
parent 3af825ed96
commit 2be37d1c96
+1 -1
View File
@@ -1073,7 +1073,7 @@ agx_upload_depth_bias(struct agx_batch *batch,
util_dynarray_grow_bytes(&batch->depth_bias, 1, AGX_DEPTH_BIAS_LENGTH);
agx_pack(ptr, DEPTH_BIAS, cfg) {
cfg.depth_bias = rast->offset_units;
cfg.depth_bias = rast->offset_units * 2.0f;
cfg.slope_scale = rast->offset_scale;
cfg.clamp = rast->offset_clamp;
}