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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user