diff options
author | Ilia Mirkin <[email protected]> | 2016-11-16 21:25:12 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-11-23 20:33:50 -0500 |
commit | 1a80ec0cd1f3f66a33fc708e0112c88f4fba122d (patch) | |
tree | 967af42f2d040c6edb68b818e63f77af805f7f9e /src/gallium/drivers/swr/swr_clear.cpp | |
parent | cec515999ccf224a967f00c4bc2c3e47d782d65e (diff) |
swr: [rasterizer core] pipe renderTargetArrayIndex through to clears
Currently clears only operate on the 0th array index (ignoring surface
layout parameters). Instead normalize to take a RTAI like all the
load/store tile logic does, and use ComputeSurfaceAddress to properly
take the surface state's lod/array index into account.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_clear.cpp')
-rw-r--r-- | src/gallium/drivers/swr/swr_clear.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_clear.cpp b/src/gallium/drivers/swr/swr_clear.cpp index ff3eca85f00..d47ad003393 100644 --- a/src/gallium/drivers/swr/swr_clear.cpp +++ b/src/gallium/drivers/swr/swr_clear.cpp @@ -59,7 +59,7 @@ swr_clear(struct pipe_context *pipe, #endif swr_update_draw_context(ctx); - SwrClearRenderTarget(ctx->swrContext, clearMask, color->f, depth, stencil, + SwrClearRenderTarget(ctx->swrContext, clearMask, 0, color->f, depth, stencil, ctx->swr_scissor); } |