Skip to content
Snippets Groups Projects
Commit 59bc1418 authored by Jan Zielinski's avatar Jan Zielinski Committed by Dylan Baker
Browse files

gallium/swr: Fix depth values for blit scenario

parent 5032575b
No related branches found
No related tags found
No related merge requests found
......@@ -1231,6 +1231,14 @@ swr_update_derived(struct pipe_context *pipe,
util_viewport_zmin_zmax(state, rasterizer->clip_halfz,
&vp->minZ, &vp->maxZ);
if (rasterizer->depth_clip_near) {
vp->minZ = 0.0f;
}
if (rasterizer->depth_clip_far) {
vp->maxZ = 1.0f;
}
vpm->m00[i] = state->scale[0];
vpm->m11[i] = state->scale[1];
vpm->m22[i] = state->scale[2];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment