<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Reviewed-by: Tim Rowley <<a href="mailto:timothy.o.rowley@intel.com" class="">timothy.o.rowley@intel.com</a>>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Nov 22, 2016, at 7:37 PM, Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>><br class="">
---<br class="">
src/gallium/drivers/swr/swr_draw.cpp | 4 +++-<br class="">
1 file changed, 3 insertions(+), 1 deletion(-)<br class="">
<br class="">
diff --git a/src/gallium/drivers/swr/swr_draw.cpp b/src/gallium/drivers/swr/swr_draw.cpp<br class="">
index e8c5b23..c4d5e5c 100644<br class="">
--- a/src/gallium/drivers/swr/swr_draw.cpp<br class="">
+++ b/src/gallium/drivers/swr/swr_draw.cpp<br class="">
@@ -259,7 +259,9 @@ swr_store_render_target(struct pipe_context *pipe,<br class="">
if (renderTarget->pBaseAddress) {<br class="">
swr_update_draw_context(ctx);<br class="">
SWR_RECT full_rect =<br class="">
- {0, 0, (int32_t)renderTarget->width, (int32_t)renderTarget->height};<br class="">
+ {0, 0,<br class="">
+ (int32_t)u_minify(renderTarget->width, renderTarget->lod),<br class="">
+ (int32_t)u_minify(renderTarget->height, renderTarget->lod)};<br class="">
SwrStoreTiles(ctx->swrContext,<br class="">
1 << attachment,<br class="">
post_tile_state,<br class="">
-- <br class="">
2.7.3<br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>