swr: only store up to the LOD size

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
This commit is contained in:
Ilia Mirkin
2016-11-18 18:53:05 -05:00
parent f7ab0e4b7e
commit 9f568e5db1
+3 -1
View File
@@ -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,