diff options
author | Ilia Mirkin <[email protected]> | 2016-11-18 18:53:05 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-11-29 20:54:36 -0500 |
commit | 9f568e5db1e5ef3b627fffb8d12258ca0cf2dd47 (patch) | |
tree | de9c54311a6fb701f5e182f26b2344500d53f135 /src/gallium | |
parent | f7ab0e4b7ea9d9334af38d6ba5680d326c5fd1eb (diff) |
swr: only store up to the LOD size
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/swr/swr_draw.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_draw.cpp b/src/gallium/drivers/swr/swr_draw.cpp index e8c5b23f11d..c4d5e5c4495 100644 --- a/src/gallium/drivers/swr/swr_draw.cpp +++ b/src/gallium/drivers/swr/swr_draw.cpp @@ -259,7 +259,9 @@ swr_store_render_target(struct pipe_context *pipe, if (renderTarget->pBaseAddress) { swr_update_draw_context(ctx); SWR_RECT full_rect = - {0, 0, (int32_t)renderTarget->width, (int32_t)renderTarget->height}; + {0, 0, + (int32_t)u_minify(renderTarget->width, renderTarget->lod), + (int32_t)u_minify(renderTarget->height, renderTarget->lod)}; SwrStoreTiles(ctx->swrContext, 1 << attachment, post_tile_state, |