mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-05 06:00:36 +02:00
util/blitter: Fix the viewport transformation for Z coordinates
When clearing buffers, the depth is specified in the range [0, 1] and should be passed through blitter "as is".
This commit is contained in:
parent
b42455c4f4
commit
ff9ddf4d39
1 changed files with 2 additions and 2 deletions
|
|
@ -320,11 +320,11 @@ static void blitter_set_rectangle(struct blitter_context_priv *ctx,
|
|||
/* viewport */
|
||||
ctx->viewport.scale[0] = 0.5f * width;
|
||||
ctx->viewport.scale[1] = 0.5f * height;
|
||||
ctx->viewport.scale[2] = 0.5f;
|
||||
ctx->viewport.scale[2] = 1.0f;
|
||||
ctx->viewport.scale[3] = 1.0f;
|
||||
ctx->viewport.translate[0] = 0.5f * width;
|
||||
ctx->viewport.translate[1] = 0.5f * height;
|
||||
ctx->viewport.translate[2] = 0.5f;
|
||||
ctx->viewport.translate[2] = 0.0f;
|
||||
ctx->viewport.translate[3] = 0.0f;
|
||||
ctx->pipe->set_viewport_state(ctx->pipe, &ctx->viewport);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue